atuin icon indicating copy to clipboard operation
atuin copied to clipboard

long command lines

Open khuongduybui opened this issue 2 years ago • 2 comments

hi Ellie, first of all thanks a lot for the awesome tool! I'm having problems browsing my history (with up key) when the command lines are longer than the terminal width, I can't see the end of it. This is particularly problematic when I'm playing with jq because my command often starts with cat ... | grep ... | sed ... | xargs ... | <a bunch of other things> | jq so by the time I get to my jq query, the command is already longer than terminal width and if I hit "up" to see what I had before, I couldn't possibly know which one is which.

khuongduybui avatar May 13 '22 01:05 khuongduybui

hi Ellie, first of all thanks a lot for the awesome tool!

thank you for the kind words! 😁

Hmm. A potential solution here would be for us to break it between multiple lines, basically just wrap when we hit the edge of the terminal

ellie avatar May 13 '22 08:05 ellie

That sounds like an intuitive solution, but I haven't used tui-rs so I don't know how hard / easy it would be.

khuongduybui avatar May 13 '22 14:05 khuongduybui

I would suggest a different approach to this- add a Preview window to the right. It would show not just the command, but also other details such as Host, Directory, etc.

This is the main thing I miss after migrating from https://github.com/m42e/zsh-histdb-fzf (includes an asciinema sample).

iamkroot avatar Oct 29 '22 07:10 iamkroot

We have preview window support for now, below the terminal line.

add a Preview window to the right. It would show not just the command, but also other details such as Host, Directory, etc.

We have a vision to add this. But we're tracking this elsewhere so I'm closing this issue

conradludgate avatar Mar 22 '23 14:03 conradludgate