aboutsummaryrefslogtreecommitdiffstats
path: root/src/shell/atuin.zsh
diff options
context:
space:
mode:
authorEllie Huxtable <e@elm.sh>2021-03-20 00:50:31 +0000
committerGitHub <noreply@github.com>2021-03-20 00:50:31 +0000
commit716c7722cda29bf612508bb96f51822a86e0f69e (patch)
treefa3c4c192fc05b078397fcd510d39ae78e46abfa /src/shell/atuin.zsh
parentAdd config file support (#15) (diff)
downloadatuin-716c7722cda29bf612508bb96f51822a86e0f69e.zip
Add TUI, resolve #19, #17, #16 (#21)
Diffstat (limited to 'src/shell/atuin.zsh')
-rw-r--r--src/shell/atuin.zsh8
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