Keyboard shortcut for Dolphin's File > Create New > Empty File (and similar)

Hi there, is there a way to set a keyboard shortcut for Dolphin’s File > Create New > Empty File menu item? I don’t see it in the list in Configure Keyboard Shortcuts window. There are a couple of other items I’d like shortcuts for as well:

  • File > Create New > Text File
  • (context menu) > Actions > Move to New Folder

Any ideas? Thanks.

There’s an item there that says ‘Create File…’

The other way to do this would be to hit F4 and type ‘touch file’ to create an empty file called ‘file’.

That is in the menu Configure > Shortcut configuration dialog (Ctrl+Alt+,)

Well that does not work the create file action will pick the file type for the first entry in the menu “Create New”, but the “Create Empty file” action neither individual entries for this menu are exported to the shortcuts.

You can type Ctrl+Alt+I to open the command menu and type in “empty”, that works though.

My favorite “dolphin hack”: just paste your clipboard right into a folder to create a new file with your clipboard contents. Because you never really need an empty file, you just start with one and fill it up anyway.

Thanks, @ben2talk! Create New… triggers Create New > Text File… for me, but I suppose that’s close enough.

Anyone know of a way to assign a keyboard shortcut to Actions > Move to New Folder in the context menu? It’s pretty awkward to get to with the mouse.

Yup, awkward - remember ‘A’ to punch the ‘Actions’ submenu open, but there’s no direct access for that.

Oh, that’s surprisingly ergonomic, actually: select some files with mouse, right click, ‘A’, ‘M’, type new folder name, hit Enter.

This isn’t possible at the moment.
This entry is a C++ plugin context menu KAbstractFileItemActionPlugin Class | KIO and this needs some evolution to be able to set shortcuts for them.

Oh interesting, thanks. Are menu items “scriptable” at all? In macOS I could write a script that would activate a menu item by matching the text of the item.