Age | Commit message (Collapse) | Author |
|
`precmd` hooks expect the Zsh Line Editor to not be active.
Running these when the ZLE is active can lead to unpredictable results.
See https://github.com/marlonrichert/zsh-autocomplete/issues/180
|
|
This reverts commit e9bc7331bde238e84f24b76ebb1f5e18799b15c4.
The change is no longer necessary since 090dee8.
|
|
Fix #2289
|
|
zsh sends SIGCONT when running fzf in a pipe in certain cases,
causing mouse mode to become disabled
Fix #2101
|
|
This reverts commit b62a74b3156540cea4f12cf1d092cba77cb1db67.
https://github.com/junegunn/fzf/pull/2251#issuecomment-740551383
|
|
|
|
|
|
Ideally, we could only use `print -sr` to update the command history.
However, the "cd" command by ALT-C is added to the history only after we
finalize the current command by pressing an additional enter key.
i.e. The cd command from ALT-C is not visible when you hit Up arrow. But
it appears once you hit enter key.
So when the current buffer is empty, we use `zle accept-line` so that
the command history is immediately updated.
Close #2200
|
|
|
|
Fix the regular expression to capture the command containing asterisk.
|
|
|
|
s///r is only available since perl 5.14. The Perl oneliner
was changed to work with older Perls, possibly even with 5.000.
Fix #2001
|
|
|
|
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%'
|
|
At the top of each zsh file options are set to their
standard values (those marked with <Z> in `man zshoptions`)
and `aliases` option is disabled.
At the bottom of the file the original options are restored.
Fix #1938
|
|
Close #1940
Related: #1363 #749 #270 #49 #88 #492 #600
|
|
The zsh version of the cd widget sets the variable `dir` to the path of
the target directory before invoking `cd`. This causes zsh to treat the
target directory as a named directory, which has the effect of zsh
substituting '%~' with '~dir' instead of the proper path when it
performs prompt expansion.
This commit will cause the widget to unset `dir` before redrawing the
prompt to fix this issue.
Details of zsh prompt expansion can be found in:
http://zsh.sourceforge.net/Doc/Release/Prompt-Expansion.html
|
|
Close #1708
|
|
Close #867
Close #1256
|
|
Fixes #915
|
|
Reference: http://zsh.sourceforge.net/Doc/Release/Shell-Builtin-Commands.html
> The flag -r reverses the order of the events
|
|
* Don't do shell quoting for weird chars
This would prevent tabs from being escaped as `$'\t'` (definitely not what I would want to see as initial value in the search).
* Do different escape.
|
|
Close #858
https://github.com/junegunn/fzf/commit/3a6af27586c65bb9243c5af7c43a40619503db52#commitcomment-21135641
|
|
This reverts commit 3a6af27586c65bb9243c5af7c43a40619503db52.
|
|
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.
|
|
Close #858
|
|
|
|
|
|
|
|
Related #822
|
|
https://github.com/mattn/go-shellwords/issues/3
Close #812
|
|
Close #807
|
|
Related #807
|
|
|
|
|
|
This removes the need for the 'sed' call. Faster, cleaner.
|
|
`-fstype dev` is invalid. It's devfs on macOS and devtmpfs on Linux.
|
|
Close #615
|
|
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
|
|
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.
|
|
Close #596
|
|
|
|
|
|
|
|
|
|
Close #526
|
|
|
|
|
|
In the case that fzf-tmux returns a user-selected result but with a
non-zero exit status (which can happen if a function inside $PS1 returns
non-zero) this allows CTRL-R to continue working as expected.
Addresses #203 (Tranquility's comment)
|
|
|