mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[zsh] unify the fzf window settings a little bit
This commit is contained in:
parent
8bd66911da
commit
7b7b1ba1c2
3 changed files with 3 additions and 3 deletions
|
@ -19,7 +19,7 @@ def run_chooser(choices: Iterable[str], prompt: str = None, async_read: bool = F
|
||||||
process_args = [
|
process_args = [
|
||||||
"fzf",
|
"fzf",
|
||||||
"--with-nth=2..",
|
"--with-nth=2..",
|
||||||
"--height=50%",
|
"--height=40%",
|
||||||
"--reverse",
|
"--reverse",
|
||||||
"--tiebreak=index",
|
"--tiebreak=index",
|
||||||
]
|
]
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
set -eu
|
set -eu
|
||||||
# https://superuser.com/a/207474
|
# https://superuser.com/a/207474
|
||||||
apropos . | fzf --no-multi --tiebreak=begin --query="$*" | sed -n 's/^\([^ ]\+\) \?(\([^)]\+\)).*$/\2 \1/p'
|
apropos . | fzf --height=40% --reverse --no-multi --tiebreak=begin --query="$*" | sed -n 's/^\([^ ]\+\) \?(\([^)]\+\)).*$/\2 \1/p'
|
||||||
|
|
|
@ -33,4 +33,4 @@ unset jq_colors
|
||||||
export HOMEBREW_NO_AUTO_UPDATE=1
|
export HOMEBREW_NO_AUTO_UPDATE=1
|
||||||
|
|
||||||
# https://github.com/junegunn/fzf/blob/764316a53d0eb60b315f0bbcd513de58ed57a876/src/tui/tui.go#L496-L515
|
# https://github.com/junegunn/fzf/blob/764316a53d0eb60b315f0bbcd513de58ed57a876/src/tui/tui.go#L496-L515
|
||||||
export FZF_DEFAULT_OPTS="--color=16"
|
export FZF_DEFAULT_OPTS="--color=16 --height=40% --reverse"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue