explorerplusplus icon indicating copy to clipboard operation
explorerplusplus copied to clipboard

Keyboard shortcuts customization

Open zalmanlew opened this issue 5 years ago • 2 comments

I want to be able to easily Destroy Files.

Currently, I have to click ** Actions → Destroy File(s)...** and then do it.

I was wondering if there was a way to assign it a keyboard shortcut.

Also, it'd be nice if it had it's own button on top which could be enabled/disabled.

zalmanlew avatar May 19 '19 16:05 zalmanlew

There is in the latest development build.

Follow the steps shown in Plugins/Readme.txt to run Explorer++ with plugin support. In this case, you'd want to copy the update_accelerators folder into the plugins directory. You could then update plugin.json to add whatever keyboard shortcuts you like for the main menu items. You can find a list of the available menu items in AcceleratorMappings.h.

If you want to add a shortcut key for the destroy files menu item, you'd add something like the following json:

"shortcut_keys": [
  {
    "command": "destroy_files",
    "keys": [
      "Alt+Shift+D"
    ]
  }
]

This functionality was only added very recently, so there's no documentation just yet.

derceg avatar Oct 17 '19 10:10 derceg

@derceg that's awesome, thanks a lot!

Is there any documentation or list on what string corresponds to which key and how I need to write them? I tried adding using Ctrl and Control and that didn't work.

zalmanlew avatar Oct 17 '19 20:10 zalmanlew