automatic file creation with the name in the clipboard

Various oMega Commander questions
Post Reply
steph38
Posts: 6
Joined: 11 Jan 2021 11:22

automatic file creation with the name in the clipboard

Post by steph38 »

Hi,

Is there any possibility to create an icon within a ribbon who does create a file where the name of this file is in the clipboard (file created in the displayed folder) ?
If yes, how could I achieve this ?

Today, I am using the "New file" icon, paste the name and set the file not to be opened in the editor (I only need the file name infos, no datas in the file)
Could it be possible to add the elements (clipboard content as name and do not open file as parameters to the existing icon/function in the ribbon ?

I've tried this in the command line :

Code: Select all

/Edit(New+NotOpen,Clipboard(Show))
But it does not work... (the NotOpen works !)

Thanks in advance for your help and advises,

Stéphane
Joomla! 1 to 3, Linux, OSX, Windows 1.0 to 10
Please forgive me my English as it is not my mother language, I am French

oMega Support
Posts: 80
Joined: 06 Oct 2019 13:48

Re: automatic file creation with the name in the clipboard

Post by oMega Support »

Add a button to the ribbon.
In Tools Designer specify for it:
Command: new-item
Parameters: $(Get-Clipboard)
In Window dropdown: Select two options: Hide the window; Execute in PowerShell window (close on completion)
Assign a Hotkey if you want to avoid clicking the button every time.

steph38
Posts: 6
Joined: 11 Jan 2021 11:22

Re: automatic file creation with the name in the clipboard

Post by steph38 »

Hello,

Perfect ! Works as expected !
Many thanks for your help !

Stéphane
Joomla! 1 to 3, Linux, OSX, Windows 1.0 to 10
Please forgive me my English as it is not my mother language, I am French

Post Reply