Warp: a suggestion for the developers to allow working with atuin

While we can’t seem to get bindikeys to work with Warp, if you guys could add a command line option to "tuin search -i " to write the returned string to stderror or an autin_cmd.txt file we can wrap it in a zsh function and gain 99% of the functionality. We just call the search with a bash function and execute the returned command.
Rob

This is exactly what it does already :smiley: Except stdout, and it might have a qualifier of what type of selection it was (insert or execute). Should be easy enough to work with

Sorry, I was trying some odd stuff with chatgpt and that was a winding rabbit hole, after I posted I verified the stderr myself and it worked. Here is my workaround if anyone is interested.

zatuin_run_selected() {
  local outfile="$(mktemp)"
  atuin search -i 2>"$outfile"

  local cmd
  cmd=$(<"$outfile")
  rm -f "$outfile"

  if [[ -n "$cmd" ]]; then
    print -r -- "Executing: $cmd"
    eval "$cmd"
  else
    print "No command selected."
  fi
}

alias hhx='zatuin_run_selected'

Thanks again, I don’t think there is a differentiation between edit and execute in the return. So, that’s a bummer, but at least I can repeat commands.