From 716c7722cda29bf612508bb96f51822a86e0f69e Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Sat, 20 Mar 2021 00:50:31 +0000 Subject: Add TUI, resolve #19, #17, #16 (#21) --- src/shell/atuin.zsh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/shell') diff --git a/src/shell/atuin.zsh b/src/shell/atuin.zsh index 840015dc..8407efd2 100644 --- a/src/shell/atuin.zsh +++ b/src/shell/atuin.zsh @@ -20,7 +20,9 @@ _atuin_search(){ emulate -L zsh zle -I - output=$(eval $ATUIN_HISTORY | fzf) + # swap stderr and stdout, so that the tui stuff works + # TODO: not this + output=$(atuin search $BUFFER 3>&1 1>&2 2>&3) if [[ -n $output ]] ; then LBUFFER=$output @@ -33,7 +35,9 @@ _atuin_up_search(){ emulate -L zsh zle -I - output=$(eval $ATUIN_HISTORY | fzf --no-sort --tac) + # swap stderr and stdout, so that the tui stuff works + # TODO: not this + output=$(atuin search $BUFFER 3>&1 1>&2 2>&3) if [[ -n $output ]] ; then LBUFFER=$output -- cgit v1.3.1