summaryrefslogtreecommitdiff
path: root/shell
AgeCommit message (Collapse)Author
2018-05-04[bash] Do not print error when falling back to default completion (#1279)ptzz
Fixes #1278
2018-04-30[bash] Fix infinite loop on tab completionJunegunn Choi
awk may not set OFS to match FS depending on the implementation. Close #1227
2018-04-25[bash] Add --sync to the default CTRL-R optionsJunegunn Choi
This compensates the use of --tac. fzf will not render on the screen until the complete list of commands are loaded.
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.
2018-02-16[bash] Fix CTRL-R to preserve the latest yankJunegunn Choi
Close #1216 1. Append a single space so that step 3 won't fail 2. CTRL-E to move to the end of the line 3. CTRL-U to delete the whole line before the cursor 4. CTRL-Y to paste the deleted line 5. ESC+Y to rotate the kill ring and bring back the previous yank before step 3 6. CTRL-U to delete the whole line again 7. Paste `__fzf_history__` 8. ESC+CTRL-E to expand the command substitution 9. ESC+R to redraw the line 10. ESC+^ to expand the history entry (!NUMBER)
2018-02-15[bash] Fix extra space issue of dynamic completion with 'nospace'Junegunn Choi
Close #1203
2017-12-07[bash] Trigger redraw-current-line before history-expand-lineJunegunn Choi
Close #681
2017-12-03[bash-completion] Fix custom completion with dynamic loader enabledJunegunn Choi
After _completion_loader is called, instead of loading the entire completion.bash file, just restore the fzf completion for the current command. `_fzf_orig_completion_$cmd` is only set if _completion_loader actually changed the completion options to avoid infinite loop. Close #1170
2017-11-14[zsh] Fire zsh precmd functions after cd (#1136)Aaron Jensen
Fixes #915
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-20[zsh] Use fc -r instead of fzf --tac to speed up loadtime (#1097)Daniel Schaffrath
Reference: http://zsh.sourceforge.net/Doc/Release/Shell-Builtin-Commands.html > The flag -r reverses the order of the events
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-10-10Don't do shell quoting for weird chars (#1079)Ionel Cristian Mărieș
* Don't do shell quoting for weird chars This would prevent tabs from being escaped as `$'\t'` (definitely not what I would want to see as initial value in the search). * Do different escape.
2017-09-27[completion] Include host aliases in ssh completion (#1062)Josh Pencheon
2017-07-31Revert "[bash] Do not append space when path completion is cancelled"Junegunn Choi
This reverts commit 376a76d1d3c39a1686b6ac7a6118c1f80af3178e as it affects normal completion
2017-07-30[bash] Do not append space when path completion is cancelledJunegunn Choi
Close #990
2017-07-15[fish] Fix ctrl-r regression in versions <2.4 (#972)Tom Fitzhenry
Close #966
2017-06-25[fish] Accept starting dir for <M-c> key binding (#944)John Nguyen
This also modifies <C-t> behaviour. The longest file path in the input is used as root directory for `find` command. The remainder of the input is passed to fzf's --query as a initial search parameters.
2017-06-25[fish] Support multiline commands (#954)Tom Fitzhenry
Fix found by @amosbird at https://github.com/junegunn/fzf/issues/953#issuecomment-310309055 closes #440
2017-06-12[fish] Fix <C-t> completion for current dir search (#946)John Nguyen
If "." is given as the argument to begin <C-t> completion, the leading "." is not correctly removed. In general, if user selects a fzf completion, the current token should be "consumed".
2017-06-10[fish] Fix CTRL-T with paths that don't start with ./Junegunn Choi
Close #943
2017-04-11[bash-completion] Use -o dirnames instead of -o plusdirsJunegunn Choi
Close #903 Related #135
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-03[shell] Enable sorting by default in CTRL-RJunegunn Choi
CTRL-R binding used to start with --no-sort to list the matched commands in chronological order. However, it has been a constant source of confusion. Let's enable it by default from now on. The sorted result shouldn't be too confusing as we use --tiebreak=index.
2017-03-01[zsh] emulate -L zsh to avoid issues with incompatible optionsJunegunn Choi
Close #858
2017-02-19Exclude sysfs in find commandsJunegunn Choi
2017-02-16[shell] Replace `sed` with `-mindepth 1` and `cut` (#844)Pierre Neidhardt
2017-02-09[zsh] Do not cd when cancelling alt+c keybind (#840)Daniel Gray
2017-01-26Use --bind instead of --toggle-sortJunegunn Choi
Related #822
2017-01-25[fish] Add toggle-sort back to CTRL-R (#759)Junegunn Choi
2017-01-21[zsh] Workaround trailing esacped space bug in go-shellwordsJunegunn Choi
https://github.com/mattn/go-shellwords/issues/3 Close #812
2017-01-17[shell] Do not override --reverse in CTRL-RJunegunn Choi
Close #807
2017-01-17[bash/zsh] Remove unused --reverse in CTRL-R bindingJunegunn Choi
Related #807
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-15Replace --normalize with --literal and enable normalization by defaultJunegunn Choi
Ref #790
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
2017-01-01[bash] Addendum fix for #580Junegunn Choi
2016-12-31[bash-completion] Always backup existing completion definitionsJunegunn Choi
_fzf_completion_loaded is no longer checked. This change increases the load time by a few milliseconds, but I can't think of a better way to handle the issue. Close #783.
2016-12-24[shell] Use '-mindepth 1' to omit root folder in 'find' output (#779)Pierre Neidhardt
This removes the need for the 'sed' call. Faster, cleaner.
2016-12-14Overhaul fish functions (#759)Pierre Neidhardt
Replace the "temp file" workaround with the "read" function: it's simpler and faster. Use proper escaping, remove the custom function. The "file" widget uses last token as root for the "find" command. This replaces the equivalent of '**' completion in bash/zsh. The "$dir" non-expanded variable can be used in FZF_CTRL_T_COMMAND to set the root.
2016-11-15[shell] Fix pruning condition of find command for CTRL-T and ALT-CJunegunn Choi
`-fstype dev` is invalid. It's devfs on macOS and devtmpfs on Linux.
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-10-11key-bindings.fish: Yank commandline in fzf-history-widgetPierre Neidhardt