Commit Graph

86 Commits

Author SHA1 Message Date
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
Junegunn Choi ef3e5e0a37 [History[:/]] Fix regression
Close #124
2016-04-15 22:41:05 +09:00
Bastian Winkler 513ed1ff50 Make sure to use the cterm color attribute
This should fix color selection with true-color enabled terminal neovim.
2016-04-12 09:46:01 +02:00
Junegunn Choi 8efc2d29ab [Windows] Fix regression
Close #116
2016-04-12 01:33:18 +09:00
Junegunn Choi 7cfff6b16f Fix #114 - Escape $ 2016-04-09 21:41:59 +09:00
Junegunn Choi e9187959ba Use colors that match the current color scheme and add g:fzf_colors
Close #59 and #112
2016-04-09 21:34:38 +09:00
Mike Bagwell 89a6d9613c add neovim terminal files to history filter 2016-04-03 14:13:53 -04:00
Mathias Jean Johansen fb358ad4e6 Add Filetypes command.
Close #109.
2016-04-03 15:24:19 +02:00
Junegunn Choi 852cfa0c11 [Buffers] Sort buffers by MRU order
Close #100
2016-03-16 00:18:23 +09:00
Junegunn Choi 29db9ea140 [Buffers] Add g:fzf_buffers_jump to jump to existing window
Close #98
2016-03-11 01:14:42 +09:00
Junegunn Choi fe7bebb62a Fix bug in #87 2016-03-06 13:23:24 +09:00
Junegunn Choi 0352153789 [History] Fix invalid regular expression for filtering .git directory
Close #91
2016-02-24 12:08:31 +09:00
Junegunn Choi b9285c87db [Tags/BTags] Take optional argument as the default query
Related #90. Function signature of s:btags_source has changed.

/cc @AdnoC
2016-02-24 00:41:05 +09:00
Junegunn Choi 345dae5a08 [Tags] Return if failed to create tags 2016-02-24 00:09:08 +09:00
AdnoC 2133f25675 fzf#vim#buffer_tags([tag commands], options)
Added ability to specify the commands used to generate tags
2016-02-18 23:58:59 -05:00
Junegunn Choi be01b64586 [Lines] Use readfile() if buffer is not yet loaded
Close #86
2016-02-19 00:29:46 +09:00
Junegunn Choi d940ab1c5a Revert "[Lines] Use readfile() if buffer is not yet loaded"
This reverts commit 16ffd82a58.
2016-02-19 00:28:35 +09:00
Junegunn Choi 16ffd82a58 [Lines] Use readfile() if buffer is not yet loaded
Close #86
2016-02-19 00:28:01 +09:00
Junegunn Choi 990dfe41ff Fix #81 - Wrong insert position of fzf#vim#complete 2016-02-07 22:45:37 +09:00
Junegunn Choi 00fdb54c9d [BTags] Add --reverse option to display tags in order
Close #72
2016-01-18 01:15:59 +09:00
Junegunn Choi 2a225396d4 Update jumplist before move
Addendum fix for #69
2016-01-09 12:31:59 +09:00
Junegunn Choi 9a5c06ad72 Update jumplist on Tags/BTags/Lines/BLines
Close #69
2016-01-09 12:22:57 +09:00
Junegunn Choi ee13be36fb Update copyright 2016-01-09 12:22:57 +09:00
Chris Pride dd97e412a5 Pull out the git log options as an option.
In my environment '--graph' is a kiss of death. It results in seeing
nothing but graph lines due to the number of branches in flight.

Secondly the colors baked into this break with my color scheme
which has a background of black rending the date unreadable.

So to solve this I need to be able to specify my own options,
so add a new options g:fzf_commits_log_options to allow this.
2016-01-07 12:24:46 -08:00
Junegunn Choi b97a6393ff [Ag] Use absolute path when 'autochdir' is set
Close #55
2015-12-18 13:07:31 +09:00
Junegunn Choi 47f2b5042f [Ag] Ignore error while opening the first file 2015-12-18 13:05:02 +09:00
Junegunn Choi e487084857 Open selected file in the current window if it's empty
https://github.com/junegunn/fzf/issues/451
2015-12-18 12:19:52 +09:00
Junegunn Choi 8ea2e872d7 Change Ag key bindings: CTRL-{A,D} -> ALT-{A,D} (#54) 2015-12-14 12:14:40 +09:00
Junegunn Choi 0ad88dd4e8 fzf#vim#ag(query, [[ag options], options])
Close #51
2015-12-08 01:30:39 +09:00
Junegunn Choi e4d6a891f1 [[B]Lines] Fix #49 - Apply the new --tabstop option
&tabstop is local to each buffer, so using the global &tabstop value can
be considered to be a best-effort approach. Also added --reverse option
as it fits better for Lines and BLines.
2015-12-01 00:55:39 +09:00
Junegunn Choi f2a97a388b Update autoload functions to return 1 or 0 2015-11-28 10:47:36 +09:00
Junegunn Choi 3db992a883 Fix #46 - Fix incorrect error message type when ctags command failed 2015-11-28 01:14:12 +09:00