opened 01:40PM - 09 Jul 26 UTC
enhancement
good first issue
rust
I really would like to be able to show the start and end of a command when the t…erminal width is not enough to show the full command.
<img width="1101" height="85" alt="Image" src="https://github.com/user-attachments/assets/8efc652a-50aa-4806-a7da-2af6ba81c601" />
How hstr is handling this:
<img width="1118" height="91" alt="Image" src="https://github.com/user-attachments/assets/27fc111a-4cc9-45bd-8cad-bae7fe9e3a16" />
No matter how small the terminal width is it is always showing the start and end of the command:
<img width="552" height="67" alt="Image" src="https://github.com/user-attachments/assets/672a6740-7e80-4340-9f6d-822d3c50cf32" />
<img width="278" height="61" alt="Image" src="https://github.com/user-attachments/assets/5770753b-8d16-4a55-b06b-5100b56c98c3" />
I know that this can partially be achieved by adjusting the `max_preview_height`, but this only shows 1 command at a time, however the other implementation is really useful since I see multiple commands at a glance:
<img width="282" height="368" alt="Image" src="https://github.com/user-attachments/assets/5bb77548-bda6-488d-b1aa-efdf4819a9c3" />