summaryrefslogtreecommitdiffstats
path: root/shell
AgeCommit message (Collapse)Author
2016-06-12[shell] Add $FZF_CTRL_T_OPTS and $FZF_ALT_C_OPTSJunegunn Choi
Close #596
2016-06-11optimize fzf_default_completion bindingAleks Kamko
2016-06-08[bash/zsh] Fix $FZF_CTRL_R_OPTS with option values with spacesJunegunn Choi
2016-06-02[zsh] Fix indentationJunegunn Choi
2016-06-02[bash/zsh] Take SSH completion hints from known_hostsJim Howell
Signed-off-by: Junegunn Choi <junegunn.c@gmail.com>
2016-05-29[bash] Use backticks to avoid delay with blink-matching-parenJunegunn Choi
Close #580
2016-05-26[zsh] Fix #579 - Locally unset globsubstJunegunn Choi
2016-04-25[zsh] Fix issues with unicode charactersJunegunn Choi
2016-04-24[bash] Export fzf-file-widget function for bash 4+ (#546)Junegunn Choi
e.g. Remapping fzf-file-widget to CTRL-X CTRL-T intead of CTRL-T bind -x '"\C-x\C-t": fzf-file-widget' bind '"\C-t": transpose-chars'
2016-04-24[fish] Use consistent function names for key bindings (#546)Junegunn Choi
- fzf-file-widget - fzf-history-widget - fzf-cd-widget
2016-04-24[fish] Fix intermittent errors on CTRL-TJunegunn Choi
Related: 23244bb
2016-04-23[bash] Update completion.bashJunegunn Choi
[bash] Update completion.bash
2016-04-23Update key-bindings.bashGene Pavlovsky
Faster startup. Use internal bash globbing instead of external grep binary (adapter from Gentoo's `/etc/bash/bashrc` TERM checking). Insignificant on Linux, but on Cygwin this cuts startup time by 40 ms on my Core i7 laptop.
2016-04-23Update completion.bashGene Pavlovsky
Fixes #548. Avoid using a subshell in _fzf_defc().
2016-04-14Fix bash-vimode normal-mode cd completionWilliam Chargin
2016-04-14Fix Bash+vimode pre-launch delayWilliam Chargin
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-12[zsh] Remove unnecessary evalsJunegunn Choi
2016-03-23Fix FZF_CTRL_R_OPTS for zsh (#526)Junegunn Choi
2016-03-23Add $FZF_CTRL_R_OPTS for overriding the default options for CTRL-RJunegunn Choi
Close #526
2016-03-02[bash] Fix shellcheck warningsJunegunn Choi
Close #516
2016-02-16Minor code cleanupJunegunn Choi
2016-02-16Fix #494 - _fzf_complete hangs on zsh when not using tmux paneJunegunn Choi
2016-02-070.11.30.11.3Junegunn Choi
2016-01-29[completion] _fzf_complete_COMMAND_post for post processingJunegunn Choi
e.g. _fzf_complete_foo() { _fzf_complete "--multi --reverse --header-lines=3" "$@" < <( ls -al ) } _fzf_complete_foo_post() { awk '{print $NF}' } [ -n "$BASH" ] && complete -F _fzf_complete_foo -o default -o bashdefault foo
2016-01-20Make fuzzy completion customizable with _fzf_compgen_{path,dir}Junegunn Choi
Notes: - You can now override _fzf_compgen_path and _fzf_compgen_dir functions to use custom commands such as ag instead of find for listing completion candidates. - The first argument is the base path to start traversal - Removed file-only completion in bash, i.e. _fzf_file_completion. Maintaining a list of commands that only expect files, not directories, is cumbersome (there are too many) and error-prone. TBD: - Added $FZF_COMPLETION_DIR_COMMANDS to customize the list of commands which use directory-only completion. The default is "cd pushd rmdir". Not sure if it's the best approach to address the requirement, I'll leave it as an undocumented feature. Related: #406 (@thomcom), #456 (@frizinak)
2016-01-14[fish] Fix intermittent errors on CTRL-TJunegunn Choi
This seems like a bug of fish, but sometimes when you select an item fish complains: "insertion mode switches can not be used when not in insertion mode" This only happens when using tmux pane. Injecting a dummy command somehow fixes the issue.
2015-12-28Fix autocompletion for absolute pathsKobe Lipkens
2015-12-29[bash/zsh-completion] List hidden files as wellJunegunn Choi
Close #456 and #457
2015-12-25Pass FZF_DEFAULT_OPTS to non-interactive bash instanceKobe Lipkens
2015-12-11Dynamically select which __fzf_select__ to use for tmux with bash 4+.Chaoren Lin
Instead of choosing one at initialization, choose the correct one when it's actually called, so that the behavior is correct even after resizing. Bonus fixes for tmux with bash 4+: - No extra space when cancelling CTRL-T. - Fix cursor position problem in vi mode.
2015-12-11Fix CTRL-T in tmux with non-standard configuration.Chaoren Lin
- Don't assume ~/.fzf.bash exists. - Source the current script for __fzf_select__. - Forward $PATH.
2015-11-18zsh: fzf-completion: use noshwordsplit local optionDaniel Hahler
This also fixes the completion causing a bell / flickering in case "shwordsplit" was not set, because then the function would return false.
2015-11-17zsh completion: use \grep to skip any aliasDaniel Hahler
2015-11-12[bash-completion] Fix #417 - Update command listJunegunn Choi
2015-11-09[zsh] Fix #404 - Escape $ in $LBUFFERJunegunn Choi
2015-11-08[shell] Add FZF_ALT_C_COMMAND for ALT-C (#408)Junegunn Choi
2015-11-06[bash-completion] Add nvim to f_cmdsLeandro Freitas
2015-11-05Not relying on exit status for CTRL-RJack Danger Canty
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)
2015-11-04[zsh] fzf-history-widget - update local declarationJunegunn Choi
2015-11-03Make --extended defaultJunegunn Choi
Close #400
2015-10-12[bash-completion] Retain original completion options (#288)Junegunn Choi
2015-10-05[completion] Revamp completion APIJunegunn Choi
* _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
2015-10-05[zsh-completion] Allow custom completion functionJunegunn Choi
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
2015-10-01Remove dependency on zsh/pcre moduleAustin Ziegler
Fixes #363.
2015-09-15Replace --header-file with --header (#346)Junegunn Choi
and allow using --header and --header-lines at the same time. Close #346.
2015-09-01[zsh-completion] Temporarily unset shwordsplit (#328)Junegunn Choi
2015-08-30fix fish streamsMichaƂ Kalbarczyk
2015-07-26Add --margin optionJunegunn Choi
Close #299
2015-07-23[bash] Update fzf option completionJunegunn Choi
2015-07-13[bash] Make CTRL-R work when histexpand is unset (#286)Junegunn Choi
Note that it still can't handle properly multi-line commands. Thanks to @jpcirrus for the bug report and the fix.