zed/assets/keymaps
Benjamin Davies 26d0a33e79
Add Vim digraphs (#14887)
Vim digraphs are a way to insert special characters using sequences of
two ASCII characters. I've implemented the feature using a new `Digraph`
operator, following the example of `AddSurrounds`. There are still a few
issues that I'm not sure what the best way to resolve them is.

- To insert `ş`, the user must pause between pressing `ctrl-k` and `s
,`, otherwise it triggers the binding for `ctrl-k s`. Is there a way to
disable `ctrl-k *` bindings while in insert, replace or waiting mode?
- Is there a better way to insert a string at all of the cursors? At the
moment I'm constructing the edits manually.
- The table of default digraphs is a 1.4k line rust expression. Is this
okay as long as it's in its own module?
- I'd like a second opinion on how best to structure the settings.json
entry.
- I have omitted the "meta character" feature as I don't think it makes
sense when editing UTF-8 text.

Release Notes:

- Added support for Vim digraphs.

Resolves #11871
2024-07-28 22:44:32 -06:00
..
linux Sublime swap lines (#15089) 2024-07-24 10:35:53 -04:00
macos Sublime swap lines (#15089) 2024-07-24 10:35:53 -04:00
default-linux.json Restore linux ctrl-d functionality (#15238) 2024-07-25 20:11:47 -04:00
default-macos.json Remove !jupyter context for cmd-enter (ctrl-enter for linux) key binding (#15133) 2024-07-24 19:02:24 -07:00
initial.json Show an initial empty keymap (#14609) 2024-07-16 20:24:13 -06:00
storybook.json storybook: Fix Backspace in Auto Height Editor and Picker stories (#11011) 2024-04-25 17:37:47 -04:00
vim.json Add Vim digraphs (#14887) 2024-07-28 22:44:32 -06:00