mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-12-01 01:04:00 +00:00
fix(fish): enable transient prompt when in vi mode (#4826)
This commit is contained in:
parent
645a439c0b
commit
9ac924eb3f
@ -70,12 +70,18 @@ function transient_execute
|
|||||||
commandline -f execute
|
commandline -f execute
|
||||||
end
|
end
|
||||||
|
|
||||||
function enable_transience
|
# --user is the default, but listed anyway to make it explicit.
|
||||||
bind \r transient_execute
|
function enable_transience --description 'enable transient prompt keybindings'
|
||||||
|
bind --user \r transient_execute
|
||||||
|
bind --user -M insert \r transient_execute
|
||||||
end
|
end
|
||||||
|
|
||||||
function disable_transience
|
# Erase the transient prompt related key bindings.
|
||||||
bind \r execute
|
# --user is the default, but listed anyway to make it explicit.
|
||||||
|
# Erasing a user binding will revert to the preset.
|
||||||
|
function disable_transience --description 'remove transient prompt keybindings'
|
||||||
|
bind --user -e \r
|
||||||
|
bind --user -M insert -e \r
|
||||||
end
|
end
|
||||||
|
|
||||||
# Set up the session key that will be used to store logs
|
# Set up the session key that will be used to store logs
|
||||||
|
Loading…
Reference in New Issue
Block a user