Skip to content
Myr

[fish] Merge history before searching (#3852)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by ismay · committed by GitHub · parent 7fc13c5 · Browse files · 2 files+6 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>

Diff stats

2 files+6 added−1 removed

  • tests:+1 added−1 removed
  • other:+5 added−0 removed

2 files+6 added−1 removed

modified:shell/key-bindings.fish+5 added
60 unmodified lines
61 begin62 set -l FISH_MAJOR (echo $version | cut -f1 -d.)63 set -l FISH_MINOR (echo $version | cut -f2 -d.)6465 # merge history from other sessions before searching66 if test -z "$fish_private_mode"67 builtin history merge68 end6970 # history's -z flag is needed for multi-line support.71 # history's -z flag was added in fish 2.4.0, so don't use it for versions72 # before 2.4.0.73 if [ "$FISH_MAJOR" -gt 2 -o \( "$FISH_MAJOR" -eq 2 -a "$FISH_MINOR" -ge 4 \) ];
124 unmodified lines
modified:test/test_go.rb+1 added-1 removed
64 unmodified lines
65 end66 end6768 def fish69 "unset #{UNSETS.join(' ')}; FZF_DEFAULT_OPTS=\"--no-scrollbar --pointer '>' --marker '>'\" fish_history= fish"69 "unset #{UNSETS.join(' ')}; rm -f ~/.local/share/fish/fzf_test_history; FZF_DEFAULT_OPTS=\"--no-scrollbar --pointer '>' --marker '>'\" fish_history=fzf_test fish"70 end71 end72end73
3771 unmodified lines