Commit Graph

836 Commits (c6328affaede9ff2ba903bc85d69ea6290df2a77)
 

Author SHA1 Message Date
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
Austin Ziegler ea271cd4e2 Remove dependency on zsh/pcre module
Fixes #363.
9 years ago
Junegunn Choi 6a38d07a4c Merge pull request #361 from justinmk/swapexists
[vim] handle SwapExists
9 years ago
Justin M. Keyes c4e5ee63bb [vim] handle SwapExists
The SwapExists dialog prevents multiple files from being opening if the
dialog occurs before all files are opened. Opening the files is more
important than showing the dialog, so choose "readonly" automatically
and continue opening files.
9 years ago
Junegunn Choi 862da2c0b1 [vim] Consistent exit status handling 9 years ago
Junegunn Choi 545370d2b3 Merge branch 'jebaum-master' 9 years ago
James Baumgarten 59220c63a6 [vim] handle exit status 1 properly (#359) 9 years ago
Junegunn Choi 86306dd45a [vim] Display proper error message when GVim launcher failed
Related: https://github.com/junegunn/fzf.vim/issues/16
9 years ago
Junegunn Choi 98d2bfa0db [install] Terminate install script when failed to update shell config
Close #354
9 years ago
Junegunn Choi aec48f159b [neovim] Remove redraw! hack that is no longer needed 9 years ago
Junegunn Choi ad7e433a7d Use build tags to enable static linking 9 years ago
Junegunn Choi 5a60aa5050 [vim] Display proper error message when command failed 9 years ago
Junegunn Choi ebea470875 Build linux binary on Centos 9 years ago
Junegunn Choi d980e00961 Revert "Revert "0.10.6""
This reverts commit 987799f8fb.
9 years ago
Junegunn Choi 987799f8fb Revert "0.10.6"
This reverts commit d2f3604c1d.
9 years ago
Junegunn Choi d2f3604c1d 0.10.6 9 years ago
Junegunn Choi 72cc558fdc Fix travis CI build 9 years ago
Junegunn Choi 6bc3fe6e67 Build partially-static binary for linux (#350)
Instead of building a separate statically-linked binary, build
partially-static binary that only contains ncurses to avoid
compatibility issues in libc.
9 years ago
Junegunn Choi 9398878048 [fzf-tmux] Exit with the same exit status as with fzf 9 years ago
Junegunn Choi ca19762e58 Exit status 130 when fzf is terminated by the user
Related: #345
9 years ago
Junegunn Choi 8764be07e2 [vim] Ignore exit status of 2 (#345) 9 years ago
Junegunn Choi 2022a3ad96 Replace --header-file with --header (#346)
and allow using --header and --header-lines at the same time.

Close #346.
9 years ago