rndusr / stig

TUI and CLI for the BitTorrent client Transmission
GNU General Public License v3.0
554 stars 24 forks source link

Set the cursor at the end of the prompt when cycling history #162

Closed lenormf closed 4 years ago

lenormf commented 4 years ago

Reproducer:

The cursor will be at the beginning of the prompt, before "ls". It'd be more convenient if it was placed at the very end consistently.

HTH.

rndusr commented 4 years ago

Why would that be more convenient?

You don't have to place the cursor at the end of the command line to execute the command.

If you want to edit the command, stig has no way to predict what you're going to do. Placing the cursor at the end instead of keeping it somewhere in the middle may increase travel distance for you.

Also, ctrl-e and other readline keys allow you to move the cursor very quickly.

SeerLite commented 4 years ago

I think, more than convenience, it's about consistency with other CLI tools and shells. Having the cursor at the beginning might be confusing (it was for me) when you're used to a workflow where it's placed at the end. <colon><up><backspace> is almost muscle memory for me and I'm guessing it is for other people too.

Edit: Btw, stig is amazing. It's the perfect TUI torrent client. Thank you so much for making it!

SeerLite commented 4 years ago

Thank you!

rndusr commented 4 years ago

You're welcome. :)