Skip to content

Commit 657d98d

Browse files
authored
Merge pull request #133 from legendu-net/dev
merge dev into main
2 parents 3ea5a63 + 9b2c059 commit 657d98d

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

cmd/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88

99
// Update icon.
1010
func version(cmd *cobra.Command, args []string) {
11-
fmt.Println("0.26.12")
11+
fmt.Println("0.26.13")
1212
}
1313

1414
var versionCmd = &cobra.Command{

utils/data/bash-it/plugins/custom.plugins.bash

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ function fzf.bat {
9191
if [[ $# > 0 ]]; then
9292
dir="$@"
9393
fi
94-
o="$($fd --type f --print0 --hidden . $dir | fzf --read0 --preview 'bat --color=always {}')"
94+
o="$($fd --type f --print0 --hidden . $dir | fzf -m --read0 --preview 'bat --color=always {}')"
9595
echo $o
9696
nvim $o
9797
}
@@ -124,14 +124,14 @@ function fzf.ripgrep.nvim {
124124
else
125125
nvim +cw -q {+f} # Build quickfix list for the selected items.
126126
fi'
127-
fzf --disabled --ansi --multi \
128-
--bind "start:$RELOAD" --bind "change:$RELOAD" \
129-
--bind "enter:become:$OPENER" \
127+
fzf -m --disabled --ansi --multi \
128+
--bind "home:$RELOAD" --bind "change:$RELOAD" \
129+
--bind "enter:execute:$OPENER" \
130130
--bind "ctrl-o:execute:$OPENER" \
131131
--bind 'alt-a:select-all,alt-d:deselect-all,ctrl-/:toggle-preview' \
132132
--delimiter : \
133133
--preview 'bat --style=full --color=always --highlight-line {2} {1}' \
134-
--preview-window '~4,+{2}+4/3,<80(up)'
134+
--preview-window 'right:40%'
135135
}
136136

137137
alias frgvim=fzf.ripgrep.nvim
@@ -151,7 +151,7 @@ function fzf.history {
151151
_fzf.history.usage
152152
return 0
153153
fi
154-
local command=$(HISTTIMEFORMAT="" history | sed -E 's/^[ ]*[0-9]+[ ]*//' | fzf | vipe)
154+
local command=$(HISTTIMEFORMAT="" history | sed -E 's/^[ ]*[0-9]+[ ]*//' | fzf -m | vipe)
155155
echo $command
156156
history -s "$command"
157157
eval "$command"

0 commit comments

Comments
 (0)