Silence fish string match (#1336)
Oops. `string match` is a bit too noisy, make it quiet. Also print the match before executing it. Resolve #1335
This commit is contained in:
parent
b7adf1d797
commit
5ca346b40c
1 changed files with 6 additions and 3 deletions
|
@ -19,15 +19,18 @@ end
|
||||||
|
|
||||||
function _atuin_search
|
function _atuin_search
|
||||||
set h (ATUIN_SHELL_FISH=t ATUIN_LOG=error atuin search $argv -i -- (commandline -b) 3>&1 1>&2 2>&3)
|
set h (ATUIN_SHELL_FISH=t ATUIN_LOG=error atuin search $argv -i -- (commandline -b) 3>&1 1>&2 2>&3)
|
||||||
commandline -f repaint
|
|
||||||
|
|
||||||
if test -n "$h"
|
if test -n "$h"
|
||||||
if string match -g '__atuin_accept__:*' "$h"
|
if string match -qg '__atuin_accept__:*' "$h"
|
||||||
eval (string match -r '__atuin_accept__:(.*|\s*)' "$h" | awk 'NR == 2')
|
set hist (string match -r '__atuin_accept__:(.*|\s*)' "$h" | awk 'NR == 2')
|
||||||
|
echo $hist
|
||||||
|
eval $hist
|
||||||
else
|
else
|
||||||
commandline -r "$h"
|
commandline -r "$h"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
commandline -f repaint
|
||||||
end
|
end
|
||||||
|
|
||||||
function _atuin_bind_up
|
function _atuin_bind_up
|
||||||
|
|
Loading…
Reference in a new issue