Commit graph

131 commits

Author SHA1 Message Date
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
Junegunn Choi
3fbcfdb9ea
[Buffers] Ignore quickfix Windows (#249) 2016-11-26 13:00:57 +09:00
Junegunn Choi
dc9364c137
[Tags] Case-insensitive Y/N prompt
Close #247
2016-11-22 12:36:18 +09:00
Junegunn Choi
30b93d5a82
Fix fzf#vim#ag to allow optional fullscreen argument 2016-11-13 19:49:21 +09:00
Junegunn Choi
7721fb2677
Check if fugitive#repo() exists
Caused by #239. Close #241.
2016-11-09 18:51:55 +09:00
Junegunn Choi
1a2f6c4df4
Fix git root detection (#239) 2016-11-09 13:07:51 +09:00
Quinn Strahl
6a4760b87e Use fugitive (if available) to get the git root (#239) 2016-11-09 13:03:16 +09:00
Andrey Popp
0bc9b231fb [Buffers] Formatting buffers relatively to the cwd (#230) 2016-10-29 18:25:38 +09:00
Junegunn Choi
ad4e1e5691
[GFiles?] Wrap preview command in sh -c
To avoid errors when $SHELL is not posix-compliant.
Close #224.
2016-10-22 12:58:24 +09:00
Odin Dutton
47d4655bd8 [GFiles?] include all untracked files (#222)
By default git-status won't include new files in new directories.

E.g.

    foo/bar/baz.txt # "baz.txt" is a new file in a new directory "bar".

    $ git status --short
    ?? foo/bar/
2016-10-16 22:24:38 +09:00
Daniel Hahler
901c32c045 Fix GitFiles? for deleted files (#218)
This uses `--` to separate the file name.
2016-10-12 10:00:16 +09:00
Junegunn Choi
61eb53199c
[GFiles?] Show diff in preview window 2016-10-11 15:45:20 +09:00
Junegunn Choi
5e3a3375c3
[GFiles?] Strip out [OLD -> ] prefix of renamed files
Close #215
2016-10-11 15:44:09 +09:00
Junegunn Choi
7d1b007cb2
[fzf#vim#grep] Ignore empty lines
Close #209
2016-09-30 13:34:17 +09:00
Junegunn Choi
3271f6c160
[[B]Commits] Fix #208
Also fix commands using --expect
2016-09-28 19:07:09 +09:00
Junegunn Choi
b0a82c4d3f
Fix #206 2016-09-27 01:54:20 +09:00
Junegunn Choi
7707746311
Add fzf#vim#grep() function
Close #36

e.g.

  " Using git grep
  command! -bang -nargs=* GGrep call fzf#vim#grep('git grep --line-number '.shellescape(<q-args>), 0, <bang>0)

  " Using GNU grep
  command! -bang -nargs=* Grep call fzf#vim#grep('grep -r --line-number '.shellescape(<q-args>).' *', 0, <bang>0)
2016-09-25 16:48:47 +09:00
Junegunn Choi
6d1916197c
Refactor code with fzf#wrap
Close #177
2016-09-25 15:29:10 +09:00
Junegunn Choi
726d37a686
[Tags] Interrupt handling 2016-09-24 22:41:44 +09:00
Junegunn Choi
93dbf1711e
[Tags] Handle errors so that &magic and &wrapscan are properly restored
Close #202
2016-09-24 22:35:06 +09:00
Junegunn Choi
687f5e298f
[Helptags] Fall back to s:uniq if uniq does not exist
Close #201
2016-09-22 11:01:42 +09:00
Junegunn Choi
29c3d0769f
[Buffers] Make the current buffer unselectable
Close #193
2016-09-21 13:13:03 +09:00
Junegunn Choi
d36b6cb12c
Simplify v:oldfiles filter 2016-09-19 02:16:28 +09:00
Junegunn Choi
5e20614c0f
Do not use black foreground color as it can be unreadable
Close #189
2016-08-28 22:15:54 +09:00
Junegunn Choi
491ff9942f
Add g:fzf_history_dir option
Close #176
2016-07-21 22:14:18 +09:00
Junegunn Choi
a24a1bdaa2
[Files] Add g:fzf_files_options 2016-06-24 00:45:54 +09:00
Junegunn Choi
c65e2ead63
[completion] Fix completion anomaly with virtualedit
Close #157
2016-06-21 01:20:13 +09:00
Junegunn Choi
6b62cb418a
[Commands] CTRL-X to directly execute the command
Close #162
2016-06-21 01:07:17 +09:00
Junegunn Choi
94e499b131
Feed 'a' only when Neovim terminal is used
Close #165 and #166
2016-06-20 22:41:10 +09:00
Junegunn Choi
4d252902c9
Revert "Feed 'a' only when Neovim terminal is used"
This reverts commit a48a9e8064.
2016-06-20 22:39:44 +09:00
Junegunn Choi
a48a9e8064
Feed 'a' only when Neovim terminal is used
Close #165 and #166
2016-06-20 22:38:01 +09:00
Junegunn Choi
0867178d99
Make s:fzf return the result from fzf#run function
Related: #156
2016-06-14 13:14:50 +09:00
Junegunn Choi
9579b45450
Fix escaping of query arguments 2016-06-13 14:24:21 +09:00
Dani Hodovic
60aaf2624c [Buffers] Use reltimefloat(reltime()) instead of localtime() (#152)
* Nanoseconds instead of seconds for buffer timestmaps

Fzf :Buffers uses a dictionary where it stores the last time accessed of
the current buffers. This is used to sort the buffers.
The timestamp is retrieved from a call to localtime() which returns the
current second the buffer is accessed. However, fzf functions in such a
way that before it enters the newly selected buffer, it enters the
current buffer. Sometimes this causes the last two buffers to have the
same timestamp. Repeatedly switching between two buffers yields
inconsistent results.
This commit fixes the issue by using seconds and microseconds from the
bash call `date`. The buffers are now guaranteed to be sorted by last
accessed.

* Use reltime() instead of linux date

This solution is better for compatability reasons.

* Remove trailing whitespace
2016-06-07 21:58:52 +09:00
Danny Guo
74dc8d261d [GitFiles] Use system instead of systemlist
systemlist doesn't exist before Vim 7.4:248. See jebaum/vim-tmuxify#18
2016-06-05 00:46:16 -04:00
Junegunn Choi
dffac8c3b4
Use feedkeys with noremap option 2016-06-05 00:09:25 +09:00