atom / symbols-view

Jump to symbols in Atom
MIT License
164 stars 114 forks source link

Case-insensitive tag search #148

Open steabert opened 8 years ago

steabert commented 8 years ago

When using symbols-view for Fortran source code, I can only jump to a definition if the word matches case-senstive.

For example, in Fortran, with the cursor on the word hello in: call hello, tt won't jump to the definition subroutine Hello, but if on the work Hello in: call Hello, it will.

steabert commented 8 years ago

Just wanted to note that ctags already supports this, adding

options =
        caseInsensitive: true
        partialMatch: false

and

ctags.findTags tagsFile, symbol, options, (err, tags=[]) ->

in tag-reader.coffee worked fine. One just needs to switch the options on for e.g. Fortran. However, I'm not sure what's the best way to do this. I tried to mimick the getScopesArray().indexOf() which is used at the top of the file for source.ruby, but Fortran can have multiple scope names.