Is there a key for this? I know you can go to the start of the line or up depending on the type of selection but that requires a certain cognitive overhead in my experience and it would be so much easier to have a single consistent key that cancels it and returns to the original single selection. Is there one that I don't know about?
Thanks.
On 13 May 2015, at 15:30, Tom Smyth wrote:
Is there a key for this? I know you can go to the start of the line or up depending on the type of selection but that requires a certain cognitive overhead in my experience and it would be so much easier to have a single consistent key that cancels it and returns to the original single selection. Is there one that I don't know about?
There is no key for this, but a mouse click will do, or the up/down action (as you mention).
The problem is finding a good key, i.e. will you remember something like ⇧⌘⎋ or just do the up/down when you want to go back to a single caret?
Though with the existing convention of single-tapping option to toggle selection type, and with Apple’s introduction of double-tapping fn for dictation, perhaps double-tapping shift could work.
I wonder though if it should just “pop” the last selection, this would then also work as an undo for ⌃W (select next word) which is sometimes requested. But it might be a little tedious if you have many carets/selections.
Input?
Is there a key for Cancelling a multiple selection?
No Single-tapping option to toggle selection type + Apple’s introduction of double-tapping suggests a good cancel would be double-tapping shift
Or double tapping option?
I wonder though if it should just “pop” the last selection, this would then also work as an undo for ⌃W (select next word) which is sometimes requested. But it might be a little tedious if you have many carets/selections.
That would be nice. ⌃W would be greatly enhanced is ⇧⇧ popped one selection off the stack. Likewise any multiple cursors created by a single operation (be in option tap or ⌘⌥-F) would work as expected when the user double tapped the shift key.
On 13 May 2015, at 15:50, Tim Bates wrote:
No Single-tapping option to toggle selection type + Apple’s introduction of double-tapping suggests a good cancel would be double-tapping shift
Or double tapping option?
Just for the recors, I picked shift because assigning functionality to both single and double tapping option would mean that the latter function would always invoke the first, unless the first one was delayed until we could be sure that a second tap wouldn’t follow.
Although I assume that pretty much no-one single-taps option with multiple selections, and double-tapping (shift) is currently a no-op for when there is only one selection. So currently the key could be changed to option.
Thanks allan: This is already saving me time!
re key choice - The only hassle with shift is that it is a harder target to hit than option or control would be.
Just playing for an hour, double tapping control feels like it would be a natural for undo incremental selections (control-W): Finger is already right there. Option would also be an option :-)
tim
On Jun 13, 2015, at 8:49 PM, Allan Odgaard mailinglist@textmate.org wrote:
On 13 May 2015, at 15:50, Tim Bates wrote:
No Single-tapping option to toggle selection type + Apple’s introduction of double-tapping suggests a good cancel would be double-tapping shift
Or double tapping option?
Just for the recors, I picked shift because assigning functionality to both single and double tapping option would mean that the latter function would always invoke the first, unless the first one was delayed until we could be sure that a second tap wouldn’t follow.
Although I assume that pretty much no-one single-taps option with multiple selections, and double-tapping (shift) is currently a no-op for when there is only one selection. So currently the key could be changed to option.
On 13 Jun 2015, at 16:38, Tim Bates wrote:
Thanks allan: This is already saving me time!
And I learned about hitting ⌃W multiple times. :-)
re key choice - The only hassle with shift is that it is a harder target to hit than option or control would be.
On a full keyboard, maybe. I don’t think that’s true on laptops.
Just playing for an hour, double tapping control feels like it would be a natural for undo incremental selections (control-W): Finger is already right there. Option would also be an option :-)
A fair number of people use Control to activate Quicksilver. I’d prefer Shift for that reason alone. If most people can’t live with that, maybe the choice of modifier could be a (hidden?) preference.
On 13.05.2015, at 15:40, Allan Odgaard mailinglist@textmate.org wrote:
On 13 May 2015, at 15:30, Tom Smyth wrote:
Is there a key for this? I know you can go to the start of the line or up depending on the type of selection but that requires a certain cognitive overhead in my experience and it would be so much easier to have a single consistent key that cancels it and returns to the original single selection. Is there one that I don't know about?
There is no key for this, but a mouse click will do, or the up/down action (as you mention).
The problem is finding a good key, i.e. will you remember something like ⇧⌘⎋ or just do the up/down when you want to go back to a single caret?
Though with the existing convention of single-tapping option to toggle selection type, and with Apple’s introduction of double-tapping fn for dictation, perhaps double-tapping shift could work.
I wonder though if it should just “pop” the last selection, this would then also work as an undo for ⌃W (select next word) which is sometimes requested. But it might be a little tedious if you have many carets/selections.
Input?
Would it be possible to put every selection on the undo stack? A selection is some kind of an “editing transaction”. For me, it would feel natural to hit cmd-z to undo my last “thing”, be it a deletion of a word or in this case, an additional selection with ^w.
This would buy an additional feature, if I loose my last selection (e.g. by hitting accidentally a cursor key without holding shift) I can simply reselect it.
For canceling *all* cursors (a feature I would absolutely love), Tim’s suggestion of double tapping option sounds like a good choice.
Option already toggles column selection and multiple line selection. Those are “modes” of selection. For me, getting back to a single cursor is exactly this, a “mode of selection”. Feels natural to keep this in a single key.
Hmm, the more I think about it… Maybe instead of a double tap, a single third tap on option would be enough to cancel. If I’m in column selection, I never want to go back to multiple lines selection. And as soon as I move left/right, option doesn’t do anything, as I have multiple carets already.
On May 13, 2015, at 5:38 PM, Kai Wood lists@kwood.eu wrote:
If I’m in column selection, I never want to go back to multiple lines selection. And as soon as I move left/right, option doesn’t do anything, as I have multiple carets already.
Sometimes I go back to multiple lines selection. Option toggling selection mode is one of the great simple features of TM. No need to overcomplicate the behavior.
I wonder though what’s so wrong with pressing ↑↓ or ↓↑ to disable multiple carets. This way it’s easy to predict what’ll happen. But what should happen when you have multiple carets and press your magic “cancel all carets” key? Which is that one caret that should stay?
The questionable feature is that when you have all the carets within a single line and press ↓ or ↑ they don’t collapse. I wonder if this is even useful.
On 13.05.2015, at 17:05, Igor me@igorkozlov.me wrote:
I wonder though what’s so wrong with pressing ↑↓ or ↓↑ to disable multiple carets. This way it’s easy to predict what’ll happen.
It’s inconsistent and depends on your position in the document. If you are on line 1, you hit the top of the document and your cursors lands on line 2. If you start on line 2, your final position is on line 2.
Additionally, with this technique the cursor stops *behind* the current word, not at the position where you started.
That’s the cognitive overhead Tom was taking about, you have to actually think about it / watch where your cursor is.
But what should happen when you have multiple carets and press your magic “cancel all carets” key? Which is that one caret that should stay?
The first cursor in the document has to stay. ^w selects downwards in the document, so the first one is the the place where you start and end.
I agree with Ken on all points.
In Sublime, Esc cancels the multiple selection. Probably not a good idea for TM. But what about ⌘+Esc?
On 13 May 2015 at 11:24, Kai Wood lists@kwood.eu wrote:
On 13.05.2015, at 17:05, Igor me@igorkozlov.me wrote:
I wonder though what’s so wrong with pressing ↑↓ or ↓↑ to disable
multiple carets. This way it’s easy to predict what’ll happen.
It’s inconsistent and depends on your position in the document. If you are on line 1, you hit the top of the document and your cursors lands on line 2. If you start on line 2, your final position is on line 2.
Additionally, with this technique the cursor stops *behind* the current word, not at the position where you started.
That’s the cognitive overhead Tom was taking about, you have to actually think about it / watch where your cursor is.
But what should happen when you have multiple carets and press your
magic “cancel all carets” key? Which is that one caret that should stay?
The first cursor in the document has to stay. ^w selects downwards in the document, so the first one is the the place where you start and end.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On May 13, 2015, at 6:24 PM, Kai Wood lists@kwood.eu wrote:
It’s inconsistent and depends on your position in the document. If you are on line 1, you hit the top of the document and your cursors lands on line 2. If you start on line 2, your final position is on line 2.
Additionally, with this technique the cursor stops *behind* the current word, not at the position where you started.
I don’t understand your point. Here’s a little video that shows that it’s actually very consistent and easy to predict. When I press up a single caret appears above the first one. When up press down it appears below the last one. http://d.pr/v/mbk1
On 13.05.2015, at 17:43, Igor me@igorkozlov.me wrote:
On May 13, 2015, at 6:24 PM, Kai Wood lists@kwood.eu wrote:
It’s inconsistent and depends on your position in the document. If you are on line 1, you hit the top of the document and your cursors lands on line 2. If you start on line 2, your final position is on line 2.
Additionally, with this technique the cursor stops *behind* the current word, not at the position where you started.
I don’t understand your point. Here’s a little video that shows that it’s actually very consistent and easy to predict. When I press up a single caret appears above the first one. When up press down it appears below the last one. http://d.pr/v/mbk1
Small video to make my point:
https://cloud.kwd.io/index.php/s/D0G8yOtNXYm1VOg
It shows three outcomes with the up-down combo. In the first one I end on the second line of the block. In the second one I end on the first line of the block. And in the third one on the first line, but on the end of a word.
On May 13, 2015, at 8:39 PM, Kai Wood lists@kwood.eu wrote:
Small video to make my point:
https://cloud.kwd.io/index.php/s/D0G8yOtNXYm1VOg
It shows three outcomes with the up-down combo. In the first one I end on the second line of the block. In the second one I end on the first line of the block. And in the third one on the first line, but on the end of a word.
Thanks for the video.
Well, I see simple logic behind all three cases, so speaking of ↑↓ combination, you’re right it’s not consistent, so you can’t make a macro that’ll replicate ⎋ in Sublime Text. But by analyzing arrows separately it’s very easy to predict what will happen.
I was using Sublime Text for some time but I still find TextMate behavior more handy.
Would like something for this also as ↑↓ doesn't work if you have multiple carets on the same line and previous/next lines are same length or longer.
On 13 May 2015 at 20:14, Igor me@igorkozlov.me wrote:
On May 13, 2015, at 8:39 PM, Kai Wood lists@kwood.eu wrote:
Small video to make my point:
https://cloud.kwd.io/index.php/s/D0G8yOtNXYm1VOg
It shows three outcomes with the up-down combo. In the first one I end on the second line of the block. In the second one I end on the first line of the block. And in the third one on the first line, but on the end of a word.
Thanks for the video.
Well, I see simple logic behind all three cases, so speaking of ↑↓ combination, you’re right it’s not consistent, so you can’t make a macro that’ll replicate ⎋ in Sublime Text. But by analyzing arrows separately it’s very easy to predict what will happen.
I was using Sublime Text for some time but I still find TextMate behavior more handy.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate