When using the widget in "/", it would descend into 'dev/'.
Using '*' for the starting path would do so also with the new '-fstype'
excludes.
`cut -b3-` and `sed 1d` have been added to massage the different format
of the list.
This also uses `-L` with all calls to find, especially for the file
finders.
Ref: https://github.com/junegunn/fzf/pull/122
fzf may not run correctly on some OS even when the binary the platform
is successfully downloaded. The install script is updated to check if
the system has no problem running the executable and fall back to Ruby
version when necessary.
Remove `1` from --nth option. With the change you can no more use `$`
anchor to match the tail of a command index. But it makes search
around 15% faster.
jg@jg:~> time cat history | fzf +s -n..,1,2.. -f fzf > /dev/nul
real 0m2.929s
user 0m2.766s
sys 0m0.154s
jg@jg:~> time cat history | fzf +s -n2..,.. -f fzf > /dev/null
real 0m2.535s
user 0m2.422s
sys 0m0.112s
Although a major overhaul is ongoing (#67), it is not yet finished and
cannot be considered stable enough for the next release. This commit
fixes a few apparent issues with small change to the current
implementation.
- Fixed error when $TMPDIR is not defined
- Better escaping of file/directory names
- Splitted functions to workaround fish bug
fzf does not currently define vi-command mode mappings. This is particularly annoying for <C-r>, which opens bash's old-fashioned recursive history search.
This patch adds vi-command mode mappings that simply drop back into vi-insert mode ("i") and then trigger the primary mapping.
Aliases are expanded in shell scripts, and one may have an alias
for the `find` command that conflicts with fzf. So make sure fzf
is using real find command rather than the alias.