diff options
author | accidentaldevelopment <991465+accidentaldevelopment@users.noreply.github.com> | 2023-01-30 17:13:16 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-30 23:13:16 +0100 |
commit | 9ac924eb3f0f8faa6da0375d92fc1dc22b8ba721 (patch) | |
tree | f75dbd07f589c9d103fef9d9996a81d922d20088 /src | |
parent | 645a439c0ba3eb79afad681b7326a6aeefd3a2e2 (diff) |
fix(fish): enable transient prompt when in vi mode (#4826)
Diffstat (limited to 'src')
-rw-r--r-- | src/init/starship.fish | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/init/starship.fish b/src/init/starship.fish index b427ec243..21e1f0ff1 100644 --- a/src/init/starship.fish +++ b/src/init/starship.fish @@ -70,12 +70,18 @@ function transient_execute commandline -f execute end -function enable_transience - bind \r transient_execute +# --user is the default, but listed anyway to make it explicit. +function enable_transience --description 'enable transient prompt keybindings' + bind --user \r transient_execute + bind --user -M insert \r transient_execute end -function disable_transience - bind \r execute +# Erase the transient prompt related key bindings. +# --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 # Set up the session key that will be used to store logs |