summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2024-03-31 20:37:20 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2024-03-31 20:37:20 +0900
commit128e4a2e8d9f57373182cad64fb69e33fb20e0ee (patch)
tree8a757e36126899d848ce0aeba29a6be459169c92
parent07ac90d798eb5f7c4a72a46cc6e9b296cb1a3b2d (diff)
[fish] Fix $dir in FZF_{CTRL_T,ALT_C}_COMMAND not evaluated
Fix #3705
-rw-r--r--shell/key-bindings.fish4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/key-bindings.fish b/shell/key-bindings.fish
index 8b61c4d3..95934714 100644
--- a/shell/key-bindings.fish
+++ b/shell/key-bindings.fish
@@ -21,7 +21,7 @@ function fzf_key_bindings
# Store current token in $dir as root for the 'find' command
function fzf-file-widget -d "List files and folders"
set -l commandline (__fzf_parse_commandline)
- set -l dir $commandline[1]
+ set -lx dir $commandline[1]
set -l fzf_query $commandline[2]
set -l prefix $commandline[3]
@@ -70,7 +70,7 @@ function fzf_key_bindings
function fzf-cd-widget -d "Change directory"
set -l commandline (__fzf_parse_commandline)
- set -l dir $commandline[1]
+ set -lx dir $commandline[1]
set -l fzf_query $commandline[2]
set -l prefix $commandline[3]