1. 05 Oct, 2015 4 commits
    • Junegunn Choi's avatar
      0.10.7 · 1da065e5
      Junegunn Choi authored
      1da065e5
    • Junegunn Choi's avatar
      Fix invalid interrupt handler during execute action · 86bc9d50
      Junegunn Choi authored
      Interrupt handling during execute action was not serialized and often
      caused crash, failed to restore the terminal state.
      86bc9d50
    • Junegunn Choi's avatar
      [completion] Revamp completion API · eee45a95
      Junegunn Choi authored
      * _fzf_complete is the helper function for custom completion
          * _fzf_complete FZF_OPTS ARGS
          * Reads the output of the source command instead of the command string
          * In zsh, you can use pipe to feed the data into the function, but
            it's not possible in bash as by doing so COMPREPLY is set from the
            subshell and thus nullified
      * Change the naming convention for consistency:
          * _fzf_complete_COMMAND
      
      e.g.
      
        # pass completion suggested by @d4ndo (#362)
        _fzf_complete_pass() {
          _fzf_complete '+m' "$@" < <(
            local pwdir=${PASSWORD_STORE_DIR-~/.password-store/}
            local stringsize="${#pwdir}"
            find "$pwdir" -name "*.gpg" -print |
                cut -c "$((stringsize + 1))"-  |
                sed -e 's/\(.*\)\.gpg/\1/'
          )
        }
      
        # Only in bash
        complete -F _fzf_complete_pass -o default -o bashdefault pass
      eee45a95
    • Junegunn Choi's avatar
      659f49a0
  2. 04 Oct, 2015 1 commit
    • Junegunn Choi's avatar
      [zsh-completion] Allow custom completion function · 8fa9e859
      Junegunn Choi authored
      While in bash you can externally register custom completion functions
      using `complete` command, it was not possible to do so in zsh without
      changing completion.zsh as the name of the supported commands are
      hard-coded within the code (See #362). With this commit, fzf-completion
      of zsh will first look if `_fzf_COMMAND_completion` exists and calls the
      function, so one can externally define completion functions for specific
      commands.
      
      This commit also tries to make the interface of (yet undocumented)
      _fzf_list_completion helper function consistent across bash and zsh.
      
      So the following code works both on bash and zsh.
      
          _fzf_pass_completion() {
            local pwdir=${PASSWORD_STORE_DIR-~/.password-store/}
            local stringsize="${#pwdir}"
            let "stringsize+=1"
            _fzf_list_completion '+m' "$@" << "EOF"
              find "$pwdir" -name "*.gpg" -print | cut -c "$stringsize"- | sed -e 's/\(.*\)\.gpg/\1/'
          EOF
          }
      
          # Only on bash
          complete -F _fzf_pass_completion -o default -o bashdefault pass
      
      Note that the suggested convention and the interface are not yet final
      and subject to change.
      
      /cc @d4ndo
      8fa9e859
  3. 02 Oct, 2015 2 commits
  4. 01 Oct, 2015 1 commit
  5. 30 Sep, 2015 2 commits
  6. 27 Sep, 2015 2 commits
  7. 26 Sep, 2015 2 commits
  8. 24 Sep, 2015 1 commit
  9. 22 Sep, 2015 2 commits
  10. 20 Sep, 2015 1 commit
  11. 19 Sep, 2015 6 commits
  12. 18 Sep, 2015 3 commits
  13. 15 Sep, 2015 2 commits
  14. 14 Sep, 2015 1 commit
  15. 12 Sep, 2015 4 commits
  16. 07 Sep, 2015 1 commit
  17. 05 Sep, 2015 1 commit
  18. 31 Aug, 2015 2 commits
  19. 30 Aug, 2015 2 commits