symbols-tree-view icon indicating copy to clipboard operation
symbols-tree-view copied to clipboard

Allow custom .ctags file to be specified in settings

Open jclark-dot-org opened this issue 7 years ago • 2 comments

I have some extra ctags settings I use currently by modifying ~/.atom/packages/symbols-tree-view. Whenever the package is updated, my changes are overwritten. I'd prefer to specify a separate .ctags file in settings that I could maintain outside the package structure, preventing the loss of changes during updates.

jclark-dot-org avatar Aug 22 '17 14:08 jclark-dot-org

Could you tell more about your extra settings? Could they be simply included in the provided ctags file? And I'm not sure, but this looks close to the issue there https://github.com/nicolashainaux/symbols-tree-nav/issues/13 (-> could this be a solution to your issue?)

nicolashainaux avatar Nov 05 '17 07:11 nicolashainaux

I work with Salesforce.com's Apex language, which is close enough to Java that using ctags' Java settings gives acceptable results in symbols tree view. The source files are .cls files instead of .class, so ctags doesn't recognize it by default. Currently I add one line to ~/.atom/packages/symbols-tree-view/.ctagsto treat .cls files as Java:

--langmap=Java:.cls

I believe this could be added as an arg to ctags, so the linked issue might be sufficient. Eventually I'd like to build better Apex support using --langdef and a set of Regexes, at which point an accessible .ctags file might be easier due to volume, but the option to add command line args is a good solution for now.

jclark-dot-org avatar Nov 06 '17 14:11 jclark-dot-org