Commit Graph

1107 Commits (01b88539ba912da4f49cfba48e2a736c04ec6006)
 

Author SHA1 Message Date
Alex Cornejo 28ffb9638d add android build 9 years ago
Junegunn Choi 1c20255504 Fix typos in help message
Close #425. Thanks to @blueyed.
9 years ago
Junegunn Choi 1fd884b34f Merge pull request #423 from blueyed/zsh-fzf-completion-localoptions
zsh: fzf-completion: use noshwordsplit local option
9 years ago
Daniel Hahler 701687faab zsh: fzf-completion: use noshwordsplit local option
This also fixes the completion causing a bell / flickering in case
"shwordsplit" was not set, because then the function would return false.
9 years ago
Junegunn Choi bbc3055feb Merge pull request #421 from blueyed/zsh-completion-grep-command
zsh completion: use \grep to skip any alias
9 years ago
Daniel Hahler 95c69083c7 zsh completion: use \grep to skip any alias 9 years ago
Junegunn Choi 57a37b5832 [bash-completion] Fix #417 - Update command list 9 years ago
Junegunn Choi d29ae1c462 [install] Add --32 / --64 options
Related: #373
9 years ago
Junegunn Choi df468fc482 0.11.0 9 years ago
Junegunn Choi 31278bcc68 Fix compatibility issues with OR operator and inverse terms 9 years ago
Junegunn Choi e7e86b68f4 Add OR operator
Close #412
9 years ago
Junegunn Choi a89d8995c3 Add execute-multi action
Close #413
9 years ago
Junegunn Choi dbc854d5f4 Handle wide unicode characters in --prompt 9 years ago
Junegunn Choi f1cd0e2daf [zsh] Fix #404 - Escape $ in $LBUFFER 9 years ago
Junegunn Choi 90d32bd756 [install] Fix #414 - Respect $ZDOTDIR 9 years ago
Junegunn Choi e99731ea85 [shell] Add FZF_ALT_C_COMMAND for ALT-C (#408) 9 years ago
Junegunn Choi 15659ac6e6 Merge pull request #409 from freitass/master
[bash-completion] Add nvim to f_cmds
9 years ago
Leandro Freitas 3ef41845a9 [bash-completion] Add nvim to f_cmds 9 years ago
Junegunn Choi c84e681581 Merge pull request #403 from JackDanger/not-relying-on-exit-status-for-ctrl-r
Not relying on exit status for CTRL-R

Patch submitted by @robinro and @JackDanger
Close #403 #242 #241 #203
9 years ago
Jack Danger Canty c3cf3427b1 Not relying on exit status for CTRL-R
In the case that fzf-tmux returns a user-selected result but with a
non-zero exit status (which can happen if a function inside $PS1 returns
non-zero) this allows CTRL-R to continue working as expected.

Addresses #203 (Tranquility's comment)
9 years ago
Junegunn Choi 2c4f71d85b [zsh] fzf-history-widget - update local declaration 9 years ago
Junegunn Choi c6328affae Update extended-search mode section of README 9 years ago
Junegunn Choi aaef18295d Update FZF_DEFAULT_COMMAND example 9 years ago
Junegunn Choi 14f0d2035e Update Homebrew instructions 9 years ago
Junegunn Choi 64afff6b9a 0.10.9 9 years ago
Junegunn Choi 6bddffbca4 Setup signal handlers before ncurses initialization
This prevents fzf from missing SIGWINCH during startup which
occasionally happens with fzf-tmux
9 years ago
Junegunn Choi 81a88693c1 Make --extended default
Close #400
9 years ago
Junegunn Choi 68541e66b7 [man] double-click for --bind (#374) 9 years ago
Junegunn Choi 672b593634 Update FZF_DEFAULT_COMMAND example (#310) 9 years ago
Junegunn Choi 5769d3867d [nvim] setf fzf 9 years ago
Junegunn Choi 724ffa3756 [install] Do not download binary if it's found in $PATH (#373)
/cc @xconstruct
9 years ago
Junegunn Choi 5694b5ed30 Fix #394 - --bin option is broken 9 years ago
Junegunn Choi a1184ceb4e Fix travis CI build 9 years ago
Junegunn Choi 02203c7739 Add command-line flags to install script
Close #392

  usage: ./install [OPTIONS]

      --help               Show this message
      --bin                Download fzf binary only
      --all                Download fzf binary and update configuration files
                           to enable key bindings and fuzzy completion
      --[no-]key-bindings  Enable/disable key bindings (CTRL-T, CTRL-R, ALT-C)
      --[no-]completion    Enable/disable fuzzy completion (bash & zsh)
      --[no-]update-rc     Whether or not to update shell configuration files
9 years ago
Junegunn Choi 4d709e0dd2 Fix #391 - Strip non-printable characters 9 years ago
Junegunn Choi ae04f56dbd Fix --bind "double-click:execute(...)" (#374) 9 years ago
Junegunn Choi f80ff8c917 Add bindable double-click event (#374) 9 years ago
Junegunn Choi b4ce89bbf5 [build] Link libncursesw when building 64-bit linux binary
Close #376
9 years ago
Junegunn Choi 486b87d821 [bash-completion] Retain original completion options (#288) 9 years ago
Junegunn Choi b3010a4624 0.10.8 9 years ago
Junegunn Choi 7d53051ec8 Merge pull request #371 from wilywampa/edit_directory
Trigger netrw autocommand when opening directory
9 years ago
Jacob Niehus ed893c5f47 Trigger netrw autocommand when opening directory 9 years ago
Junegunn Choi a4eb3323da Fix #370 - Panic when trying to set colors when colors are disabled 9 years ago
Junegunn Choi 1da065e50e 0.10.7 9 years ago
Junegunn Choi 86bc9d506f Fix invalid interrupt handler during execute action
Interrupt handling during execute action was not serialized and often
caused crash, failed to restore the terminal state.
9 years ago
Junegunn Choi eee45a9578 [completion] Revamp completion API
* _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
9 years ago
Junegunn Choi 659f49a09a [fzf-tmux] Create temp files in $TMPDIR if defined 9 years ago
Junegunn Choi 8fa9e85980 [zsh-completion] Allow custom completion function
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
9 years ago
Junegunn Choi 92a75c9563 Use trimmed length when --nth is used with --tiebreak=length
This change improves sort ordering for aligned tabular input.
Given the following input:

    apple   juice   100
    apple   pie     200

fzf --nth=2 will now prefer the one with pie. Before this change fzf
compared "juice   " and "pie     ", both of which have the same length.
9 years ago
Junegunn Choi 7c7a30c472 Merge pull request #364 from halostatue/use-zsh-regex-module
Remove dependency on zsh/pcre module
9 years ago