SoarGroup / Soar

Soar, a general cognitive architecture for systems that exhibit intelligent behavior.
http://soar.eecs.umich.edu
Other
322 stars 70 forks source link

FR: Arrow-key functionality in SoarCLI #447

Open ShadowJonathan opened 2 months ago

ShadowJonathan commented 2 months ago

Currently exploring the soar CLI, and one ergonomic feature I'm missing from other shells is the ability to scroll through shell history with the up arrow, so that mistakes in commands can be easily altered with one up-press, which'd load the last-entered command in the current prompt.

Edit: Amended with more functionality, such as left-right and ctrl-A & ctrl-E (beginning and end)

scijones commented 1 month ago

I, too, have wanted this (and other) functionality I have come to expect in other shells.

ShadowJonathan commented 1 month ago

What other functionality, for the record? (Just so it's noted somewhere, and can be spun out to another FR)

garfieldnate commented 1 month ago

Yeah, I wonder if there's a library somewhere we can use for this. I also want ctrl-A and ctrl-E for navigation to the beginning and end of lines (and I know there are more that are fairly standard). Actually, if I remember correctly, you can't even use the arrow keys to go back and forth in a line and edit it! Truly aggravating and also very surprising.

scijones commented 1 month ago

The main other one for me is what was just mentioned -- using the arrow keys to go back and forth in a line and edit it.

scijones commented 1 month ago

More info: When I run soar.exe within windows powershell, "up arrow to previous command" and "use left/right to change cursor position and then edit command" both work.

garfieldnate commented 1 month ago

That is interesting. I have no idea why that's the case!