archi icon indicating copy to clipboard operation
archi copied to clipboard

[Feature Request] Single Key Shortcuts for Palette Tools

Open bkyle opened this issue 2 years ago • 4 comments
trafficstars

It would be nice if there were single key shortcuts that select the tools on the palette. For example, if I want to draw a connection between two elements I would like to be able to just hit the 'c' key (c for magic connection) and then click on the elements to be connected.

bkyle avatar Oct 25 '23 19:10 bkyle

Sorry, but not possible in the Eclipse GEF framework. See https://github.com/archimatetool/archi/issues/898

Phillipus avatar Oct 25 '23 19:10 Phillipus

I've created a proof of concept implementation of this feature, see PR #994.

bkyle avatar Nov 08 '23 18:11 bkyle

I'm opening this up because it's better to discuss here than in #994

Phillipus avatar Nov 24 '23 14:11 Phillipus

Summary:

  • @bkyle has a POC PR at #994. It works but has limitations. See https://github.com/archimatetool/archi/pull/994#issuecomment-1818848569
  • I've implemented a POC solution using the Eclipse Command, Contexts and Key Bindings frameworks in a new branch called palette-keys

Phillipus avatar Nov 24 '23 15:11 Phillipus

This will be in the next version. The user will be able to define key bindings for palette entries in Preferences -> Keys in the same way as for any other key binding. It is recommended to use modifier keys for the key bindings (example Ctrl B Ctrl R) so as not to interfere with other aspects of the UI.

Phillipus avatar Jun 06 '24 12:06 Phillipus