sysdig icon indicating copy to clipboard operation
sysdig copied to clipboard

FR: provide non-function-key shortcuts for all csysdig operations

Open aspiers opened this issue 10 years ago • 12 comments

Currently several of the function keys have alternate keys which do the same thing, e.g. e instead of F5, q instead of F10. This is awesome, but some are missing alternate keys: F2, F3, F7, and F8. It is beneficial to have alternates for all keys, for at least two reasons:

  • Function keys are less convenient to type, because it's usually impossible to find the right key without looking at the keyboard. This is particularly annoying for touch-typists ;-)
  • The user might be running csysdig on a terminal which has issues correctly handling function keys.

aspiers avatar Dec 13 '15 12:12 aspiers

I see your point, but on the other hand, keyboard keys are a limited resource, especially since csysdig's action functionality can potentially need many of them. As a consequence, I prefer to have alternative hotkeys only for common and useful operations. This is, by the way, consistent with other tools like htop.

Among the operations you suggest in this issue, I think the only one that deserves an alternate key is F2. OK?

ldegio avatar Dec 13 '15 23:12 ldegio

One admittedly very small use case where function key alternatives would be useful is when using a terminal emulator in the browser where function keys are unavailable.

On Dec 13, 2015, at 3:12 PM, Loris Degioanni [email protected] wrote:

I see your point, but on the other hand, keyboard keys are a limited resource, especially since csysdig's action functionality can potentially need many of them. As a consequence, I prefer to have alternative hotkeys only for common and useful operations. This is, by the way, consistent with other tools like htop.

Among the operations you suggest in this issue, I think the only one that deserves an alternate key is F2. OK?

— Reply to this email directly or view it on GitHub.

etown avatar Dec 13 '15 23:12 etown

@ldegio wrote:

I see your point, but on the other hand, keyboard keys are a limited resource, especially since csysdig's action functionality can potentially need many of them.

Yes, that's a fair point. It's definitely worth trying to support simple keystrokes for as many actions as possible.

As a consequence, I prefer to have alternative hotkeys only for common and useful operations. This is, by the way, consistent with other tools like htop.

Sure, that's fine, e.g. noone should need to access the legend frequently.

Among the operations you suggest in this issue, I think the only one that deserves an alternate key is F2. OK?

Hmm not quite - I think actions (F8) definitely deserves an alternate key too.

@etown wrote:

One admittedly very small use case where function key alternatives would be useful is when using a terminal emulator in the browser where function keys are unavailable.

Right, that's the second item in my list above :-)

aspiers avatar Dec 14 '15 00:12 aspiers

I'm unable to use any function key inside a Virt-manager/Qemu/KVM VM so I'm unable to use csysdig :-(

q2dg avatar Nov 11 '18 21:11 q2dg

Currently, nor in VirtualBox :-(

q2dg avatar Dec 08 '21 20:12 q2dg

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Mar 01 '23 02:03 github-actions[bot]

Well, it's clear the priority of this issue :_(

q2dg avatar Mar 01 '23 09:03 q2dg

Maybe could be a good idea to add a configuration file to change the default key mapping. Maybe @q2dg could help on this? 😄 btw maybe I could help on tweak your vm environment to work with function keys 🤔

therealbobo avatar Apr 17 '23 08:04 therealbobo

Thank you. I haven't the required skills to do this...I'm not developer, just a simple user.

q2dg avatar Apr 17 '23 10:04 q2dg

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Aug 16 '23 01:08 github-actions[bot]

Come on...

q2dg avatar Aug 16 '23 14:08 q2dg