Quick switching between corresponding C, C++, Objective-C, and Objective-C++ header and source files...
...Actually between any arbitrarily defined groups of files (as long as you can match their filenames with a regular expression)!
For example:
.C
, .h
, and .md
files (for implementation, headers, and
class documentation files).js
, .html
, and .css
filesUse Ctrl-Option-s
to cycle forward though groups of matching files (
Shift-Ctrl-Option-s
to cycle backwards).
Use Alt-o
to cycle forward though groups of matching files (Shift-Alt-o
to
cycle backwards).
The plugin will match each file's name in the project using the regular expression in the Tracked file regular expression setting. If the file name matches it is added to the group of files that shares the first capture group (this is the part of the regular expression that was matched in the first pair of parenthesis).
Let's for example decipher the Tracked file regular expression setting
(.*)\.(h|cpp)$
(.*)
is the first capture group in this expression (you will see that it
will match the base name of each matching file).\.
will match a period (the dot that separates the base name from the
file extension).(h|cpp)
means "match a literal h
or a cpp
string" (those are the
file extensions of the files we want to switch between - and you can specify as
many here as you like, e.g. (h|cpp|md)
).$
matches the end of the filename (with this we make sure that nothing else
comes after the extension in the filename, like for example a .bak
or ~
,
which would cause the plugin to switch to backup files).js
, .html
, .css
)
(.*)\.(js|html|css)$
output_xi-0
, output_xi-1
, output_xi-2
,
... output_xi-10
(.*)-(\d+)$