feat: command history navigation with up/down arrow keys
CommandLine now records every submitted command in a recall list (up to 50 entries). Pressing ↑ in the command input walks back through the list, ↓ moves forward, and returning to the newest position restores the draft text the user had typed before navigating. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
0868a1719c
commit
80ca095121
4 changed files with 76 additions and 1 deletions
|
|
@ -320,6 +320,12 @@ impl H7CAD {
|
|||
{
|
||||
Some(Message::DeleteSelected)
|
||||
}
|
||||
keyboard::Key::Named(keyboard::key::Named::ArrowUp) => {
|
||||
Some(Message::CommandHistoryPrev)
|
||||
}
|
||||
keyboard::Key::Named(keyboard::key::Named::ArrowDown) => {
|
||||
Some(Message::CommandHistoryNext)
|
||||
}
|
||||
keyboard::Key::Named(keyboard::key::Named::F3) => {
|
||||
Some(Message::ToggleSnapEnabled)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue