summaryrefslogtreecommitdiffstats
path: root/shell/completion.zsh
AgeCommit message (Collapse)Author
2021-01-13[zsh] Properly reset prompt after completion (#2318)Ruslan Sayfutdinov
2021-01-01[shell] Disable CTRL-ZJunegunn Choi
Fix #2289
2020-10-06[completion] Make host completion handle source files without EOLElvan Owen
2020-04-18[completion] Make kill completion more consistent with the othersJunegunn Choi
Support both ordinary completion trigger and empty trigger kill <tab> kill foo**<tab> Close #1988 Close #385
2020-04-13[zsh-completion] Fix error with backslash-prefixed commandsJunegunn Choi
Fix #1973 Fix #1974 Fix #1975
2020-04-03[fzf-tmux] Split zsh variable expansion for old zshJunegunn Choi
The following code works in zsh 5.8 but not in 5.4 ${(Q)${(Z+n+)FZF_TMUX_OPTS:--d${FZF_TMUX_HEIGHT:-40%}}}
2020-04-03[fzf-tmux] Fall back to plain fzf when split failedJunegunn Choi
2020-04-03[fzf-tmux] Add option to start fzf in tmux popup windowJunegunn Choi
Requires latest tmux built from source (e.g. brew install tmux --HEAD) Examples: # 50%/50% width and height on the center of the screen fzf-tmux -p # 80%/80% fzf-tmux -p80% # 80%/40% fzf-tmux -p80%,40% # Separate -w and -h fzf-tmux -w80% -h40% # 80%/40% at position (0, 0) fzf-tmux -w80% -h40% -x0 -y0 You can configure key bindings and fuzzy completion to open in tmux popup window like so: FZF_TMUX_OPTS='-p 80%'
2020-03-30[zsh] Ensure that fzf code always parses the same way (#1944)Roman Perepelitsa
At the top of each zsh file options are set to their standard values (those marked with <Z> in `man zshoptions`) and `aliases` option is disabled. At the bottom of the file the original options are restored. Fix #1938
2020-03-24[zsh-completion] Fix a bug where _fzf_complete did not iterate through args ↵Chitoku
(#1936)
2020-03-11Fuzzy completions: removed leftover debug echo (#1921)Jakub Łuczyński
2020-03-11Change custom fuzzy completion APIJunegunn Choi
To make it easier to write more complex fzf options. Although this does not break backward compatibility, users are encouraged to update their code accordingly. # Before _fzf_complete "FZF_ARG1 FZF_ARG2..." "$@" < <( # Print candidates ) # After _fzf_complete FZF_ARG1 FZF_ARG2... -- "$@" < <( # Print candidates )
2020-03-07[completion] Use file redirection instead of pipeJunegunn Choi
This change allows the completion system of bash and zsh to return before the input process completes. Related #1887
2020-02-20[completion] Allow users to customize fzf options via _fzf_comprunJunegunn Choi
Related #1809 #1850
2020-01-19[zsh-completion] Fix quoting/splitting issues (#1820)Chitoku
2019-12-06[ssh completion] Skip only aliases matching * (#1788)Henré Botha
This commit fixes a bug where lines that declare multiple hostnames get omitted from completion entirely if one of the hostnames matches *. For example: Host foo.com bar.dev baz.*
2019-12-06[completion] Add support for HostName lines in ~/.ssh/config (#1785)David Gray
Close #1783
2019-12-05[completion] Ignore hg repos (#1777)John Purnell
* Update completion.bash * Update completion.zsh
2019-11-03[zsh-completion] Fix prefix extraction when triggers start with ';'zhaoyunfeng
2019-03-14[zsh-completion] Suppress "no matches found" messageJunegunn Choi
2019-02-28[completion] Look up on ~/.ssh/config.d/* files when doing ssh host complete ↵Rui Coelho
(#1420)
2019-02-28[shell] Skip loading completion code on non-interactive shellJunegunn Choi
This change is not required if you use the install script to generate ~/.fzf.bash or ~/.fzf.zsh which already has the proper guard statement. Close #1474
2018-10-05[zsh] Fix multiline prompt issue with 'zle reset-prompt' (#1397)Paul Frybarger
Close #867 Close #1256
2018-07-06[completion] Filter out non-hostnames in SSH config file (#1329)Jay
* Correctly exclude SSH config options with Host SSH config files have 14 options containing 'Host'. Previously The zsh and bash completion scripts would include lines containing these options when doing command-line completion of SSH hosts with `ssh **`. This commit fixes that problem by only including lines with 'host '. * Don't autocomplete SSH hostnames using ? SSH config files support ? as well as * for wildcards in Host lines. This commit excludes lines containing ? for zsh/bash command line completeion using `ssh **`
2018-06-02[bash/zsh] Fix missing fuzzy completions (#1303)ptzz
* [bash/zsh] Fix missing fuzzy completions `cat foo**<TAB>` did not display the file `foobar` if there was a directory named `foo`. Fixes #1301 * [zsh] Evaluate completion prefix cat $HOME** cat ~username** cat ~username/foo**
2018-04-12ZSH and Bash completion: remove shebang (#1248)Avindra Goolcharan
Shebangs are only for files that are directly executable. In cases where files are only sourced (such as completion scripts), these are unneeded.
2017-10-21[completion] Ensure ps called as command (#1098)Igor Urazov
When `ps` is aliased for something uncommon, like `alias ps=grc ps` which colorizes ps output, the output of `ps` can be unexpected and/or undesired. This change makes ps to be always executed as command, even if it's aliased.
2017-10-19[completion] Fix known_hosts completion for custom port number (#1092)Andrey Chernih
Handles records like "[20.20.7.168]:9722 ssh-rsa ..." This is a standard format for servers running on custom port according to http://man.openbsd.org/sshd.8#SSH_KNOWN_HOSTS_FILE_FORMAT A hostname or address may optionally be enclosed within ‘[’ and ‘]’ brackets then followed by ‘:’ and a non-standard port number.
2017-09-27[completion] Include host aliases in ssh completion (#1062)Josh Pencheon
2017-03-21Add support for IPv6 addresses in ssh completion (#877)Sam Van Den Berge
Signed-off-by: Sam Van Den Berge <sam@drgt.net>
2017-03-03[zsh] Use setopt noposixbuiltins instead of emulate -L zshJunegunn Choi
Close #858 https://github.com/junegunn/fzf/commit/3a6af27586c65bb9243c5af7c43a40619503db52#commitcomment-21135641
2017-03-03Revert "[zsh] emulate -L zsh to avoid issues with incompatible options"Junegunn Choi
This reverts commit 3a6af27586c65bb9243c5af7c43a40619503db52.
2017-03-01[zsh] emulate -L zsh to avoid issues with incompatible optionsJunegunn Choi
Close #858
2017-01-15[completion] Restore --height option for kill completionJunegunn Choi
2017-01-15[shell] Make layout configurable via $FZF_DEFAULT_OPTS and $FZF_{KEY}_OPTSJunegunn Choi
2017-01-15[completion] Add preview window to kill completionJunegunn Choi
2017-01-14Fix $FZF_COMPLETION_OPTS evaluationJunegunn Choi
Close #799
2017-01-08Add --height optionJunegunn Choi
2017-01-07[bash/zsh-completion] Filter ~/.ssh/known_hostsJunegunn Choi
Close #791
2016-10-13Use `command` to ignore shell functionNiraj Thapaliya
2016-10-13Gnu `[` evaluates both sides of a -o condition regardlessNiraj Thapaliya
It doesn't short circuit like we expect, causing trouble when $dir is empty Use shell builtin instead
2016-08-28Split default zsh binding at the correct placeTobias Frilling
The command substitution and following word splitting to determine the default zle widget for ^I formerly only works if the IFS parameter contains a space. Now it specifically splits at spaces, regardless of IFS.
2016-07-15[zsh-completion] setopt localoptions noksh_arraysJunegunn Choi
Close #607
2016-07-07[shell] Suppress alias/function expansionJunegunn Choi
Close #611
2016-07-05[zsh] Re-initialize zle when widgets finishSebastian Reuße
zle automatically calls zle-line-init when it starts to read a new line. Many Zsh setups use this hook to set the terminal into application mode, since this will then allow defining keybinds based on the $terminfo variable (the escape codes in said variable are only valid in application mode). However, fzf resets the terminal into raw mode, rendering $terminfo values invalid once the widget has finished. Accordingly, keyboard bindings defined via $terminfo won’t work anymore. This fixes the issue by calling zle-line-init when widgets finish. Care is taken to not call this widget when it is undefined. Fixes #279
2016-06-11optimize fzf_default_completion bindingAleks Kamko
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-26[zsh] Fix #579 - Locally unset globsubstJunegunn Choi
2016-04-25[zsh] Fix issues with unicode charactersJunegunn Choi