Junegunn Choi
e0b29e437b
[bash] Use backticks to avoid delay with blink-matching-paren
...
Close #580
2016-05-29 02:11:50 +09:00
Junegunn Choi
bdb94fba7d
[zsh] Fix #579 - Locally unset globsubst
2016-05-26 00:52:06 +09:00
Junegunn Choi
2f364c62f4
0.12.2
2016-05-19 01:55:54 +09:00
Junegunn Choi
7ed9f83662
Validate jump label characters
...
Also extend default jump labels
2016-05-19 01:46:22 +09:00
Junegunn Choi
f498a9b3fb
Revert version number
2016-05-18 22:47:57 +09:00
Junegunn Choi
13330738b8
Do not match jump labels beyond the screen limit
2016-05-18 22:45:34 +09:00
Junegunn Choi
e53535cc61
Update default jump labels
2016-05-18 22:44:31 +09:00
Junegunn Choi
c62fc5e75c
More named keys: F5 ~ F10, ALT-/
2016-05-18 22:25:09 +09:00
Junegunn Choi
70245ad98c
[make] Reduce the size of the binaries with -ldflags -w
...
Related: #555
2016-05-18 13:29:27 +09:00
Junegunn Choi
6d235bceee
Add jump and jump-accept actions for --bind
...
jump and jump-accept implement EasyMotion-like movement in fzf.
Suggested by @mhrebenyuk. Close #569 .
2016-05-18 02:10:03 +09:00
Junegunn Choi
4adebfc856
[install] go get -u github.com/junegunn/fzf/src/fzf
2016-05-17 01:41:59 +09:00
Junegunn Choi
faccc0a410
[fzf-tmux] Escape backslash in command-line arguments
2016-05-15 17:07:34 +09:00
Junegunn Choi
9078688baf
Add print-query action for --bind
...
Close #571
2016-05-13 00:51:15 +09:00
Junegunn Choi
9bd8b1d25f
Fix typo
2016-05-13 00:44:33 +09:00
Junegunn Choi
dd4be1da38
Allow alt-enter and alt-space for --bind ( #571 )
2016-05-13 00:43:50 +09:00
Junegunn Choi
66f86e1870
[fzf-tmux] Fix #562 - Check $TMUX instead of $TMUX_PANE
2016-05-11 22:08:14 +09:00
Junegunn Choi
4ab75b68dc
Fix flaky test case: test_execute
...
Should wait until execute action completes
2016-05-11 01:40:49 +09:00
Junegunn Choi
73cb70dbb3
Fix flaky test case: test_file_completion_unicode
2016-05-11 01:25:17 +09:00
Junegunn Choi
d082cccb6d
Fix flaky test case: test_ctrl_t_unicode
...
The width of the pseudo-terminal on Travis CI environment can be small
and cause the line to be wrapped.
2016-05-11 01:18:26 +09:00
Junegunn Choi
88a80e3c2c
Determine 256-color capability using tigetnum("colors")
...
Close #570
2016-05-11 01:07:06 +09:00
Junegunn Choi
24516bcf4d
[install] Set a temporary GOPATH
2016-05-09 02:03:08 +09:00
Junegunn Choi
b4c4a642ed
Update README
...
Close #560 , #561
2016-05-03 00:07:53 +09:00
Junegunn Choi
0231617857
[neovim] Fix issues with enew and tabnew layouts
...
Related: #559
2016-04-28 01:25:24 +09:00
Junegunn Choi
7f64fba80f
Update Makefile to allow build on i686 ( #555 )
2016-04-26 01:49:02 +09:00
Junegunn Choi
633aec38f5
Merge pull request #554 from gene-pavlovsky/patch-1
...
Fix missing reference to UNAME_M
2016-04-25 23:04:29 +09:00
Junegunn Choi
35a9aff8e1
0.12.1
2016-04-25 01:23:52 +09:00
Junegunn Choi
988c9bd9be
[zsh] Fix issues with unicode characters
2016-04-25 01:04:35 +09:00
Junegunn Choi
095f31b316
[vim] Explicitly set source to FZF_DEFAULT_COMMAND
...
Helps when your `$SHELL` is slow.
Close #552 .
2016-04-24 18:02:01 +09:00
Junegunn Choi
d86cee2a69
[bash] Export fzf-file-widget function for bash 4+ ( #546 )
...
e.g. Remapping fzf-file-widget to CTRL-X CTRL-T intead of CTRL-T
bind -x '"\C-x\C-t": fzf-file-widget'
bind '"\C-t": transpose-chars'
2016-04-24 14:04:15 +09:00
Junegunn Choi
e986f20a85
[fish] Use consistent function names for key bindings ( #546 )
...
- fzf-file-widget
- fzf-history-widget
- fzf-cd-widget
2016-04-24 13:56:50 +09:00
Junegunn Choi
c727ba1d99
[fzf-tmux] Do not split pane if the height is too small
2016-04-24 13:32:33 +09:00
Junegunn Choi
bb70923cd8
Fix flaky test cases
2016-04-24 04:52:01 +09:00
Junegunn Choi
772fa42dcb
[fish] Fix intermittent errors on CTRL-T
...
Related: 23244bb
2016-04-24 04:51:35 +09:00
Junegunn Choi
85ef3263fc
Fix incorrect cache reference in --exact mode ( #547 )
...
When we prepend a single quote to our query in --exact mode, we are not
supposed to limit the scope of the new search to the previous
exact-match result.
2016-04-24 03:43:24 +09:00
Junegunn Choi
4bde8de63f
Apply new ranking algorithm to exact match as well
2016-04-23 19:48:06 +09:00
Junegunn Choi
654a7df9b0
[neovim] Set bufhidden and nobuflisted after opening terminal
2016-04-23 17:53:54 +09:00
Junegunn Choi
c3aa836ec0
[bash] Update completion.bash
...
[bash] Update completion.bash
2016-04-23 11:36:50 +09:00
Junegunn Choi
95764bef6f
Merge pull request #550 from gene-pavlovsky/gene-pavlovsky-patch-2
...
[bash] Update key-bindings.bash
2016-04-23 11:35:27 +09:00
Junegunn Choi
e867355b2a
[neovim] Restore winfixwidth and winfixheight
...
Fix https://github.com/junegunn/fzf.vim/issues/128
2016-04-21 00:33:30 +09:00
Junegunn Choi
b28c14b93a
0.12.0
2016-04-16 14:45:16 +09:00
Junegunn Choi
879ead210f
0.11.2
2016-04-16 14:37:16 +09:00
Junegunn Choi
2f6d23b91e
Enhanced ranking algorithm
...
Based on the patch by Matt Westcott (@mjwestcott).
But with a more conservative approach:
- Does not use linearly increasing penalties; It is agreed upon that we
should prefer matching characters at the beginnings of the words, but
it's not always clear that the relevance is inversely proportional to
the distance from the beginning.
- The approach here is more conservative in that the bonus is never
large enough to override the matchlen, so it can be thought of as the
first implicit tiebreak criterion.
- One may argue the change breaks the contract of --tiebreak, but the
judgement depends on the definition of "tie".
2016-04-16 14:33:38 +09:00
Junegunn Choi
5f63a7b587
Fix flaky test case
2016-04-15 12:57:38 +09:00
Junegunn Choi
d9ce797d88
Merge pull request #540 from WChargin/bash-vimode-delay-fix
...
[bash] Fix vi mode pre-launch delay
2016-04-15 09:15:12 +09:00
Junegunn Choi
89687105f4
[install] Ask before updating shell configuration files
2016-04-14 14:51:58 +09:00
Junegunn Choi
74d1694be9
Fix #541 - Print double-click when --expect=double-click is set
2016-04-14 04:18:59 +09:00
Junegunn Choi
935e986be5
[zsh] Remove unnecessary evals
2016-04-12 21:20:03 +09:00
Junegunn Choi
e5ac2ebd7c
[vim] Escape $
...
https://github.com/junegunn/fzf.vim/issues/114
2016-04-09 21:44:07 +09:00
Junegunn Choi
8d6e13bf94
Merge pull request #535 from mjwestcott/master
...
Fix algorithm tests
2016-04-01 09:05:33 +09:00
Junegunn Choi
802c1c2937
Clean up install script
...
- Do not create zsh files if zsh is not installed (@adam8157)
- Use command -v instead of which (@netei)
- Reenable --pre option
Close #531
2016-03-29 22:30:55 +09:00
Junegunn Choi
3cb5fef6b6
Merge pull request #529 from mjwestcott/master
...
Fix typo in README.md
2016-03-28 23:21:14 +09:00
Junegunn Choi
24f3ec7f33
Fix FZF_CTRL_R_OPTS for zsh ( #526 )
2016-03-23 03:02:57 +09:00
Junegunn Choi
a57b375b41
Add $FZF_CTRL_R_OPTS for overriding the default options for CTRL-R
...
Close #526
2016-03-23 03:00:20 +09:00
Junegunn Choi
6cc9d53978
[fzf-tmux] Fix invalid redirection
2016-03-15 21:21:21 +09:00
Junegunn Choi
df32c05833
[fzf-tmux] Fix issues on tmux 1.8
2016-03-15 21:18:15 +09:00
Junegunn Choi
c0652adf4c
[fzf-tmux] tmux 1.6 compatibility
...
Patch submitted by @netei. Close #524 .
2016-03-15 20:35:25 +09:00
Junegunn Choi
6ea760a336
Make 32-bit linux binary (partially) static ( #523 )
2016-03-15 20:17:29 +09:00
Junegunn Choi
f704b94603
[neovim] Open tab before current tab
...
Related: https://github.com/junegunn/gv.vim/issues/19
2016-03-06 13:56:29 +09:00
Junegunn Choi
444a67cafa
Fix flaky test cases
2016-03-06 12:46:28 +09:00
Junegunn Choi
f91cbd5688
Add ISSUE_TEMPLATE.md
...
Close #500
2016-03-06 11:24:03 +09:00
Junegunn Choi
3073ca3e5a
[neovim] Take total number of tab pages into account ( #520 )
...
This fixes the problem where a new tab page is not closed when the
following configuration is used:
let g:fzf_layout = { 'window': 'execute (tabpagenr()-1)."tabnew"' }
2016-03-04 15:23:07 +09:00
Junegunn Choi
b47ab633e2
0.11.4
2016-03-03 01:57:28 +09:00
Junegunn Choi
09a2ab39fe
[bash] Fix shellcheck warnings
...
Close #516
2016-03-02 23:59:42 +09:00
Junegunn Choi
6cf54833f7
Fix flaky test case
2016-03-02 03:29:08 +09:00
Junegunn Choi
2ccdf21a1f
Add --hscroll-off=COL option
...
Close #513
2016-03-02 03:14:35 +09:00
Junegunn Choi
cf8afc527e
Remove .gitmodules
2016-03-02 02:04:38 +09:00
Junegunn Choi
1d6f05f974
[man] Fix invalid exit status in man page
...
Close #511
2016-02-26 23:36:07 +09:00
Junegunn Choi
85751966e9
Merge pull request #506 from justinmk/fixvarmismatch
...
[vim] s:callback: Always return list.
2016-02-23 15:39:53 +09:00
Junegunn Choi
42c006d07c
Update install script to try "go get ..."
...
Related: #470 , #497
2016-02-21 22:11:28 +09:00
Junegunn Choi
1b9ca314b8
Update build script
...
- GOPATH is no longer required
- fzf repository does not have to be in GOPATH
- Build Linux binary with Go 1.5.3
2016-02-20 21:16:24 +09:00
Junegunn Choi
e72a360337
Minor refactoring
...
- Slightly more efficient processing of Options
- Do not return reference type arguments that are mutated inside the
function
- Use util.Constrain function when appropriate
2016-02-18 01:46:18 +09:00
Junegunn Choi
45108ddd53
Merge pull request #496 from noscript/master
...
Go 1.3 compatibility
2016-02-16 18:48:39 +09:00
Junegunn Choi
26b9100709
Minor code cleanup
2016-02-16 12:35:42 +09:00
Junegunn Choi
a568120e42
Fix #494 - _fzf_complete hangs on zsh when not using tmux pane
2016-02-16 12:32:05 +09:00
Junegunn Choi
e57182c658
Merge pull request #488 from nhooyr/man-fix-redirect
...
[man] Remove useless `.R` macros
2016-02-12 13:29:39 +09:00
Junegunn Choi
2b3e740569
[neovim] Fix error in finally block when callback failed
...
e.g. Opening another buffer when `set nohidden`
https://github.com/junegunn/fzf.vim/issues/77
2016-02-12 12:33:47 +09:00
Junegunn Choi
40d934e378
0.11.3
2016-02-07 11:00:10 +09:00
Junegunn Choi
e95d82748f
Use $SHELL to start $FZF_DEFAULT_COMMAND ( #481 )
2016-02-07 01:49:29 +09:00
Junegunn Choi
30bd0b53db
Fix #481 - Use $SHELL instead of sh in execute action
...
Note that $SHELL only points to the default shell instead of the current
shell. If you're on a non-default shell, you might want to override the
value like follows.
SHELL=zsh fzf --bind 'enter:execute:echo $ZSH_VERSION; sleep 1'
2016-02-03 04:46:02 +09:00
Junegunn Choi
1893eca41a
Handle SIGTERM gracefully ( #482 )
2016-02-02 17:51:21 +09:00
Junegunn Choi
82067463b8
[completion] _fzf_complete_COMMAND_post for post processing
...
e.g.
_fzf_complete_foo() {
_fzf_complete "--multi --reverse --header-lines=3" "$@" < <(
ls -al
)
}
_fzf_complete_foo_post() {
awk '{print $NF}'
}
[ -n "$BASH" ] && complete -F _fzf_complete_foo -o default -o bashdefault foo
2016-01-29 01:31:04 +09:00
Junegunn Choi
ce9c51d399
Typo
2016-01-20 01:39:55 +09:00
Junegunn Choi
96176476f3
Make fuzzy completion customizable with _fzf_compgen_{path,dir}
...
Notes:
- You can now override _fzf_compgen_path and _fzf_compgen_dir functions
to use custom commands such as ag instead of find for listing
completion candidates.
- The first argument is the base path to start traversal
- Removed file-only completion in bash, i.e. _fzf_file_completion.
Maintaining a list of commands that only expect files, not
directories, is cumbersome (there are too many) and error-prone.
TBD:
- Added $FZF_COMPLETION_DIR_COMMANDS to customize the list of commands
which use directory-only completion. The default is "cd pushd rmdir".
Not sure if it's the best approach to address the requirement, I'll
leave it as an undocumented feature.
Related: #406 (@thomcom), #456 (@frizinak)
2016-01-20 01:38:24 +09:00
Junegunn Choi
68c84264af
Update CHANGELOG
2016-01-16 21:13:57 +09:00
Junegunn Choi
69438a55ca
Update CHANGELOG: 0.11.2
2016-01-16 21:11:40 +09:00
Junegunn Choi
8695b5e319
Reduce the initial delay when --tac is not given
...
fzf defers the initial rendering of the screen up to 100ms if the input
stream is ongoing to prevent unnecessary redraw during the initial
phase. However, 100ms delay is quite noticeable and might give the
impression that fzf is not snappy enough. This commit reduces the
maximum delay down to 20ms when --tac is not specified, in which case
the input list quickly fills the entire screen.
2016-01-16 18:07:50 +09:00
Junegunn Choi
95970164ad
0.11.2
2016-01-14 02:54:08 +09:00
Junegunn Choi
f6c6e59a50
Add toggle-in and toggle-out for --bind
...
Related: #452
When `--multi` is set, tab key will bring your cursor down, and
shift-tab up. But since fzf by default draws the screen in bottom-up
fashion, one may feel that the opposite of the behavior is more
desirable and choose to customize the key bindings as follows.
export FZF_DEFAULT_OPTS="--bind tab:toggle-up,shift-tab:toggle-down"
This configuration, however, becomes no longer straightforward when
`--reverse` is set and fzf switches to top-down layout. To address the
requirement, this commit adds `toggle-in` and `toggle-out` option which
switch direction depending on `--reverse`-ness.
export FZF_DEFAULT_OPTS="--bind tab:toggle-out,shift-tab:toggle-in"
2016-01-14 02:35:43 +09:00
Junegunn Choi
45143f9541
Ignore leading whitespaces when calculating 'begin' index
2016-01-14 01:32:03 +09:00
Junegunn Choi
23244bb410
[fish] Fix intermittent errors on CTRL-T
...
This seems like a bug of fish, but sometimes when you select an item
fish complains:
"insertion mode switches can not be used when not in insertion mode"
This only happens when using tmux pane. Injecting a dummy command
somehow fixes the issue.
2016-01-14 01:12:49 +09:00
Junegunn Choi
edb647667e
Change temporary file names to fix flaky tests
2016-01-14 01:12:49 +09:00
Junegunn Choi
8d3a302a17
Simplify Item structure
...
This commit compensates for the performance overhead from the
extended tiebreak option.
2016-01-14 01:12:49 +09:00
Junegunn Choi
1d2d32c847
Accept comma-separated list of sort criteria
2016-01-13 21:27:43 +09:00
Junegunn Choi
d635b3fd3c
Update license: 2016
2016-01-13 02:16:26 +09:00
Junegunn Choi
0f281ef894
[vim] Try to make 'dir' option compatible with &autochdir
...
When 'dir' option is passed to fzf#run(), the current working directory
is temporarily changed to the given directory, and restored at the end.
However, this behavior is not compatible with &autochdir. This commit
introduces a heuristic to determine whether or not to restore the
previous working directory.
Related: https://github.com/junegunn/fzf.vim/issues/70
2016-01-12 01:15:36 +09:00
Junegunn Choi
b18db4733c
[vim] Do not restore working directory on unexpected cwd
...
We should not restore the previous working directory if the current
directory has changed somehow. This can happen when &autochdir is set.
2016-01-11 18:17:13 +09:00
Junegunn Choi
6e08fe337c
[nvim] setlocal nospell on terminal buffer
...
Close #469 . `setlocal nospell` should appear before `setf fzf` to allow
customization of the option.
2016-01-09 12:08:25 +09:00
Junegunn Choi
2a2c0a0957
[fzf-tmux] Turn off remain-on-exit option
...
Related: https://github.com/junegunn/fzf.vim/issues/67
2016-01-07 01:42:03 +09:00
Junegunn Choi
4230b6f3c9
[fzf-tmux] Fix #466 - Make fifos writable by other users
2016-01-07 00:32:38 +09:00
Junegunn Choi
aa171b45cb
Fix ubuntu-android target of Makefile
2016-01-05 02:10:40 +09:00