Page 1 of 1

Shift+F4... use name-part from selected file

Posted: 07 Oct 2006, 21:43
by AbteriX
I often use Shift+F4 to create new text files.

Most text files should become the same name as an *.EXE file.
e.g.
Setup-v2.0.exe ==> Setup-v2.0.txt

Therefor i have to copy the name of the EXE to the clipboard
and paste it back into the "Edit new file" dialog. Then i
have to modify the extension to TXT.

Feature Request:
[ ] Use name of pointed file as name-part for "Edit new file" dialog

i.e.
How about to open the "Edit new file" dialog and auto fill it
with the name of the selected or highlighted file?
(without the extension)
e.g
Select the Setup-v2.0.exe ==> Shift+F4 ==> [Setup-v2.0. ] ==> add txt ==> press ENTER


What do you think?

Posted: 08 Oct 2006, 21:24
by SvA
I suggest you add (yet another) entry to your user menu toolbar pointing to a suitable script which creates the file and possibly launches your editor.

I don't think too many people would use that feature, but let's hear others oppinion on this

Posted: 08 Oct 2006, 22:17
by omega
To me it's not a feature i would (often) use. I think you like to keep a note on every setup.exe with the same name. To me it's better to rename the setup.exe to the application name and put all the installers in an install dir.

Posted: 10 Oct 2006, 14:37
by AbteriX
Thanks for the suggestions.
SvA wrote:I suggest you add (yet another) entry to your user menu toolbar pointing to a suitable script which creates the file and possibly launches your editor.
Yes your right, we can use e.g. this AHK script:

Code: Select all

#IfWinActive,ahk_class SalamanderMainWindowVer16
!n:: 			;Point a file in Salamander and press Alt+n for execute the following steps

Send, {SHIFTDOWN}{ALTDOWN}{INS}{ALTUP}{SHIFTUP}{SHIFTDOWN}{F4}{SHIFTUP}
WinWait, Edit New File, New file name:
IfWinNotActive, Edit New File, New file name:, WinActivate, Edit New File, New file name:
WinWaitActive, Edit New File, New file name:
Send, {CTRLDOWN}v{CTRLUP}{BACKSPACE 3}txt
return

omega wrote: To me it's not a feature i would (often) use. I think you like to keep a note on every setup.exe with the same name. To me it's better to rename the setup.exe to the application name and put all the installers in an install dir.
For me it's not only the name, version and date.
In my text file there are more description about the file like history, FAQs,
download URL and other infos. :lol:
Or e.g. the help for an executable.


I just thought such little helpers are good for the reputation of an file manager.