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.
Rename a file wihtout pressing f2
-
highend
- Posts: 14926
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Rename a file wihtout pressing f2
Menu - User - Manage Commands...
Category: Run Script
Button: New...
Caption: Rename with clipboard content (or whatever you want to call it)
Script:
Button: Assign Keyboard Shortcut...
Category: Run Script
Button: New...
Caption: Rename with clipboard content (or whatever you want to call it)
Script:
renameitem(<clp>);Button: Assign Keyboard Shortcut...
One of my scripts helped you out? Please donate via Paypal
-
RPM7
- Posts: 7
- Joined: 12 Jan 2023 18:18
Re: Rename a file wihtout pressing f2
It works. Thank you very much!
-
RPM7
- Posts: 7
- Joined: 12 Jan 2023 18:18
Re: Rename a file wihtout pressing f2
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"
Example: "Read .me this.txt" becomes "Read .me this"
-
highend
- Posts: 14926
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Rename a file wihtout pressing f2
Then use
renameitem(<clp>, , 1);?One of my scripts helped you out? Please donate via Paypal
-
RPM7
- Posts: 7
- Joined: 12 Jan 2023 18:18
Re: Rename a file wihtout pressing f2
It worked, thanks!
XYplorer Beta Club