Anze/KeyCluCask

[feature]: `My Shortcuts` improvements

Opened this issue · 4 comments

Proposal

I've been using KeyClu for a few days now after stumbling upon it by accident. The My Shortcuts feature stood out, I was about to start developing an app to help me visualize all my custom global shortcuts as I have a bunch exposed through Raycast - window management, PiP playback controls, audio output, home/desk automation - around 30 as of now.

I think there's some significant improvements that can be made:

  • Allow manual ordering of shortcuts - they are currently ordered alphabetically
  • Allow manual ordering of groups - they are currently ordered by insertion
  • Allow UI to expand vertically and/or collapsing groups for better visualization while editing
  • There's a small bug while renaming groups - the field has white text and background

I also had some quirk behaviors while deleting and renaming shortcuts, like alerts popping up and items not actually deleting, but I'm not sure how to reproduce (I remember it happening on 0.25, I'm now on 0.26 and haven't had any issues so far).

Alternatives

  • I'm currently prefixing shortcuts with numbers to enforce an order. Apart of looking quite odd it makes adding a new entry potentially cumbersome as I would need to go over all subsequent entries and edit the prefixes to match the new order.
  • I added groups and named them before adding any shortcuts to enforce an order, but adding new groups later will have me either moving shortcuts over to other groups and renaming everything or giving up and just accepting the situation.
  • I thought about using the "Import" feature, but didn't know how I'd be able to point out it's global shortcuts instead of a specific app, and maybe I would end up with the same issue once everything is imported.
  • While naming groups I'm hoping I type it right haha, I could copy/paste from elsewhere or select the text so I can see, but yeah it's a bug

Here's an example. By enforcing an order I can have shortcuts organized in a logical way, look at the keys for each shortcut.

In this case the Media Playback group is a happy accident - I can't have it moved before Window Management though (I would need to swap all shortcuts between the groups and rename them)

Screenshot 2024-04-27 at 05 39 20 Screenshot 2024-04-27 at 05 47 43

--

I would even argue we could benefit of being able to put separators within groups to further help in visualization just like there's separators within app's menus, but I digress. (edit: currently we can add shortcuts with empty name and no related keys, but still would need to be able to control the order)

There's a small bug while renaming groups - the field has white text and background

Added an issue for this at #74

Anze commented

Hey leoravagnani,
Thanks for the request. Improving of My Shortcuts is on my radar for the future.

@Anze keep up the great work mate! If you need any more input I'm glad to help.