Commit Graph

117 Commits

Author SHA1 Message Date
Junegunn Choi db71151970 Add g:fzf_grep_preview_window for enabling Ag/grep preview
Close #225
2016-11-14 02:44:14 +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
Junegunn Choi 4d911563cd [GitFiles] Take ls-files options as the arguments
Close #146
2016-05-25 00:24:53 +09:00
Junegunn Choi ecb3131d3f Add fzf#vim#ag_raw function
Close #144
Close #27
2016-05-18 00:39:51 +09:00
Junegunn Choi a3c6a3629f Use default layout when no optional dictionary argument is given 2016-05-17 22:38:06 +09:00
Junegunn Choi 78c3d254ae [[B]Lines] Default query as the optional argument
Close #143
2016-05-17 00:47:28 +09:00
Junegunn Choi 47806da408 [Tags] Add g:fzf_tags_command
Close #138
2016-05-12 01:43:07 +09:00
Junegunn Choi 94bdefe123 Merge pull request #140 from blueyed/vim-tags-handle-nowrapscan
[vim] handle 'nowrapscan' option in s:tags_sink
2016-04-29 10:45:45 +09:00
Junegunn Choi fcc798e99e Addendum fix for #136
- Apply --tabstop=1 to line completion
- Fix incorrect --nth

Related: #139, #136
2016-04-29 10:40:57 +09:00
Daniel Hahler 8fd08087cd [vim] handle 'nowrapscan' option in s:tags_sink
With 'nowrapscan' a tag might not be found, depending of the position in
the file.
2016-04-28 23:43:32 +02:00
Daniel Hahler 2af89da3d5 Fix fzf#vim#complete#line with new bufname display
This has been broken in 397a2e6.
2016-04-28 21:35:28 +02:00
Daniel Hahler 397a2e6c7d lines: display buffer names if there are more than 100 columns
This also uses --tabstop=1 explicitly, where the default of 8 would add
too much whitespace - especially with another tabstop being used to
split the line number from the buffer name.
2016-04-26 23:09:40 +02:00
Junegunn Choi 2eebbf6540 Fix #134 - ":e CURRENT_FILE" can cause error when modified 2016-04-25 23:54:04 +09:00
Junegunn Choi c183c9daa9 [[B]Lines] Remove unnecessary slicing 2016-04-22 10:06:50 +09:00
Andrew Rodionoff 2345892c1f removed unneeded slice 2016-04-21 21:20:55 +03:00
Junegunn Choi 9e2aa1a710 GitFiles? 2016-04-21 01:01:59 +09:00
Junegunn Choi 90169196e1 [Tags] Ask before generating tags file
Close #127
2016-04-19 01:11:16 +09:00
Junegunn Choi a148f78863 [History[:/]] Redraw screen 2016-04-15 22:42:17 +09:00