neo4j-browser
neo4j-browser copied to clipboard
(Feature request) Keyboard shortcuts to interact with frames
It would be useful to have shortcuts to interact with the frames in the stream without using a pointer (mouse clicks or wheel or touchpad).
Focus and scroll to the next frame
It would be handy to focus the desired frame in the stream, so that:
- its style slightly changes to signal it's "active";
- it scrolls up (as if we perfectly scrolled it up manually);
- we can perform actions on it via other shortcuts (Pin, Fullscreen, Collapse, Close).
Supposing we use ALT-F to move the active frame in the stream, I'd possibly use Shift-Alt-F to move in the opposite direction.
Note that curently is we click on a frame we can't type in the console anymore, so there seems to be a concept of "console currently not in focus". If this is the desired behaviour then when the active frame is the last one, the first up in the stack, pressing Shift-Alt-F (in this example) would move the focus back on the console.
Personally I'd prefer having the console focus independent from the frames focus, to be able to bring old frames up (to inspect old commands and/or outputs) and still be able to type in the console.
Close the last frame in the stream
With such a system in place, deleting the last few frames would require to focus the last frame, then press the "delete focused frame" shortcut until we close all frames we need and then focus the console again, which could be a bit tedious so it would be useful to have a shortcut to close the last frame in the stream directly, to be able to clear up latest frames, especially useful when getting errors.
If this feature was implemented and it was easier to quickly scan the stream, frames height could be maximized so that you always see just one frame (or maybe one frame and a bit of the next one to still communicate it's a stream), probably reducing the need to use fullscreen mode for small networks.
+1 I'd like to be able to close frames via Ctrl-X or something.
Mini update: We've spent quite some time trying to find good keyboard shortcuts, and finding comfortable shortcuts that don't overlap with any of the built in shortcuts in the web browser and/or operating systems. We think better keyboard shortcuts would be awesome in neo4j browser, but if we're gonna override built in shortcuts we want to be sure we do it really well. So all in all we're interested in the feature but this is why you've not seen more changes yet