summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2018-04-25 18:47:56 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2018-04-25 18:47:56 +0900
commit89de1340af8fa1bf767d4dfbc8696700d58d95d2 (patch)
treeb07772e223dced4828b1908a4657fef43432a412 /shell
parent9e753a0d44b025d3d2ac585e42f62d480be48cbb (diff)
downloadfzf-89de1340af8fa1bf767d4dfbc8696700d58d95d2.tar.gz
[bash] Add --sync to the default CTRL-R options
This compensates the use of --tac. fzf will not render on the screen until the complete list of commands are loaded.
Diffstat (limited to 'shell')
-rw-r--r--shell/key-bindings.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/key-bindings.bash b/shell/key-bindings.bash
index 29c5c962..be24dec6 100644
--- a/shell/key-bindings.bash
+++ b/shell/key-bindings.bash
@@ -56,7 +56,7 @@ __fzf_history__() (
shopt -u nocaseglob nocasematch
line=$(
HISTTIMEFORMAT= history |
- FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-40%} $FZF_DEFAULT_OPTS --tac -n2..,.. --tiebreak=index --bind=ctrl-r:toggle-sort $FZF_CTRL_R_OPTS +m" $(__fzfcmd) |
+ FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-40%} $FZF_DEFAULT_OPTS --tac --sync -n2..,.. --tiebreak=index --bind=ctrl-r:toggle-sort $FZF_CTRL_R_OPTS +m" $(__fzfcmd) |
command grep '^ *[0-9]') &&
if [[ $- =~ H ]]; then
sed 's/^ *\([0-9]*\)\** .*/!\1/' <<< "$line"