Commit Graph

168 Commits

Author SHA1 Message Date
Jan Edmund Lazo b73cec55f0 [fzf#vim#complete#path] works in Windows 2017-08-27 08:50:35 -04:00
Jan Edmund Lazo 25ea6371b2 [s:complete_trigger] use list type for options 2017-08-27 08:50:35 -04:00
Junegunn Choi 4e603e4fab [Commits] Fix formatting of commit log 2017-08-27 05:10:51 +09:00
Junegunn Choi 13b27c45c8 Merge pull request #429 from janlazo/Windows_Ag
[Ag, fzf#vim#grep] works in Windows
2017-08-25 22:57:55 +09:00
Junegunn Choi e246016844 [History] Remove duplicates and print list in MRU order
Close #434
2017-08-24 02:58:27 +09:00
Jan Edmund Lazo a4d4986d18 Make 8.3 filename via cmd.exe for Neovim 2017-08-22 06:02:30 -04:00
Jan Edmund Lazo b0baf7593d [Commits,BCommits] Windows support (#430)
Works only in s:execute of fzf's Vim plugin.
s:execute_term corrupts the output of fzf#shellescape.
2017-08-22 02:13:06 +09:00
Jan Edmund Lazo dda682ad69 Revert "Run preview script in batchfile for Windows"
The reverted commit is broken.
Keep it simple by sticking with the fnamemodify hack.
Hope that Neovim supports 8.3 filenames
2017-08-20 22:55:47 -04:00
Jan Edmund Lazo 71cc4c5037 Run preview script in batchfile for Windows
Bypasses the following issues in Windows:
1. Neovim does not support 8.3 filenames
   ie. fnamemodify(path, ':8')
2. fzf binary cannot parse output of fzf#shellescape
   It assumes that preview command is run in sh, not cmd.exe
2017-08-20 22:42:45 -04:00
Jan Edmund Lazo 057853a248 [s:fzf] join the option list for preview script check 2017-08-20 21:42:09 -04:00
Jan Edmund Lazo 3334d62749 [fzf#vim#with_preview] works with Ag in Windows
- disabled on Files because the preview scripts cannot resolve the network drive
- use 8.3 filepath for s:bin.preview to bypass escape issues in fzf binary
2017-08-20 21:21:32 -04:00
Jan Edmund Lazo 469ac6bfce [Ag] works in Windows
[fzf#vim#grep] use list type for options
2017-08-20 17:35:28 -04:00
Jan Edmund Lazo fa91d53f5c [Tags] Support Windows-style absolute filepaths (#428) 2017-08-20 23:14:31 +09:00
Jan Edmund Lazo 1e40de4f2d [Tags, BTags] Windows support (#427) 2017-08-20 22:11:42 +09:00
Jan Edmund Lazo 61bcdb146f [s:q] Use fzf#shellescape for Windows (#425)
Fixes Lines, BLines, Buffers on Windows
2017-08-20 16:59:09 +09:00
Jan Edmund Lazo d62ec0b113 [GFiles?] Windows suppport: use list type for options (#424)
Requires msysgit or cygwin in Windows
2017-08-20 16:55:15 +09:00
Jan Edmund Lazo 914355df94 [Helptags] Windows support (#423) 2017-08-20 12:26:07 +09:00
Jack O'Connor 7e868c49ac Exclude the current file from History (#422)
Close #367
2017-08-18 02:14:43 +09:00
Jan Edmund Lazo 43a570d6e6 [Files] runs in Windows (#418)
* [Files] runs in Windows

* Use fzf#shellescape() and copy() in s:merge_opts()

* [fzf#vim#preview] uses list type for options

- fixed s:merge_opts for extending the option list

* [fzf#vim#with_preview] no-op in Windows

Reference: https://github.com/junegunn/fzf.vim/pull/418#issuecomment-322645632

* [fzf#vim#with_preview] return passed dict in Windows
2017-08-17 13:12:10 +09:00
Junegunn Choi b9b275a897 Ignore Funcref actions in g:fzf_action
A Funcref action in g:fzf_action only handles a list of file paths so
they can't be used to open windows.

Related:
- #185
- https://github.com/junegunn/fzf/commit/2069bbc8b54fa77384e42274ee15af7b397af884
2017-08-14 17:42:33 +09:00
Junegunn Choi d3b9fed9c2 [Ag] Drop --nth to make search faster 2017-07-30 20:14:17 +09:00
Junegunn Choi 685f9aae97 [Tags] Remove --with-nth option to speed up loading 2017-07-24 02:35:21 +09:00
Junegunn Choi 55f6bc8367 [Tags/Helptags] Do not proceed if perl is not found
Related: https://github.com/junegunn/fzf.vim/issues/22#issuecomment-311873515
2017-07-01 01:18:01 +09:00
Junegunn Choi 348a57a4a4 Allow fzf#complete to take hash argument with sink
This allows us to use the return value of fzf#wrap function with
fzf#complete.

This commit also removes obsolete g:fzf#vim#default_layout and
fzf#vim#layout.
2017-06-28 21:19:11 +09:00
Junegunn Choi ccc32c3164 Do not depend on fugitive for finding git root
Revert #239
Close #387
2017-06-16 10:39:50 +09:00
Junegunn Choi cf60e54647 [Commits] Commit hash can be longer 2017-06-10 03:44:52 +09:00
Junegunn Choi 990834ab6c [Helptags] Fix globpath pattern
Close #376
2017-05-22 01:29:48 +09:00
Junegunn Choi 536b6ace35 [[B]Tags] Proceed to the next command if the output is empty
Close #375
2017-05-20 01:52:19 +09:00
Junegunn Choi 8ffd3fb0ba [Maps] Fix parse error in non-US locales
Close #324

Caveat: The fix assumes that the paths of Vimscript files do not contain
whitespaces. Maps will report incorrect paths if they do.
2017-04-24 10:48:31 +09:00
Junegunn Choi f3c3646c81 Fix <plug>(fzf-complete-buffer-line)
Reported by Roland Emmerich
2017-04-24 10:34:40 +09:00
Junegunn Choi 2b69c15226 Fix fzf#vim#with_preview: missing parentheses
Close #334
2017-03-13 19:28:40 +09:00
Junegunn Choi 06a8b870c0 [Tags] Support multiple tags files
We also apply --nth 1..2 by default to limit the search scope.

Close #106
Related #5, #329
2017-03-10 17:04:52 +09:00
Junegunn Choi e4f79f6e98 Use shellescape instead of manual escaping
Close #328
2017-03-07 23:17:04 +09:00
Junegunn Choi 87a910a127 [[B]Commits] Enable sort by default 2017-03-03 12:20:44 +09:00
Junegunn Choi 364fea3ca0 [Tags] Temporarily unset autochdir
Close #269
2017-02-26 00:01:00 +09:00
Junegunn Choi fcca65bbe5 [BTags] Fix "tag commnads" argument 2017-02-18 13:51:06 +09:00
Junegunn Choi 4329721384 [Tags] Fall back to --algo=v1 if tags file is too large (> 200MB) 2017-02-03 12:34:20 +09:00
Junegunn Choi f77b644797 Revert "Replace --tiebreak=index with --nth 1,.."
The original issue with --tiebreak=begin will be fixed in fzf 0.16.4 so
we should use --tiebreak=begin again to avoid tokenization overhead.
2017-02-03 12:24:27 +09:00
Junegunn Choi 22e59c4da0 Replace --tiebreak=index with --nth 1,..
Currently, --tiebreak=begin does not guarantee the best result due to
performance considerations. But --nth 1,.. works better in these cases
anyway.
2017-01-25 10:17:30 +09:00
Junegunn Choi 51a4d3090f Use 24-bit colors (fzf 0.16.2)
Close https://github.com/junegunn/fzf/issues/789
2017-01-24 01:49:00 +09:00
Theo Belaire 3e8ac82cbb [Buffers] Allow query argument (#286) 2017-01-11 11:24:07 +09:00
Andreas Gerstmayr bac82a954f [Tags] Add -a option to grep (#284)
Somehow the tags file generated by ctags for the linux kernel, tag
v4.10-rc1 contains non-ASCII characters. grep stops when it detects
non-ASCII characters. This patch adds the -a option to the grep command
to treat the tags file as ASCII text.

Signed-off-by: Andreas Gerstmayr <andreas.gerstmayr@gmail.com>
2017-01-07 10:56:29 +09:00
Matthew Klein 2066643243 [fzf#vim#colors] Remove duplicate colorschemes (#278)
Use s:uniq() instead of uniq() for older versions of Vim.

We don't sort the list before passing it to s:uniq() because
1. s:uniq() can process unsorted lists.
2. And in that way, we can list color schemes from plugins before
   the default ones provided by Vim.
2016-12-25 01:27:53 +09:00
Junegunn Choi 7460b4382c [GFiles?] Apply --tiebreak=index for status code filtering 2016-12-15 10:31:25 +09:00
alex 42086bee57 Add preview.sh for ruby-less previews. (#259) 2016-12-05 02:11:22 +09:00
Junegunn Choi eb9e5803b1 [Files] Fix path display when cwd is ~ 2016-12-03 01:16:01 +09:00
Junegunn Choi 59eb2b19ac [Files] Display relative path in prompt 2016-12-02 21:07:37 +09:00
Junegunn Choi eb1f9b02f7 [fzf#vim#with_preview] Escape --bind expression
Close #256
2016-11-27 19:30:28 +09:00
Didier Prophete 28a1835ce4 Redirect STDERR of ctags to /dev/null (#252) 2016-11-26 14:17:00 +09:00
Junegunn Choi 9ce2c2179f Add fzf#vim#with_preview function for previewing search result
Close #225
2016-11-26 14:11:27 +09:00