Junegunn Choi
540bfd7a72
[fzf-tmux] Fall back to plain fzf when split failed
2020-04-03 13:23:15 +09:00
Junegunn Choi
8fbed2b13a
[fzf-tmux] Use $PWD instead of #{pane_current_path}
...
Related: https://github.com/tmux/tmux/issues/1282
2020-04-03 13:23:15 +09:00
Junegunn Choi
aa17510e0a
[fzf-tmux] Set default horizontal margin
2020-04-03 13:23:15 +09:00
Junegunn Choi
bf65e8cd12
[fzf-tmux] Add option to start fzf in tmux popup window
...
Requires latest tmux built from source (e.g. brew install tmux --HEAD)
Examples:
# 50%/50% width and height on the center of the screen
fzf-tmux -p
# 80%/80%
fzf-tmux -p80%
# 80%/40%
fzf-tmux -p80%,40%
# Separate -w and -h
fzf-tmux -w80% -h40%
# 80%/40% at position (0, 0)
fzf-tmux -w80% -h40% -x0 -y0
You can configure key bindings and fuzzy completion to open in tmux
popup window like so:
FZF_TMUX_OPTS='-p 80%'
2020-04-03 13:23:15 +09:00
Junegunn Choi
a5c2f28539
Fix failing test case
2020-03-29 22:06:06 +09:00
Junegunn Choi
18261fe31c
[shell] Update CTRL-R to remove duplicate commands
...
Close #1940
Related: #1363 #749 #270 #49 #88 #492 #600
2020-03-29 21:30:37 +09:00
Junegunn Choi
07b965bba1
Fix ANSI color offsets when --keep-right is used
2020-03-23 19:05:06 +09:00
Junegunn Choi
c39113ee41
[windows] Do not include directories in the list
...
Fix #1926
2020-03-14 21:43:35 +09:00
Junegunn Choi
14f90502a4
[bash] Restore --nth option in CTRL-R
2020-03-13 09:13:38 +09:00
Junegunn Choi
b0673c3563
0.21.0
2020-03-12 13:15:45 +09:00
Junegunn Choi
373c6d8d55
Add --keep-right option to keep the right end of the line visible
...
Close #1652
2020-03-11 22:35:24 +09:00
Junegunn Choi
b8fc828955
Fix completion test
2020-03-11 19:50:04 +09:00
Junegunn Choi
50b7608f9d
Change custom fuzzy completion API
...
To make it easier to write more complex fzf options. Although this
does not break backward compatibility, users are encouraged to update
their code accordingly.
# Before
_fzf_complete "FZF_ARG1 FZF_ARG2..." "$@" < <(
# Print candidates
)
# After
_fzf_complete FZF_ARG1 FZF_ARG2... -- "$@" < <(
# Print candidates
)
2020-03-11 18:32:35 +09:00
Junegunn Choi
7c40a424c0
Add retries to CTRL-R tests to avoid intermittent errors on Travis CI
...
- https://travis-ci.org/junegunn/fzf/jobs/659496745#L676
Related #1900
2020-03-07 19:56:06 +09:00
Junegunn Choi
baf882ace7
[completion] Use file redirection instead of pipe
...
This change allows the completion system of bash and zsh to return
before the input process completes.
Related #1887
2020-03-07 16:26:53 +09:00
Junegunn Choi
ba82f0bef9
Do not read more than 10K characters from /dev/tty
...
This might help with #1456 where fzf hangs consuming CPU resources.
2020-03-07 11:20:44 +09:00
Junegunn Choi
d9c6a0305b
Draft CHANGELOG for the upcoming release
2020-03-05 23:12:27 +09:00
Junegunn Choi
d9b1211191
Add more --border options; default changed to "rounded"
...
--border option now takes an optional argument that defines the style
- rounded (new default)
- sharp
- horizontal (previous default)
2020-03-05 20:56:15 +09:00
Junegunn Choi
99f1e02766
Fix flaky test case
...
Make sure that the shell is ready before hitting CTRL-R
1) Error:
TestFish#test_ctrl_r_multiline:
RuntimeError: timeout
test/test_go.rb:50:in `wait'
test/test_go.rb:125:in `until'
test/test_go.rb:1857:in `test_ctrl_r_multiline'
2020-03-04 08:37:45 +09:00
Junegunn Choi
242c0db26b
[vim] Fix height calculation
...
Fix #1418
e.g.
call fzf#run({'source': [1, 2, 3], 'down': '~50%', 'options': "--border --header $'1\n2'"})
2020-03-03 23:50:45 +09:00
Junegunn Choi
dd49e41c42
Ignore xterm OSC control sequences
...
- OSC Ps ; Pt BEL
- OSC Ps ; Pt ST
Fix #1415
2020-03-03 21:19:23 +09:00
Junegunn Choi
6db15e8693
[vim] Throw error when popup support is unavailable
...
https://github.com/junegunn/fzf.vim/issues/943
https://github.com/junegunn/fzf.vim/issues/959
2020-03-01 20:57:35 +09:00
Junegunn Choi
4c9cab3f8a
Fix prefix/suffix/equal matcher to trim whitespaces
...
- Prefix matcher will trim leading whitespaces only when the pattern
doesn't start with a whitespace
- Suffix matcher will trim trailing whitespaces only when the pattern
doesn't end with a whitespace
- Equal matcher will trim leading whitespaces only when the pattern
doesn't start with a whitespace, and trim trailing whitespaces only
when the pattern doesn't end with a whitespace
Previously, only suffix matcher would trim whitespaces unconditionally.
Fix #1894
2020-03-01 12:36:02 +09:00
Junegunn Choi
b2c0413a98
[bash] Fix --query argument of CTRL-R
...
Fix #1898
2020-02-29 12:01:55 +09:00
Junegunn Choi
7bf1f2cc84
Clean up test shell initialization
...
- Fix 'make docker-test'
- Set fish_history to an empty string since 'fish --private' is not
available prior to fish 3.0
2020-02-28 18:21:37 +09:00
Junegunn Choi
afa2c4e0af
[fish] Ignore empty environment variables
2020-02-28 17:51:07 +09:00
Junegunn Choi
2ff7db1b36
Use a more robust way to check if the shell is ready
2020-02-28 14:46:08 +09:00
Junegunn Choi
dca56da0ef
Add 'insert' key for --bind
...
Close #1744
2020-02-24 01:43:19 +09:00
Junegunn Choi
ec75d16ea8
Fix panic on unexpected escape sequences
2020-02-24 01:37:08 +09:00
Junegunn Choi
9897ee9591
[bash] Strip trailing whitespace on kill completion
2020-02-20 16:36:59 +09:00
Junegunn Choi
5215415315
[completion] Allow users to customize fzf options via _fzf_comprun
...
Related #1809 #1850
2020-02-20 00:28:16 +09:00
Junegunn Choi
54891d11e0
[bash-completion] Minor optimization
2020-02-19 11:59:18 +09:00
Junegunn Choi
567c8303bf
Update ANSI processor to handle "rmso" and "rmul"
...
Fix #1877
2020-02-18 00:45:24 +09:00
Junegunn Choi
b57e6cff7e
[vim] Pick up fzf-tmux on $PATH when bin/fzf-tmux is not found
...
Close #1874
2020-02-16 12:32:20 +09:00
Junegunn Choi
5b99f19dac
[vim] Remove unnecessary statement
2020-02-14 15:51:22 +09:00
Junegunn Choi
6c03571887
[vim] Add fzf#install() for downloading fzf binary
2020-02-14 14:04:23 +09:00
Junegunn Choi
4fb410a93c
[vim] More border styles
...
e.g.
let g:fzf_layout = { 'window': { 'width': 0.4, 'height': 1, 'xoffset': 0, 'border': 'right' } }
let g:fzf_layout = { 'window': { 'width': 0.4, 'height': 1, 'xoffset': 1, 'border': 'left' } }
let g:fzf_layout = { 'window': { 'width': 1, 'height': 0.5, 'yoffset': 1, 'border': 'top' } }
let g:fzf_layout = { 'window': { 'width': 1, 'height': 0.5, 'yoffset': 0, 'border': 'bottom' } }
2020-02-14 00:36:20 +09:00
Junegunn Choi
5e1db9fdd3
[vim] Do not pipe FZF_DEFAULT_COMMAND
...
Revert the change introduced in #552 . It seems that the startup time
difference between bash and fish is not much of an issue now.
> time bash -c 'date'
Thu Feb 13 21:15:03 KST 2020
real 0m0.008s
user 0m0.003s
sys 0m0.003s
> time fish -c 'date'
Thu Feb 13 21:15:05 KST 2020
real 0m0.014s
user 0m0.007s
sys 0m0.006s
When we explicitly *pipe* $FZF_DEFAULT_COMMAND instead of making fzf
internally start the process ($FZF_DEFAULT_COMMAND | fzf), fzf may hang
if the input process doesn't quickly process SIGPIPE and abort.
Also, fzf#vim#grep temporarily swaps $FZF_DEFAULT_COMMAND instead of
setting 'sink' so fzf can kill the default command on 'reload'.
https://github.com/junegunn/fzf.vim/issues/927
However, because of the "pipe conversion", the trick wasn't working as
expected.
https://github.com/junegunn/fzf.vim/blob/467c3277884240f7b5430f8f4d600e3415c38f3b/autoload/fzf/vim.vim#L720-L726
We can go even further and always set $FZF_DEFAULT_COMMAND instead of
piping source command.
2020-02-13 21:13:30 +09:00
Junegunn Choi
9d7480ae3c
[vim] Use install.ps1 to download binary on Windows
...
Credits to @jiangjianshan
2020-02-12 18:01:41 +09:00
Junegunn Choi
02c5e62efe
Fix documentation
2020-02-10 01:24:00 +09:00
Junegunn Choi
446df07b62
[vim] Border style for popup window (rounded | sharp | horizontal)
2020-02-06 12:27:48 +09:00
Junegunn Choi
8583b150c9
Fix inline info truncation
2020-02-06 12:01:51 +09:00
Junegunn Choi
a859aa72ee
[vim] Add support for xoffset and yoffset options for popup
...
Close https://github.com/junegunn/fzf.vim/issues/942
2020-02-06 10:40:57 +09:00
Junegunn Choi
0896036266
[vim] Set &bufhidden=hide before starting terminal buffer
2020-02-05 10:09:15 +09:00
Junegunn Choi
7ceb58b2aa
[vim] Popup window support for both Vim and Neovim
...
e.g.
let g:fzf_layout = { 'window': { 'width': 0.9, 'height': 0.6 } }
Based on the code from https://github.com/junegunn/fzf.vim/issues/821#issuecomment-581273191
by @lacygoill.
2020-02-04 00:35:57 +09:00
Junegunn Choi
293dd76af1
Update Dockerfile
2020-02-03 15:00:21 +09:00
Junegunn Choi
4ec403347c
Update Neovim floating window example to have border
2020-01-22 17:34:38 +09:00
Junegunn Choi
e01266ffcb
Period.
2020-01-19 19:46:17 +09:00
Junegunn Choi
7771241cc0
Fix F1, F2, F3, F4 on rxvt-unicode
...
Tested on urxvt.
Fix #1799 .
2020-01-18 12:30:38 +09:00
Junegunn Choi
6e3af646b2
Draw spinner with Unicode characters
2020-01-15 10:43:09 +09:00
Junegunn Choi
577024f1e9
Use rounded corners
2019-12-31 19:27:32 +09:00
Junegunn Choi
d4ad4a25db
[bash-completion] Fix default alias/variable completion
...
Fix #1795
2019-12-20 18:39:22 +09:00
Junegunn Choi
30577b0c17
0.20.0
2019-12-18 01:07:25 +09:00
Junegunn Choi
212de25409
Fix incorrect header array mutation
2019-12-16 18:47:05 +09:00
Junegunn Choi
9fefe08b3f
Revert README as preview-{fg,bg} are only available on master
2019-12-13 12:46:27 +09:00
Junegunn Choi
684bfff713
Update README/CHANGELOG
2019-12-13 12:43:34 +09:00
Junegunn Choi
3db6b88d82
Add preview-fg and preview-bg for --color
...
Close #1776
2019-12-12 23:03:17 +09:00
Junegunn Choi
8ae96774df
Gutter color of 16-color theme should be undefined by default
2019-12-12 22:53:28 +09:00
Junegunn Choi
f68017d21e
[windows/vim] Encode batchfile in current codepage
...
Backport https://github.com/junegunn/vim-plug/pull/913
2019-12-12 12:29:14 +09:00
Junegunn Choi
2b725a4db5
Defer resetting multi-selection on reload
2019-12-09 21:32:58 +09:00
Junegunn Choi
af1a5f130b
Add clear-query and clear-selection
...
Close #1787
Related #1364
2019-12-07 14:44:24 +09:00
Junegunn Choi
86e3994e87
Properly clear list when --header-lines not filled on reload
2019-12-06 22:34:45 +09:00
Junegunn Choi
1e6ac5590e
'reload' action should be allowed even where there's no match
...
If the command template doesn't have any placeholder expressions.
: | fzf --bind 'space:reload:seq 10'
2019-12-06 22:34:30 +09:00
Junegunn Choi
9d842630c9
Mention _fzf_setup_completion helper function for bash
2019-12-06 12:03:34 +09:00
Junegunn Choi
a59e846f74
Update installation instruction
...
Close #1707
Close #1779
2019-12-05 23:10:41 +09:00
Junegunn Choi
394d8cfd18
Remove immediate flickering on reload action
2019-12-05 22:27:18 +09:00
Junegunn Choi
ef80bd401f
Update installation instruction using Linux package managers
...
Added NixOS instruction. Close #1731
2019-12-01 23:48:48 +09:00
Junegunn Choi
1dd256a68a
Update README-VIM
2019-11-29 18:32:49 +09:00
Junegunn Choi
85644aa3fb
Revamp README-VIM.md
2019-11-23 01:54:52 +09:00
Junegunn Choi
effbc258bb
Update CHANGELOG
2019-11-21 23:06:14 +09:00
Junegunn Choi
e615600ff1
Allow action composition over multiple --bind
...
# Note + prefix in the second bind expression
fzf --bind u:up --bind u:+up
fzf --bind u:up+up
2019-11-21 23:06:14 +09:00
Junegunn Choi
60465c4664
Fix parse error of --bind expression
2019-11-21 23:06:13 +09:00
Junegunn Choi
7238c8944d
Update CHANGELOG
2019-11-16 01:23:01 +09:00
Junegunn Choi
9a41fd5327
0.19.0
2019-11-15 22:54:55 +09:00
Junegunn Choi
b471042037
Merge branch 'devel'
2019-11-15 22:53:08 +09:00
Junegunn Choi
2886f06977
Fix --preview-window noborder with non-default background color
2019-11-15 18:27:08 +09:00
Junegunn Choi
d630484eeb
Update error message for --preview-window
2019-11-15 17:20:47 +09:00
Junegunn Choi
e24299239e
Add --preview-window noborder option to disable preview border
...
Close #1699
2019-11-15 11:39:51 +09:00
Junegunn Choi
d2fa470165
Add --info=STYLE [default|inline|hidden]
...
Close #1738
2019-11-15 00:39:29 +09:00
Junegunn Choi
168453da71
More key chords for --bind
...
Close #1752
2019-11-14 22:39:35 +09:00
Junegunn Choi
23a06d63ac
Update CHANGELOG and man pages
2019-11-13 01:27:39 +09:00
Junegunn Choi
751aa1944a
Remove trailing whitespaces when using --with-nth
2019-11-12 23:20:09 +09:00
Junegunn Choi
05b5f3f845
'reload' action should reset multi-selection
2019-11-12 00:57:19 +09:00
Junegunn Choi
7e1c0f39e7
'reload' action should reset --header-lines
2019-11-12 00:10:24 +09:00
Junegunn Choi
deccf20a35
Fix regression of select-all
2019-11-11 23:31:31 +09:00
Junegunn Choi
73c0a645e0
Remove unnecessary reader barrier on --filter mode
2019-11-11 12:53:03 +09:00
Junegunn Choi
e975bd0c8d
Add test cases for --phony and reload action
2019-11-10 13:13:45 +09:00
Junegunn Choi
78da928727
Experimental implementation of "reload" action
...
# Reload input list with different sources
seq 10 | fzf --bind 'ctrl-a:reload(seq 100),ctrl-b:reload(seq 1000)'
# Reload as you type
seq 10 | fzf --bind 'change:reload:seq {q}' --phony
# Integration with ripgrep
RG_PREFIX="rg --column --line-number --no-heading --color=always --smart-case "
INITIAL_QUERY=""
FZF_DEFAULT_COMMAND="$RG_PREFIX '$INITIAL_QUERY'" \
fzf --bind "change:reload:$RG_PREFIX {q} || true" \
--ansi --phony --query "$INITIAL_QUERY"
Close #751
Close #965
Close #974
Close #1736
Related #1723
2019-11-10 11:43:37 +09:00
Junegunn Choi
11962dabba
Add --phony option for disabling search
...
With --phony, fzf becomes a simply selector interface without its own
search functionality. The query string is only used for building the
command for preview or execute action.
Close #1723
2019-11-10 11:36:55 +09:00
Junegunn Choi
dceb5d09cd
RTFM, please
2019-11-08 14:09:49 +09:00
Junegunn Choi
68683c444f
Fix argument parser for -m
...
/cc @tessus
2019-11-02 20:44:21 +09:00
Junegunn Choi
a185593d65
Remove unnecessary map lookup
2019-11-02 19:55:05 +09:00
Junegunn Choi
525040238e
Fix behavior of 'deselect-all' to only deselect matches
...
To make it consistent with select-all and toggle-all.
Close #1364
2019-11-02 19:41:59 +09:00
Junegunn Choi
33f89a08f3
Build with Go 1.13
2019-11-02 14:59:22 +09:00
Junegunn Choi
11645e1fac
Fix flaky test case
2019-11-02 14:55:13 +09:00
Junegunn Choi
6390140539
[vim/windows] Use chcp only if sed is in PATH
...
https://github.com/junegunn/vim-plug/pull/891
2019-11-02 14:35:21 +09:00
Junegunn Choi
072066c49c
--multi to take optional argument to limit the number of selection
...
Close #1718
Related #688
2019-11-02 14:25:12 +09:00
Junegunn Choi
a2e9366c84
Fix flaky test case
2019-11-02 13:15:01 +09:00
Junegunn Choi
0c6c76e081
[zsh] Suppress global alias expansion in widget functions
...
Close #1708
2019-10-17 14:51:57 +09:00
Junegunn Choi
3089880f18
[vim/windows] Fix chcp parsing for the current codepage
...
https://github.com/junegunn/vim-plug/pull/888
2019-10-08 09:41:22 +09:00