Files
textmate/Applications/TextMate/resources/TextMate Help/selection_string_syntax.md
Allan Odgaard f743c1954f Move help book out of English.lproj
This way localizations without a help book will fall back on the english one.
2012-08-14 21:17:09 +02:00

17 lines
916 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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`, _Go 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).