Commit Graph

1288 Commits (c387689d1cd45f0d8eb122fe95ee72ccc61d3bff)
 

Author SHA1 Message Date
Junegunn Choi c387689d1c
[shell] Enable sorting by default in CTRL-R
CTRL-R binding used to start with --no-sort to list the matched commands
in chronological order. However, it has been a constant source of
confusion. Let's enable it by default from now on. The sorted result
shouldn't be too confusing as we use --tiebreak=index.
7 years ago
Junegunn Choi cb9238dc4e
Display -S if sort is disabled and toggle-sort is used
This is to address a common confusion that one does not realize that
sorting is intentionally turned off by default and can be enabled by
a bind key.
7 years ago
Junegunn Choi a484811f78
[vim] Capitalize exception messages 7 years ago
Junegunn Choi 111d1934c4
[vim] Throw error if g:fzf_layout is incorrectly used
https://github.com/junegunn/fzf.vim/issues/327
https://github.com/junegunn/fzf.vim/issues/317
7 years ago
Junegunn Choi 972fb1a29d
Suppress ANSI colors in preview window if --no-color is set 7 years ago
Junegunn Choi 3a6af27586
[zsh] emulate -L zsh to avoid issues with incompatible options
Close #858
7 years ago
Junegunn Choi c89ac341e4
Clear background even if background color is not set
This is needed when fzf is started from inside a program (e.g. Vim)
and it uses a different background color than the terminal.

- https://github.com/junegunn/fzf.vim/issues/325
- https://github.com/junegunn/fzf.vim/issues/300
7 years ago
Junegunn Choi cd59e5d07b
[neovim] Set 'dir' to the current direcotry
Close https://github.com/junegunn/fzf.vim/issues/308
7 years ago
Junegunn Choi 0b940e4b2b
Redraw item if query string has changed 7 years ago
Junegunn Choi b29375c844
[vim] Minor refactoring 7 years ago
Junegunn Choi 76d3f6d248
[vim] Escape ! when using :! to execute command
- call fzf#run({'source': "echo '!'"})
- call fzf#run({'source': "echo '!'", 'down': '40%'})

Close https://github.com/junegunn/fzf.vim/issues/315
7 years ago
Junegunn Choi e87a85a179
0.16.5 7 years ago
Junegunn Choi 11407bf656
Exclude sysfs in find commands 7 years ago
Junegunn Choi c82fb3c9b9
Add toggle-preview-wrap action 7 years ago
Junegunn Choi 309e1d8619
Properly truncate long query string 7 years ago
Junegunn Choi c2db67c1c0
[vim] Prepend @echo off to $FZF_DEFAULT_COMMAND on Windows (#847) 7 years ago
Junegunn Choi 9526594905
[vim] Fix FZF_DEFAULT_COMMAND on Windows
Close #847. Patch submitted by @wontoncc.
7 years ago
Junegunn Choi 3d74d277aa
Use cut instead of sed in the default command 7 years ago
Junegunn Choi fc274c2ba4
[vim] Do not escape % when using system() instead of !
Close https://github.com/junegunn/fzf.vim/issues/309
7 years ago
Pierre Neidhardt ce43ea9f42 [shell] Replace `sed` with `-mindepth 1` and `cut` (#844) 7 years ago
Junegunn Choi 21da02fac2
Fix indentation 7 years ago
Junegunn Choi 19569bd5c5
Move cursor to the top-left when returning to alternate screen
Fix broken preview border. Reported by Thomas Sattler.

    fzf --bind 'enter:execute(date)' --preview=date --reverse
7 years ago
Daniel Gray afa25d8c57 [zsh] Do not cd when cancelling alt+c keybind (#840) 7 years ago
Junegunn Choi 1ba7acf4bd
[fzf-tmux] Fix race condition when using -l/-u on zoomed panes
Using a dummy command that works as the barrier.
7 years ago
Prabir Shrestha a847fe8754 Use "type" instead of "cat" on windows (#836) 7 years ago
Junegunn Choi 5bb18b6441
Remove Dockerfiles and clean up Makefile
Due to the recent removal of ncurses dependency, we can cross-compile
binaries for different platforms without virtual machines.
8 years ago
Junegunn Choi 876c233a26
Remove Ruby version
Related #832
8 years ago
Junegunn Choi ee5aeb80a4
0.16.4 8 years ago
Junegunn Choi 02ceae15a2
[vim] Download instruction for Windows 8 years ago
Junegunn Choi e514739280
Fix failing test case 8 years ago
Junegunn Choi 72265298f9
[vim] Apply --no-height when running fzf in full screen mode
To override --height option in FZF_DEFAULT_OPTS
8 years ago
Junegunn Choi 4b700192c1
Add --border option to draw horizontal lines above and below the finder
Goes well with --height
8 years ago
Junegunn Choi fe83589ade
Add test case for --tiebreak=begin 8 years ago
Junegunn Choi fcf63c74f1
Fix --tiebreak=begin with algo v2
Due to performance consideration, FuzzyMatchV2 does not return the exact
positions of the matching characters by default. However, the ommission
caused `--tiebreak=begin` to produce inaccurate result in some cases.

  (echo baz foo bar; echo foo bar baz) | fzf --tiebreak=begin -fbar | head -1

  # Expected: foo bar baz
  # Actual:   baz foo bar

This commit fixes the problem by using the end offset which is
guaranteed to be correct.
8 years ago
Junegunn Choi c95bb109c8
Suppress CSI codes in the output 8 years ago
Junegunn Choi bd9c46ee34
Update ANSI processor to strip ^H along with its preceding character 8 years ago
Junegunn Choi 736aeaa1d3
Update go-runewidth
https://github.com/junegunn/go-runewidth/pull/1

/cc @joshuarubin
8 years ago
Junegunn Choi dd1f26522c
Fix caching scheme when --exact is set and '-prefix is used 8 years ago
Kassio Borges 712b7b2188 [vim] Expose buffer variable with the current fzf setup (#828)
Exposing the `b:fzf` variable will be useful to get information about
which command is being executed on the current fzf window. With that,
now, it's possible to use the current command name on the statusline:

```viml
au User FzfStatusLine call <SID>fzf_statusline()

function! s:fzf_statusline()
  let fzf_cmd_name = get(b:fzf, 'name', 'FZF')
  let &l:statusline = '> '.fzf_cmd_name
endfunction
```
8 years ago
Junegunn Choi 5b749e2d5c
Update documentation 8 years ago
Junegunn Choi d85a69a709
0.16.3 8 years ago
Junegunn Choi a425e96fb2
[vim] g:fzf_prefer_tmux for choosing fzf-tmux over --height
https://github.com/junegunn/fzf.vim/issues/296
8 years ago
Junegunn Choi 7763fdf6ba
Update man pages 8 years ago
Junegunn Choi dd156b59fc
Fix display issues with execute action
- Move cursor to the top-left corner when starting a command in
  alternate screen
- Fix cursor position when returning to alternate screen when fzf is
  running in full screen mode
8 years ago
Junegunn Choi 36dceecd58
Add support for ctrl-space key
Close #825
8 years ago
Junegunn Choi 421b9b271a
Add execute-silent action
Close #823
8 years ago
Junegunn Choi ed57dcb924
Extend placeholder expression for multiple selections
Close #788
8 years ago
Junegunn Choi 95c77bfb98
Use --bind instead of --toggle-sort
Related #822
8 years ago
Junegunn Choi 2e3e721344
Merge branch 'devel' 8 years ago
Junegunn Choi da2c28d5c2
Add --read0 and --print0 to --help output
Close #822
8 years ago