Now we are in beta phase, I’ve stumbled a couple of times recently having multiple cursors and having commands fail, as this is not supported yet.
Not sure if this is tricky or not to enable.. I could see it could be, if a command does things that step on what the other “copies” are trying to do. Perhaps a “multiple-selection safe” button in the snippet or command to enable cases where the author thinks it should be as straight-forward as typing into a multiple selection (like, for instance, tag completion) would get this feature off the ground?
t
On 4 Feb 2015, at 16:41, Tim Bates wrote:
Now we are in beta phase, I’ve stumbled a couple of times recently having multiple cursors and having commands fail, as this is not supported yet.
Not sure if this is tricky or not to enable.. I could see it could be, if a command does things that step on what the other “copies” are trying to do. […]
I think the most likely way to handle this is by iterating over the selections, and re-run the command for each, but that would only be for commands that have no input/output or which work on the selection.
It might be more complex with other combinations of input/output, and for some commands, it might make sense to opt in to “run only once, and get everything”.
Though even though we have moved to beta, this particular issue is far down on the list, but it’s certainly a personal desire to have commands (and snippets, which should be simpler) work with multiple carets…
On 5 02 2015, at 11:07, Allan Odgaard mailinglist@textmate.org wrote:
I think the most likely way to handle this is by iterating over the selections, and re-run the command for each, but that would only be for commands that have no input/output or which work on the selection.
It might be more complex with other combinations of input/output, and for some commands, it might make sense to opt in to “run only once, and get everything”.
Though even though we have moved to beta, this particular issue is far down on the list, but it’s certainly a personal desire to have commands (and snippets, which should be simpler) work with multiple carets…
Personally I’d be very happy if at least snippets will respect multiple carets.
In HTML I use multiple carets very often and I also have a big snippet library that is useless in those cases.
So I’ve been waiting for this to work since the day TM added multiple carets.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
Hi,
by myself I'm using tmCommands which have as input multiple selections. To use them I work with TM's internal variable $TM_SELECTION since it stores all carets and selections as e.g. "1:7&3:20" or "1:2-1:4, 1:6, 2:12-2:14" - the only thing to do is to parse that string.
Cheers, Hans
Can you unsubscribe me from this? I'm not currently using this editor.
Thanks, Ted
On Thu, Feb 5, 2015 at 6:19 AM, Hans-Jörg Bibiko bibiko@eva.mpg.de wrote:
Hi,
by myself I'm using tmCommands which have as input multiple selections. To use them I work with TM's internal variable $TM_SELECTION since it stores all carets and selections as e.g. "1:7&3:20" or "1:2-1:4, 1:6, 2:12-2:14" - the only thing to do is to parse that string.
Cheers, Hans
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On 8 02 2015, at 21:06, Ted Flethuseo flethuseo@gmail.com wrote:
Can you unsubscribe me from this? I'm not currently using this editor.
There’s a link at the bottom of every message in this mailing list that leads to a page with a form at the bottom just for that.