Macros that don't change selection and "selection ancho
Posted: Tue Apr 29, 2003 1:56 am
From the sort-of-bug-but-not-really department: In macros that preserve the current selection, the "selection anchor" is not preserved, and should be.
What I mean by selection anchoring, is "the point at which you started to select text", with either your mouse or keyboard. So if you select THIS STRING, starting at the "g" and dragging to the "t", then when you press shift+left arrow, the selection should now be " THIS STRING", with the leading space. Conversely, if you started at the "t", and then pressed shift+left arrow, the selection should now be "THIS STRIN".
However, when you run a macro, the anchor reverts to what it was *at macro recording* time. I don't see any benefit to this. Please, if the selection is exactly the same before and after macro execution, preserve the selection anchor.
(By the way, is there a more technical term for selection anchor?)
What I mean by selection anchoring, is "the point at which you started to select text", with either your mouse or keyboard. So if you select THIS STRING, starting at the "g" and dragging to the "t", then when you press shift+left arrow, the selection should now be " THIS STRING", with the leading space. Conversely, if you started at the "t", and then pressed shift+left arrow, the selection should now be "THIS STRIN".
However, when you run a macro, the anchor reverts to what it was *at macro recording* time. I don't see any benefit to this. Please, if the selection is exactly the same before and after macro execution, preserve the selection anchor.
(By the way, is there a more technical term for selection anchor?)