Improve bindings to better match VS-Code (#8584)

Release Notes:

- Changed default keybindings in the VS Code keymap so that
`alt-[up|down]` now move lines up/down and`alt-shift-[up|down]`
duplicate lines up/down. Previous bindings for selecting larger/smaller
syntax nodes are now bound to `ctrl-shift-[left|right]`.
([#4652](https://github.com/zed-industries/zed/issues/4652))([#7151](https://github.com/zed-industries/zed/issues/7151))

---------

Co-authored-by: Thorsten Ball <mrnugget@gmail.com>
This commit is contained in:
Edvard Høiby 2024-03-06 20:16:14 +01:00 committed by GitHub
parent 850ddddcac
commit 8352f39ff9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 87 additions and 14 deletions

View file

@ -99,7 +99,10 @@ pub fn app_menus() -> Vec<Menu<'static>> {
MenuItem::separator(),
MenuItem::action("Move Line Up", editor::actions::MoveLineUp),
MenuItem::action("Move Line Down", editor::actions::MoveLineDown),
MenuItem::action("Duplicate Selection", editor::actions::DuplicateLine),
MenuItem::action(
"Duplicate Selection",
editor::actions::DuplicateLine::default(),
),
],
},
Menu {