feat(fish): support input-mode detection for helix-keybinds (#6841)

Add KEYMAP for helix key bindings

There is a project providing helix editor keybindings to fish: https://github.com/sshilovsky/fish-helix
This commit is contained in:
Tammo Ippen
2025-08-17 16:55:14 +02:00
committed by GitHub
parent 5dd40ea62f
commit 26a62372d1
+2 -2
View File
@@ -1,6 +1,6 @@
function fish_prompt
switch "$fish_key_bindings"
case fish_hybrid_key_bindings fish_vi_key_bindings
case fish_hybrid_key_bindings fish_vi_key_bindings fish_helix_key_bindings
set STARSHIP_KEYMAP "$fish_bind_mode"
case '*'
set STARSHIP_KEYMAP insert
@@ -27,7 +27,7 @@ end
function fish_right_prompt
switch "$fish_key_bindings"
case fish_hybrid_key_bindings fish_vi_key_bindings
case fish_hybrid_key_bindings fish_vi_key_bindings fish_helix_keybindings
set STARSHIP_KEYMAP "$fish_bind_mode"
case '*'
set STARSHIP_KEYMAP insert