Commit Graph

1066 Commits (3e888493866d42845f11c4d57fc8f093a6e28644)
 

Author SHA1 Message Date
Junegunn Choi 3e88849386
[vim] Fix "E706: Variable type mismatch for: arg" 8 years ago
Junegunn Choi 608c416207
Add missing sources 8 years ago
Junegunn Choi 62f6ff9d6c
[vim] Make arguments to fzf#wrap() optional
fzf#wrap([name string,] [opts dict,] [fullscreen boolean])
8 years ago
Junegunn Choi 37dc273148
Micro-optimizations
- Make structs smaller
- Introduce Result struct and use it to represent matched items instead of
  reusing Item struct for that purpose
- Avoid unnecessary memory allocation
- Avoid growing slice from the initial capacity
- Code cleanup
8 years ago
Junegunn Choi f7f01d109e
Set the upper limit of the number of search go routines 8 years ago
Junegunn Choi 01ee335521
Remove duplicate code 8 years ago
Junegunn Choi 0e0de29b87
Inline function calls in tight loops
By only using leaf functions
8 years ago
Junegunn Choi babf877fd6
Increase the number of go routines for search
Sort performance increases as the size of each sublist decreases (n in
nlog(n) decreases). Merger is then responsible for merging the sorted
lists in order, and since in most cases we are only interesed in the
matches in the first page on the screen so the overhead in the process
is negligible.
8 years ago
Junegunn Choi 935272824e
Setting GOMAXPROCS is no longer needed
https://golang.org/doc/go1.5
8 years ago
Junegunn Choi 3a9532c8fd
Increase read buffer size to 64KB 8 years ago
Junegunn Choi c4c92142a6
0.13.4 8 years ago
Junegunn Choi d4b6338102
Lint 8 years ago
Junegunn Choi 8df7d962e6
Improve rendering time of long lines 8 years ago
Junegunn Choi 41e916a511
[perf] evaluateBonus can start from sidx - 1 8 years ago
Junegunn Choi d9c8a9a880
[perf] Remove memory copy when using string delimiter 8 years ago
Junegunn Choi ddc7bb9064
[perf] Optimize AWK-style tokenizer for --nth
Approx. 50% less memory footprint and 40% improvement in query time
8 years ago
Junegunn Choi 1d4057c209
[perf] Avoid allocating rune array for ascii string
In the best case (all ascii), this reduces the memory footprint by 60%
and the response time by 15% to 20%. In the worst case (every line has
non-ascii characters), 3 to 4% overhead is observed.
8 years ago
Junegunn Choi 822b86942c
[test] Clear environment variables 8 years ago
Junegunn Choi 1e74dbb937
:hidden property of previous --preview-window should be cleared
Fix #636. Patch suggested by @edi9999.
8 years ago
Junegunn Choi 7cef92fffe
[vim] Delete fzf buffer even when exit status is non-zero
Fix #183
8 years ago
Junegunn Choi 42e4992f06
[vim] Make sure to delete fzf buffer
Close junegunn/fzf.vim#173 and #630
8 years ago
Junegunn Choi a6066175c6 Merge pull request #630 from kassio/master
Remove `name` option from `termopen`.
8 years ago
Kassio Borges 27444d6b1e Remove `name` option from `termopen`.
`termopen` no longer accepts a `name` option, instead we should suffix the
command with `;#NAME`.
8 years ago
Junegunn Choi d6a99c0391
[vim] v:shell_error can change around redraw!
Patch suggested by Mariusz Atamańczuk
8 years ago
Junegunn Choi f787f7e651
[vim] Add fzf#wrap helper function
Close #627
8 years ago
Junegunn Choi a7c9c08371
[vim] Make :FZF command configurable with g:fzf_layout
To make it consistent with the other commands in fzf.vim
8 years ago
Junegunn Choi fccc93176b
0.13.3 8 years ago
Junegunn Choi 6439a138fe
[install] Build fzf if prebuilt binary doesn't work
Close #617
8 years ago
Junegunn Choi a9a29dff4f
Fix duplicate rendering of the last line in preview window 8 years ago
Junegunn Choi 6a52f8b8dd
[zsh-completion] setopt localoptions noksh_arrays
Close #607
8 years ago
Junegunn Choi a1049328d6
[vim] Adjust split size when --header option is set
Close #622
8 years ago
Junegunn Choi 5c2b96bd00
[vim] Fix error with multi-line $FZF_DEFAULT_COMMAND
Close #620
8 years ago
Junegunn Choi c36413fdf6
[zsh] Suppress error message when pipefail is not supported
Close #615
8 years ago
Junegunn Choi 52cf5af91c
[test] Fix test failure on Travis CI
No guarantee in the order in which files are listed
8 years ago
Junegunn Choi 3a4e053af7
[bash] Fall back to send-keys if named paste buffer is not supported
Related: #616
8 years ago
Junegunn Choi 049bc9ec68
[fzf-tmux] Add man page 8 years ago
Junegunn Choi b461a555b8
[fzf-tmux] Add --version and --help flags 8 years ago
Junegunn Choi 0f87b2d1e1
[fzf-tmux] Use double brackets
For consistency and (negligible) performance improvement
8 years ago
Junegunn Choi 0fb5b76c0d
[fzf-tmux] Fail fast if fzf excutable is not found 8 years ago
Junegunn Choi 0c918dd87a Merge pull request #616 from seanlaguna/master
Use tmux buffers for sending output to preserve character encoding
8 years ago
Junegunn Choi 05299a0fee
[test] Use tmux buffer in unicode test cases
Related #616
8 years ago
Sean b36b0a91f5 use tmux buffers for sending output to preserve character encoding 8 years ago
Junegunn Choi 6081eac58a
[shell] Suppress alias/function expansion
Close #611
8 years ago
Junegunn Choi 942ba749c7
[vim] Restore working directory even when new window is opened
Close #612
8 years ago
Junegunn Choi f941012687 Merge pull request #610 from eigengrau/master
[zsh] Re-initialize zle when widgets finish
8 years ago
Sebastian Reuße fed5e5d5af [zsh] Re-initialize zle when widgets finish
zle automatically calls zle-line-init when it starts to read a new line. Many
Zsh setups use this hook to set the terminal into application mode, since this
will then allow defining keybinds based on the $terminfo variable (the escape
codes in said variable are only valid in application mode).

However, fzf resets the terminal into raw mode, rendering $terminfo values
invalid once the widget has finished. Accordingly, keyboard bindings defined
via $terminfo won’t work anymore.

This fixes the issue by calling zle-line-init when widgets finish. Care is taken
to not call this widget when it is undefined.

Fixes #279
8 years ago
Junegunn Choi b864885753
[install] Make sure to unset pipefail 8 years ago
Junegunn Choi 64747c2324
[install] Fix error in install script
Close #608
8 years ago
Junegunn Choi 34965edcda
[install] Fall back to wget if curl failed
Close #605
8 years ago
Junegunn Choi bd4377084d Merge pull request #601 from blueyed/zsh-ret-for-fzf-file-widget
zsh: pass through exit code from fzf with fzf-file-widget
8 years ago