Skip to content
Myr

[fish] Fix intermittent errors on CTRL-T

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

This seems like a bug of fish, but sometimes when you select an item fish complains: "insertion mode switches can not be used when not in insertion mode" This only happens when using tmux pane. Injecting a dummy command somehow fixes the issue.

authored by Junegunn Choi · committed by Junegunn Choi · parent edb6476 · Browse files · 1 file+1 added−0 removed
This commit

State

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

Diff stats

1 file+1 added−0 removed

  • other:+1 added−0 removed

1 file+1 added−0 removed

modified:shell/key-bindings.fish+1 added
18 unmodified lines
19 -o -type f -print \20 -o -type d -print \21 -o -type l -print 2> /dev/null | sed 1d | cut -b3-"22 eval "$FZF_CTRL_T_COMMAND | "(__fzfcmd)" -m > $TMPDIR/fzf.result"23 and sleep 024 and commandline -i (cat $TMPDIR/fzf.result | __fzf_escape)25 commandline -f repaint26 rm -f $TMPDIR/fzf.result27 end
45 unmodified lines