dschwen / switch-header-source

Quick switching between C/C++ header and source files
MIT License
13 stars 49 forks source link

Support cycles bigger than 2 #10

Closed stephenatwork closed 6 years ago

stephenatwork commented 8 years ago

For example, some projects have headers (.h) inline (.inl) and source (.cpp) Or one could imagine foo.py, foo.html, foo.css

I suggest removing the distinction of header/source in the settings. Just have one big regex. It finds the current position and tries each subsequent one in turn (wrapping round)

So one might have .h|.hxx|.inl|.cpp|.cxx

dschwen commented 6 years ago

Working in this right now. Initial version in fbb77db