You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[html] Mirror Cursor does not work with double-click selection #86052
changed the title [-][html] auto renameL does not work with non-empty selection[/-][+][html] auto rename does not work with non-empty selection[/+]on Dec 3, 2019
Selecting the whole tag is the typical interaction I do when I want to change/rename a tag. Select the full tag with doubleclick, enter the new tag name, overwriting the old name. So It would be great if that also works with auto rename.
Expanding a selection is a different issue. I rarely do that.
IMO if the selection is just convering the tag: create a multicursor selection on the closing tag.
As soon as it spans more, do not create/drop multicursor selection on the closing tag.
I think that's very intuitive and matches the behaviour of the empty cursor case.
changed the title [-][html] auto rename does not work with non-empty selection[/-][+][html] Mirror Cursor does not work with double-click selection[/+]on Dec 13, 2019
Neither double-click or manual selection of a tag name works, which for me are more natural behaviors than positioning the cursor with the arrow keys.
I've been waiting for the ability to change tag names for a while, so this is a leap in the right direction. Just need to nail down the various selection methods. 👍
Activity
[-][html] auto renameL does not work with non-empty selection[/-][+][html] auto rename does not work with non-empty selection[/+]octref commentedon Dec 5, 2019
Since this is achievable with both F2 and click end of
fooandoption + delete(both are shorter operations).I stayed away from handling selections since imagine one goes from left to right on line one:
When the selection advances pass
div, how should the bottom selection behave?dtodiv, bottom selection grew as wellNot doing this also simplifies the logic a lot.
aeschli commentedon Dec 5, 2019
Selecting the whole tag is the typical interaction I do when I want to change/rename a tag. Select the full tag with doubleclick, enter the new tag name, overwriting the old name. So It would be great if that also works with auto rename.
Expanding a selection is a different issue. I rarely do that.
IMO if the selection is just convering the tag: create a multicursor selection on the closing tag.
As soon as it spans more, do not create/drop multicursor selection on the closing tag.
I think that's very intuitive and matches the behaviour of the empty cursor case.
aeschli commentedon Dec 5, 2019
Please reconsider or, at least, reopen as feature request so others can add their opinions too.
[-][html] auto rename does not work with non-empty selection[/-][+][html] Mirror Cursor does not work with double-click selection[/+]ryanaltvater commentedon Dec 16, 2019
Neither double-click or manual selection of a tag name works, which for me are more natural behaviors than positioning the cursor with the arrow keys.
I've been waiting for the ability to change tag names for a while, so this is a leap in the right direction. Just need to nail down the various selection methods. 👍
aeschli commentedon May 5, 2020
This works now (when enabling the feature with
"editor.renameOnType": true