Commit Graph

1250 Commits (712b7b218815fe2368884515852327401311a215)
 

Author SHA1 Message Date
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
Daniel Hahler 38a2076b89 zsh: pass through exit code from widgets
This allows to have a custom widget like the following, which would
additionally accept the line, but only in case of entries being
selected:

    fzf-file-widget-with-accept() {
      zle fzf-file-widget
      if [[ "$?" == 0 ]] && (( $#BUFFER )); then
        zle accept-line
      fi
    }
    zle     -N   fzf-file-widget-with-accept
    bindkey '\e^T' fzf-file-widget-with-accept

With this `<C-a>t` will launch fzf, and simulate the pressing of "Enter"
afterwards.
8 years ago
Junegunn Choi 5759d50d4a
0.13.2 8 years ago
Junegunn Choi e455836cc9
Fix race condition where preview window is not properly cleared 8 years ago
Junegunn Choi 8a90f26c8a
0.13.1 8 years ago
Junegunn Choi 24e1fabf2e
Do not process ANSI codes in --preview output at once
Close #598
8 years ago
Junegunn Choi c39c039e15
[shell] Add $FZF_CTRL_T_OPTS and $FZF_ALT_C_OPTS
Close #596
8 years ago
Junegunn Choi 07f176f426 Merge pull request #595 from aykamko/speed-up-fzf-completion
Optimize fzf_default_completion binding
8 years ago
Aleks Kamko 19339e3a6d optimize fzf_default_completion binding 8 years ago
Junegunn Choi 3e1d6a7bcf
0.13.0 8 years ago
Junegunn Choi 2bbc12063c
Add --preview and --preview-window
Close #587
8 years ago
Junegunn Choi b8737b724b
Ignore controls chars for bracketed paste mode
Close #594
8 years ago
Junegunn Choi d91c3a2f5e Merge pull request #593 from edi9999/master
Add fzf_prefer_tmux option
8 years ago
Edgar Hipp fe5db5aadc Add fzf_prefer_tmux option 8 years ago
Junegunn Choi cf9c957c66
Update test_execute_shell (#590) 8 years ago
Junegunn Choi 68b60c6d19
Update test_execute_multi (#590) 8 years ago
Junegunn Choi 3a644b16a4
Update test_execute (#590) 8 years ago