TomKrauss / pks-edit

A code editor originally implemented for Atari ST - now available as Windows 64 Bit application
Mozilla Public License 2.0
8 stars 2 forks source link

Support (old) CUA keyboard shortcuts for clipboard access #20

Open rbri opened 1 month ago

rbri commented 1 month ago

When editing text files i use the keyboard shortcuts for the clipboard the whole time. But because I'm old i use the CUA ones and i still think they are much better than the x-c-v stuff.

Is there any chance to support these shortcuts also in pks-edit? Currently some of them seems to trigger different actions....

image

TomKrauss commented 1 month ago

Shortcuts and all kind of action bindings (menus etc...) are completely configurable in PKS-Edit: file pks_sys\pksactionbindings.json. Open Issue: there is currently no user specific way to extend/override the provided bindings. Something like placing a config file into $HOME/pks_sys/..., which will cause PKS Edit to load it from that directory rather than from the installed PKS_SYS directory.

rbri commented 1 month ago

ok, thanks

have added this

{
  "key": "Shift+DELETE",
  "command": "@delete-selection"
},
{
  "key": "Ctrl+INSERT",
  "command": "@copy-to-clipboard"
},
{
  "key": "Shift+INSERT",
  "command": "@paste-clipboard"
}

and it works fine in my first tests. But i think the name '@delete-selection' should mention the copy to clipboard - maybe something like '@cut-to-clipboard' to be similar to other two clipboard commands.

TomKrauss commented 1 month ago

Thank you - that is correct. I renamed the command to cut-to-clipboard.