atuinsh / atuin

✨ Magical shell history
https://atuin.sh
MIT License
19.28k stars 531 forks source link

Directory can be truncated in CLI inspector #2088

Open ellie opened 1 month ago

ellie commented 1 month ago

If the terminal is too narrow, and the length of the directory path is too long, then it is truncated

We use a Ratatui table to display this information. Each cell in the table has a height of 1 by default, and it does not seem possible to make the height dynamic. We'll probably need to figure out a different way of rendering this information

atuin-bot commented 1 month ago

This issue has been mentioned on Atuin Community. There might be relevant details there:

https://forum.atuin.sh/t/inspect-feedback-the-directory-path-is-truncated-in-inspect-page/322/3

kidonng commented 1 month ago

Semi-related, but the inspector generally doesn't look good when the terminal is relatively narrow. This is default 80x25 window in iTerm, as you can see a lot more stuff are truncated (even if there's space remaining in the box, at least that's what it looks like to me):

Screenshot 2024-06-26 at 1 30 34 AM

The truncated header (with the shortcuts hint and history count) is prominent in the (main) Search window as well.