-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Keymap brainstorm
We are still thinking about visual mode and there are some issues with kakoune and vim that we want to address.
vim
- we think a visual first is better (multi-cursors support)
kakoune
- we don't want to hold
shift
for extend - we don't want to use
alt
both
- we don't want to hold
ctrl-f
to page down (should be like inV
kakoune as pager)
Cases below may not be able to utilize lsp functions. Should be real cases for normal workflow. Commenting functions also won't be useful.
We want to provide one way without using count and one way using count since we may not always use count. Keystrokes count, pressing shift is considered a count.
/// ```
/// impl EditorView {
/// pub fn new() -> Self {
/// Self {
/// keymap: keymap::default(),
/// on_next_key: None,
/// last_insert: (commands::normal_mode, Vec::new()),
/// completion: None,
/// }
/// }
/// ```
Delete the whole line starting from Self {
to }
(including last newline), cursor starts at /// (#)
on line Self {
.
vim
- @pickfire
V%d
(5), with count6dd
(3)
kakoune
- @pickfire
ghMLd
(6), with count6Xd
(4)
helix
- @pickfire
Vmvld
(6) if we follow vim, with count (current)ghV5jgld
(9), with count (current + X)ghV5Xd
(8)
Add line comment before Self {
to matching }
all on same column, starting at Self {
.
vim
- @pickfire
ctrl-vI//
(7)
kakoune
- @pickfire
CCCCCi//
(10) - I wish there is a better way, with count5Ci//
(7)
helix
- @pickfire maybe we need to have visual block?
Err, maybe we should count escape key?
TODO swapping key value position in code TODO xml editing, joining child, removing parent, splitting child, swapping key position TODO (rare use cases) drawing boxes