Open Bug 1578160 Opened 6 years ago Updated 2 years ago

Add keyboard shortcut to navigate through history more easily in editor mode

Categories

(DevTools :: Console, task, P3)

task

Tracking

(Not tracked)

People

(Reporter: nchevobbe, Unassigned)

References

(Blocks 1 open bug)

Details

The shortcuts would also be available in inline mode since we can deal with multiline input there as well.
it looks like terminals register Ctrl+N and Ctrl+P to navigate through history.
We already handle those shortcuts, but only for OSX.
On other platforms, I guess this would conflict with open new tab and print page shortcuts, so maybe we should have another set (Ctrl+J and Ctrl+K could be an option)

I think I'd prefer Ctrl+H to open a History menu, and then stepping forward and back with arrow keys.

We should try our best to be consistent with what is already existing in the industry so it feels more natural to people to use those shortcuts.
Having a menu as you suggested (or a mode), require a lot more work to get right, and is not consistent with anything out there.
We already have a reverse search UI if you want to look for a given previous command (Ctrl+R on OSX, F9 otherwise) (we are going to add an icon to make it more discoverable soon)

Severity: normal → S3
No longer blocks: console-multiline-editor-m2
You need to log in before you can comment on or make changes to this bug.