mirror of
https://github.com/textmate/textmate.git
synced 2026-01-23 13:47:54 -05:00
Note that the documentation is a bit outdated as it hasn’t been touched since the first public alpha — updated documentation will appear when closer to final release, in the meantime interested parties should watch the release notes, wiki, and mailing list. Closes #822.
948 B
948 B
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, 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 doesn’t show the currently open file, so it will only work if main.cc is not already the active file).