sniffnet icon indicating copy to clipboard operation
sniffnet copied to clipboard

Suggest keyboard shortcuts to add 💻

Open GyulyVGC opened this issue 2 years ago • 5 comments

I started introducing keyboard shortcuts to improve the efficiency of use and the overall user experience.

I have a few ideas about where to apply shortcuts but I'm unsure of the shortcut keys to be used, so feel free to give me some suggestions.

More shortcuts will be added and you can even suggest new ones.

[!Note]

On macOS, use cmd instead of ctrl

Action Shortcut keys
Quit the application ctrl+Q
Open settings ctrl+,
Interrupt the ongoing analysis ctrl+backspace
Clear all notifications ctrl+D
Toggle thumbnail mode ctrl+T
Pause and resume packet capture ctrl+space
Start the analysis and confirm modal actions enter
Close settings and modal popups esc
Switch from a tab to the next (or previous) one tab (or shift+tab)
Switch inspect table page to the next (or previous) one ctrl+rightArrow (or ctrl+leftArrow)
Increase (or decrease) zoom level ctrl++ (or ctrl+-)

GyulyVGC avatar Mar 04 '23 18:03 GyulyVGC

For Open settings, how about ctrl+, (cmd+, on macOS)? On mac, almost all apps open their settings using cmd + ,. On windows, I don't know so much, but windows terminal use analogous ctrl + , to open "Open Windows Terminal Settings UI".

Rianico avatar Mar 19 '23 07:03 Rianico

Hi @Rianico. Thanks for your advice. I think I'll implement your suggestion, since ctrl+S was kinda misleading because it's usually used to save something. Thank you!

GyulyVGC avatar Mar 19 '23 08:03 GyulyVGC

Hi @Rianico. Thanks for your advice. I think I'll implement your suggestion, since ctrl+S was kinda misleading because it's usually used to save something. Thank you!

You're welcome. I would also like to thank you for this powerful project.

Rianico avatar Mar 19 '23 12:03 Rianico

Made a suggestion in a self-standing issue to simplify discussion of this suggestion:

Bind the cmd/ctrl + - and cmd/ctrl + - shorcuts to increase decrease the zoom levels

  • #554

corneliusroemer avatar Jul 04 '24 11:07 corneliusroemer

  • [ ] Add shortcut to show keyboard shortcuts, the canonical one is cmd/ctrl + ? ~= (on US keyboard) cmd/ctrl + shift + /
  • [ ] Add shortcut to pause recording, once #551 is implemented, suggested shortcut cmd+enter or cmd+F (capital F for freeze)
  • [ ] Switching tabs "Overview", "Inspect", "Notifications" with shortcuts CMD+1/CMD+2/CMD+3

corneliusroemer avatar Jul 04 '24 11:07 corneliusroemer