fzf/shell
Daniel Hahler 38a2076b89 zsh: pass through exit code from widgets
This allows to have a custom widget like the following, which would
additionally accept the line, but only in case of entries being
selected:

    fzf-file-widget-with-accept() {
      zle fzf-file-widget
      if [[ "$?" == 0 ]] && (( $#BUFFER )); then
        zle accept-line
      fi
    }
    zle     -N   fzf-file-widget-with-accept
    bindkey '\e^T' fzf-file-widget-with-accept

With this `<C-a>t` will launch fzf, and simulate the pressing of "Enter"
afterwards.
2016-06-16 20:20:29 +02:00
..
completion.bash [bash/zsh] Take SSH completion hints from known_hosts 2016-06-02 21:58:01 +09:00
completion.zsh optimize fzf_default_completion binding 2016-06-11 15:19:16 -07:00
key-bindings.bash [shell] Add $FZF_CTRL_T_OPTS and $FZF_ALT_C_OPTS 2016-06-12 20:48:23 +09:00
key-bindings.fish [shell] Add $FZF_CTRL_T_OPTS and $FZF_ALT_C_OPTS 2016-06-12 20:48:23 +09:00
key-bindings.zsh zsh: pass through exit code from widgets 2016-06-16 20:20:29 +02:00