Commit Graph

294 Commits

Author SHA1 Message Date
Junegunn Choi 529894d769 Revert "[GitFiles] Support files with special characters (#500)"
This reverts commit 004af25150.
2017-11-16 19:29:46 +09:00
Michael Budde 004af25150 [GitFiles] Support files with special characters (#500)
By default git will quote filenames that contain special characters.
From the git help on the `core.quotepath` config:

> The commands that output paths (e.g. `ls-files`, `diff`), when not given
> the `-z` option, will quote "unusual" characters in the pathname by
> enclosing the pathname in a double-quote pair and with backslashes the
> same way strings in C source code are quoted. If this variable is set
> to false, the bytes higher than 0x80 are not quoted but output as
> verbatim. Note that double quote, backslash and control characters are
> always quoted without `-z` regardless of the setting of this variable.

This quoting behaviour means that GitFiles cannot be used to open files
that contain any special characters. Fix this by using the `-z` option
to `ls-files` together with the `--read0` option on fzf.
2017-11-16 15:11:27 +09:00
Josh Pencheon 4b9e2a03fe [GFiles] Avoid duplicate entries (#473)
It is presumed that duplicates in `git ls-files` are contiguous.
2017-11-14 12:54:07 +09:00
Michael Kaiser 5c6cee878a [fzf#vim#colors] Pick up colorschemes from opt packages (#489) 2017-11-02 21:35:48 +09:00
Josh Pencheon f31a2925fe [BCommits] Remove --graph option (#474) 2017-10-25 18:57:27 +09:00
Jan Edmund Lazo b51382fe9e [fzf#vim#preview] Use ruby in Windows if available (#471)
Close #459
2017-10-22 22:50:12 +09:00
Junegunn Choi fbfbd04870 Clean up README 2017-10-21 09:27:18 +09:00
Junegunn Choi 852b38db2a Update installation instruction 2017-10-21 09:25:24 +09:00
Junegunn Choi 6ac8d1f742 Update vimdoc and remove duplicate tags
Close #467
2017-10-17 02:21:57 +09:00
Junegunn Choi 121bd70fcf [[B]Commits] Enable preview window by default
Close #461
2017-10-08 03:45:31 +09:00
Junegunn Choi b24038960e Fix incorrect --query option in completion
s:complete_trigger should prepend the default options instead of
appending them. The bug was introduced in 25ea637.

/tmp/foo<ctrl-x><ctrl-f> should give fzf prompt "/tmp/" and default
query "foo". But it used to give "/tmp//tmp/foo".
2017-09-26 15:20:27 +09:00
Junegunn Choi 36f6e6b5b0 Fix s:wrap for Vim 7.4
Close #446
2017-09-14 19:13:11 +09:00
Jan Edmund Lazo 2fd046fa76 [Files] Port junegunn/fzf/pull/1043 (#442) 2017-09-07 11:03:56 +09:00
Junegunn Choi e7928d154a [Files] Do not set up lengthy prompt on narrow screen 2017-09-05 18:50:18 +09:00
Jan Edmund Lazo df79877245 [fzf#vim#preview] works with Windows default command (#441) 2017-09-04 22:50:37 +09:00
Junegunn Choi 0b0d9f0912 [Ag] Print error message when ag is not found on $PATH
Close #440
2017-09-01 11:10:42 +09:00
Junegunn Choi 39f0c2d0a4 Merge pull request #436 from janlazo/Windows_complete
[fzf#vim#complete#path] works in Windows
2017-08-28 22:38:41 +09:00
Jan Edmund Lazo 34ceec14d2 [fzf#vim#complete] append --no-expect to options
Reference: https://github.com/junegunn/fzf.vim/pull/436#discussion_r135379047
2017-08-27 08:50:35 -04:00
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 e1c3bba14b Update README regarding Windows support
Related: #372
2017-06-29 12:35:10 +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 d99169da2d Use FZF_PREVIEW_HEIGHT if available. Requires fzf 0.16.7.
Close #361
2017-04-30 12:06:41 +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