Commit graph

145 commits

Author SHA1 Message Date
bb887b5789
fix(buffers): remove conflicting palette keybinding 2025-01-22 22:24:33 +01:00
0a632416a4
feat(buffers): add delete_buffer command and keybinding for buffer_palette 2025-01-22 22:23:56 +01:00
Meredith Oleander
80c8795c3b
Merge branch 'master' into helix-mode-selections 2025-01-22 13:47:37 +11:00
3f06f6b19c
feat(buffers): add buffer switcher 2025-01-21 22:32:43 +01:00
4f5fa4a3ba
feat(keybind): move selection mode into keybind mode configuration 2025-01-19 19:21:44 +01:00
386094001d
fix(vim-mode): prefer smart_move_begin of vim normal mode 'I' binding 2025-01-19 14:17:29 +01:00
e705d4ba01
fix(vim-mode): vim-mode bindings to enter insert mode 2025-01-19 14:15:44 +01:00
70c4c78138
feat(vim-mode): simplify vim mode bindings 2025-01-19 14:04:33 +01:00
9f29853cd6
Merge pull request #149 from travisstaloch/lsp-rename
implement lsp rename
2025-01-18 23:33:25 +01:00
0eec33c35e
fix: remove incomplete add_split bindings 2025-01-17 21:14:25 +01:00
e1b1591167
feat(win32 gui): add font selection palette
closes #102
2025-01-17 20:32:20 +01:00
61d9f583a8
feat(emacs): add lsp-mode emacs keybindings 2025-01-17 12:33:02 +01:00
Travis Staloch
860c36266c
keybinds: changes related to lsp rename
* vim mode: bind 'grn' to rename_symbol
* flow mode: bind F4 to toggle_input_mode
2025-01-16 22:04:38 +01:00
Travis Staloch
1fd4455adb
feat(lsp): initial support for textDocument/rename
flow keybinds: changes f2 from toggle_input_mode to rename_symbol and
moves toggle_input_mode command to ctrl+shift+f2 (since ctrl+f2 is
already bound to insert_command_name)

the replacement text is hard coded for now. i've checked that replace
works with zls and pylsp which send WorkspaceEdit response messages in
different shapes - zls sends shape `{"changes": {}}` while pylsp sends
`{"documentChanges": []}`.

currently the 'rename_symbol_item' commands are sent one at a time.
however they should be buffered and be performed between one
buf_for_update, update_buf pair.  this will be addressed in a follow up.
2025-01-16 22:04:35 +01:00
6530a7a51c
feat(win32 gui): add reset_fontsize and rest_fontface commands 2025-01-14 19:54:51 +01:00
0791a82ca0
fix: mismatched enable_/disable_ fast_scroll/jump_mode bindings
The release bindings were missed in #145.
2025-01-14 17:48:26 +01:00
edwloef
faabd69191 swap enable_fast_scroll and enable_jump_mode keybinds 2025-01-14 16:56:22 +01:00
Jonathan Marler
e542ccb8f1 win32 gui: track and use window bounds to prevent infinite shrinkage 2025-01-10 23:11:28 +01:00
97cc7be97c
feat: add keybind to generate and insert 4 bytes of random hex data 2025-01-10 22:57:20 +01:00
João Pedro
a21f0e6ac5 Fix half and whole page movements 2025-01-10 22:34:42 +01:00
5300e3346d feat(win32 gui): add adjust_fontsize command to zoom in/out 2025-01-09 20:08:12 +01:00
9e4e81eb0d
feat(win32 gui): read fontface and size from gui_config 2025-01-08 15:57:38 +01:00
e1f0a4d074
feat: add sample binding of shell_execute_log 2025-01-07 23:08:24 +01:00
cfc99b61dc
feat: add commands to execute shell tasks from keybindings
This is the first part of #67.
2025-01-07 22:45:29 +01:00
Jonathan Marler
337b6ce626 win32 gui: rework startup/hwnd sync 2025-01-07 22:02:16 +01:00
cf3fdeb135
refactor: cleanup/simplify emacs bindings 2025-01-07 16:27:31 +01:00
9ace78e3a9
feat: separate binding key seqences with space instead of '>' 2025-01-07 16:13:02 +01:00
b73975328b
fix: normalized vaxis windows console input 2025-01-07 16:04:07 +01:00
0c7f19b5dd feat: support matching of shifted keybindings
This allows us to bind things like alt+F and ctrl+?. Binding
with and explicit shift modifier is still allowed, such as alt+shift+f.
2025-01-07 14:53:34 +01:00
Jonathan Marler
d90d82a4b7 win32 gui: remove bespoke/incorrect key translation
I played around with the API a bit and I tried out the other approach
where instead of trying to implement our own keyboard translation, instead
I just clear the "control key" before calling ToUnicode.  This fixes any
weird translation the OS was doing.

With this change, we no longer need to skip calling ToUnicode if the
control or alt keys are down, so keys will always work the same way whether
or not these modifiers are down.
2025-01-07 14:53:34 +01:00
388943e33c
feat(emacs): add repeat keybinding to emacs overlay/palette mode for quick switching 2025-01-06 22:09:57 +01:00
caffb70d9f
fix: syntax error in flow keybindings 2025-01-06 21:37:38 +01:00
5b168f2c33
feat: add find and find_in_files bindings to flow select mode 2025-01-06 21:00:37 +01:00
Jonathan Marler
d64d5f4c7e emacs add selection mode/keybind 2025-01-06 20:48:34 +01:00
Jonathan Marler
064522959b more emacs bindings 2025-01-06 20:28:24 +01:00
95d07ab1a5
feat: add select mode to flow input namespace 2025-01-06 20:25:57 +01:00
dedbb25515
feat: add inheritance between input modes in an input namespace 2025-01-06 20:25:09 +01:00
Jonathan Marler
22ddaef78f emacs: add some more emacs keybinds 2025-01-06 07:43:15 +01:00
750bed8a9c fix: matching of alt+shift+ keybindings on windows 2024-12-24 12:31:47 +01:00
afca8a86bc
feat: add configuration option default_cursor 2024-12-20 21:44:35 +01:00
df1646d3b1
fix: unittest bitrot 2024-12-19 18:47:20 +01:00
57942ac4f0
fix: use associated text if available instead input codepoint
closes: #78
2024-12-16 22:11:23 +01:00
4ec66be2d4
feat: add short key event formatters 2024-12-12 17:00:39 +01:00
11301270fb
fix: do not treat modified keys as input on sequence match abort 2024-12-12 16:59:24 +01:00
9efc72da62
fix: don't process modifier key events in key event sequences 2024-12-12 16:58:45 +01:00
0abb21a400
fix: add down level ':' keybindings to vim and helix modes
This is for terminals that don't send modifiers at all.
2024-12-12 16:57:16 +01:00
ba65fece7e
feat: add flow mode keybind for add_split 2024-12-11 21:30:20 +01:00
9fba9eba3c
feat: add palette for changing the current file type 2024-12-10 20:10:36 +01:00
9856303ef6
fix: keybind unittests 2024-12-09 16:03:31 +01:00
fff1a39fe5
feat: add home screen bindings for emacs mode 2024-12-05 20:14:43 +01:00