[TxMt] Re: Range of selection string / environment variable TM_SELECTION
mailinglist at textmate.org
Thu Jan 16 13:24:28 UTC 2014
On 16 Jan 2014, at 19:16, Kai Wood wrote:
> […] It’s clear that internally the cursors change from some kind
> of “normal” column selection to multi-cursors, as one can see
> considering the selection string […]
The “internal change” does manifest itself in some suble ways, for
example extending the selection after “splitting it” will act
differently. Though the goal was to treat a single zero-width column
selection identical to multiple aligned carets (although they aren’t
really the same).
> […] In my use case, I can still distinguish this state of the
> cursors by parsing the selection string, but it’s a little more
> complicated than relying on the newline.
Can you tell what info it is you wish to extract? As I believe the value
of TM_SELECTION should be enough to tell you exactly what you need
(without having to look at TM_SELECTED_TEXT).
More information about the textmate