diff options
| author | ismay <7355199+ismay@users.noreply.github.com> | 2024-06-12 06:56:20 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-12 13:56:20 +0900 |
| commit | 144d55a5becf73d2489880e025cc13fd59c7414b (patch) | |
| tree | f63bb43069dcab921422e154f623c2bad662d6cc /shell/key-bindings.fish | |
| parent | 7fc13c5cfde55ae53c6f87290a80559fcc59bf0f (diff) | |
| download | fzf-144d55a5becf73d2489880e025cc13fd59c7414b.tar.gz | |
[fish] Merge history before searching (#3852)
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
Diffstat (limited to 'shell/key-bindings.fish')
| -rw-r--r-- | shell/key-bindings.fish | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/shell/key-bindings.fish b/shell/key-bindings.fish index d1db09bc..7f14c0d0 100644 --- a/shell/key-bindings.fish +++ b/shell/key-bindings.fish @@ -62,6 +62,11 @@ function fzf_key_bindings set -l FISH_MAJOR (echo $version | cut -f1 -d.) set -l FISH_MINOR (echo $version | cut -f2 -d.) + # merge history from other sessions before searching + if test -z "$fish_private_mode" + builtin history merge + end + # history's -z flag is needed for multi-line support. # history's -z flag was added in fish 2.4.0, so don't use it for versions # before 2.4.0. |
