Files
textmate/Applications/TextMate/resources/TextMate Help/selection_string_syntax.md
Ronald Wampler 976a79468b Prefix some of the menu items in Navigate with "Jump to"
The Navigate menu now contains a mixture of items with prefixes "Jump to", "Go to" or none at all. The "Go to" prefix is especially inconsistent since we have already have a dedicate "Go" item in the Main menu bar. For consistency, change them to use the "Jump to" prefix.

The commit also renames the appropriate dialog boxes and updates some documentation to refer to the new names.
2016-06-14 20:55:42 +02:00

950 B
Raw Permalink Blame History

title: Selection String Syntax

Selection String Syntax

selection    = «range» ('&' «range»)*
range        = «pos» | «normal_range» | «column_range»
pos          = «line» (':' «column»)? ('+' «offset»)?
normal_range = «pos» '-' «pos»
column_range = «pos» 'x' «pos»
line         = [1-9][0-9]*
column       = [1-9][0-9]*
offset       = [1-9][0-9]*

This can be used with mate -l, Jump to Line…, and the ⌘T dialog (by putting :«selection string» after the file name) — as for the latter, if a string on the find clipboard has this format, it will be the default value in ⌘T, this is useful if you have a line in Terminal like:

main.cc:32: warning: no return statement.

You can then select main.cc:32 press ⌘E and jump to Avian and press ⌘T followed by ↩ (one shortcoming is that ⌘T doesnt show the currently open file, so it will only work if main.cc is not already the active file).