fzf/shell
William Chargin 0c8de1ca44 Fix Bash+vimode pre-launch delay
Summary:
Fix adapted from [@adamheins: fzf, vi-mode, and fixing delays][1].

  [1]: https://adamheins.com/blog/fzf-vi-mode-and-fixing-delays

The basic problem is that
fzf presses <Esc> to enter vi-movement-mode
(as opposed to insert mode)
and then presses a bunch of keys to set up the buffer.
But the <Esc> keypress is also the prefix for a bunch of other commands,
so Bash will dutifully wait an excruciating half-second
before actually executing this command.
Instead, we bind <C-x><C-a>, which is unused by default
and seems reasonably unlikely to be custom-bound,
to be another way to enter vi-movement-mode;
this binding is unambiguous, so fzf can use it without delay.

This change was made by just `:s/\\e/\\C-x\\C-a/gc`
in the relevant section,
after adding the actual binding and comment at the top.
2016-04-14 13:19:05 -04:00
..
completion.bash [bash] Fix shellcheck warnings 2016-03-02 23:59:42 +09:00
completion.zsh [zsh] Remove unnecessary evals 2016-04-12 21:20:03 +09:00
key-bindings.bash Fix Bash+vimode pre-launch delay 2016-04-14 13:19:05 -04:00
key-bindings.fish Add $FZF_CTRL_R_OPTS for overriding the default options for CTRL-R 2016-03-23 03:00:20 +09:00
key-bindings.zsh Fix FZF_CTRL_R_OPTS for zsh (#526) 2016-03-23 03:02:57 +09:00