Page 1 of 1

Rename a file wihtout pressing f2

Posted: 05 Feb 2023 21:08
by RPM7
Is it possible to rename a file without pressing f2 by pasting from clipboard?

Ex: Let's say I have the phrase "hello world" in the clipboard, and I want to rename a file with this phrase, normally I'd have to select the file and press f2 then ctrl+v, I would like to rename the file without pressing f2, only using a keyboard shortcut.

Re: Rename a file wihtout pressing f2

Posted: 05 Feb 2023 21:24
by highend
Menu - User - Manage Commands...
Category: Run Script
Button: New...

Caption: Rename with clipboard content (or whatever you want to call it)
Script: renameitem(<clp>);

Button: Assign Keyboard Shortcut...

Re: Rename a file wihtout pressing f2

Posted: 06 Feb 2023 19:33
by RPM7
It works. Thank you very much!

Re: Rename a file wihtout pressing f2

Posted: 14 Feb 2023 22:01
by RPM7
When I copy a name from a file that has a dot "." in the name it deletes the extension of the file that I paste the name in.

Example: "Read .me this.txt" becomes "Read .me this"

Re: Rename a file wihtout pressing f2

Posted: 14 Feb 2023 22:57
by highend
Then use renameitem(<clp>, , 1);?

Re: Rename a file wihtout pressing f2

Posted: 15 Feb 2023 20:40
by RPM7
It worked, thanks!