cloudhead / rx

👾 Modern and minimalist pixel editor
https://discord.gg/xHggPjfsS9
GNU General Public License v3.0
3.06k stars 108 forks source link

Command history doesn't place the cursor at the end of retrieved lines #76

Open ssokolow opened 4 years ago

ssokolow commented 4 years ago

When I press Up in command mode in rx 0.4.0 to retrieve a previous command, the cursor remains in its original position at the beginning of the line.

Personally, I see this as the most useless place to put it in this situation but, more objectively, it's at odds with how readline (bash, Python's rlcompleter, etc.), ZLE (zsh), and the Javascript consoles in the Firefox and Chrome developer tools behave. (They put the cursor at the end of the retrieved line, as if you'd just typed it manually.)

hendursaga commented 1 year ago

It's still remains at the start of the line, but the end is but a End press away. If there was Vim-y (or even Emacs-y!) keybindings for manipulating the command, like $ or C-e, that would be cool.