-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x
and shift+x
broken in 0.5.13
#319
Comments
iirc this is expected, kakoune works that way now too. You can restore old behavior of
|
Hey there, This is working as intended, since that keybinding changed in Kakoune a while ago. I didn't like the change to If you prefer the old behavior, you can restore it by adding the following keybinding to VS Code: {
"key": "X",
"when": "editorTextFocus && dance.mode == 'normal'",
"command": "dance.select.line.below",
},
{
"key": "Shift+X",
"when": "editorTextFocus && dance.mode == 'normal'",
"command": "dance.select.line.below.extend",
},
{
"key": "Alt+X",
"when": "editorTextFocus && dance.mode == 'normal'",
"command": "dance.selections.expandToLines"
},
{
"key": "Shift+Alt+X",
"when": "editorTextFocus && dance.mode == 'normal'",
"command": "dance.selections.trimLines"
}, (@losnappas thanks for answering!) |
thanks @71 and @losnappas . i have updated my keybindings to restore the old i appreciate the link to the comment arguing for the kakoune way. however, i respectfully disagree with breaking existing users though, especially after being used to these shortcuts for 3-4 years now. a notice after the extension update would also help in the future to deal with breaking changes. closing the bug now. |
@vbn I agree, changing the keybindings all of a sudden wasn't great. They had been this way in the prerelease for a long time so I wrongly assumed that nothing significant changed during the update. Unfortunately there is no great way to configure Dance keybindings yet, so I'm not sure how I could have provided a backwards compatible update to the keybindings though. Perhaps in the future I could add additional conditions to keybindings provided by Dance (e.g. In the future I will at least try to communicate that such changes will arise when publishing a new version, and how to roll them back. |
thanks @71. i agree that the version conditions would be an overkill, just some sort of "default keybindings changed" notification on upgrade would be enough 👍 |
FYI, following this suggestion I added a |
in
0.5.11
, the commandx
meant select current line, then keep hitting it to select the next line, andshift+x
meant to select the current line and keep hitting it to extend the selection to subsequent lines.with
0.5.13
the commandx
selects the line, but doesn't move to the next line after hittingx
again.shift+x
doesn't do anything. this breaks my workflow quite a bit, since it seems i like using both the commands quite a lot. i also couldn't find any dance command that would emulate this behavior.is this change expected or a bug?
for now, i have rolled back to
0.5.11
so i am not blocked.The text was updated successfully, but these errors were encountered: