mirror of
https://github.com/starship/starship.git
synced 2026-06-21 02:02:14 +07:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user