atom / symbols-view

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

Support prefix regex patterns in tags files #231

Closed segevfiner closed 2 years ago

segevfiner commented 7 years ago

Description of the Change

Out of desperation due to https://github.com/atom/symbols-view/pull/229, I tried to use ctags -N. But ctags than outputs prefix regex patterns for the macros instead of line numbers, which symbols-view also doesn't handle.

Alternate Designs

In reality, those are really vi regex patterns. A truly proper implementation will try to match them as regex, possibly transforming vi regex constructs to JavaScript ones. As another note, it is also possible to request backwards search patterns via ctags -B which symbols-view also won't handle but I don't think many people really do that...

Benefits

prefix patterns in ctags will be recognized and used correctly.

Possible Drawbacks

Additional Complexity. Bugs?