diff options
| author | Ellie Huxtable <e@elm.sh> | 2021-03-20 00:50:31 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-20 00:50:31 +0000 |
| commit | 716c7722cda29bf612508bb96f51822a86e0f69e (patch) | |
| tree | fa3c4c192fc05b078397fcd510d39ae78e46abfa /src/shell/atuin.zsh | |
| parent | Add config file support (#15) (diff) | |
| download | atuin-716c7722cda29bf612508bb96f51822a86e0f69e.zip | |
Add TUI, resolve #19, #17, #16 (#21)
Diffstat (limited to 'src/shell/atuin.zsh')
| -rw-r--r-- | src/shell/atuin.zsh | 8 |
1 files changed, 6 insertions, 2 deletions
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 |
