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

We welcome any suggestions for new features or improvements in Altap Salamander. Please post one suggestion per report.
User avatar
AbteriX
Posts: 94
Joined: 12 Mar 2006, 20:55
Location: Deutschland
Contact:

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

Post by AbteriX » 07 Oct 2006, 21:43

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?

User avatar
SvA
Posts: 461
Joined: 29 Mar 2006, 02:41
Location: DE

Post by SvA » 08 Oct 2006, 21:24

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

omega
Posts: 193
Joined: 09 Dec 2005, 19:21

Post by omega » 08 Oct 2006, 22:17

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.

User avatar
AbteriX
Posts: 94
Joined: 12 Mar 2006, 20:55
Location: Deutschland
Contact:

Post by AbteriX » 10 Oct 2006, 14:37

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.
AbteriX

Post Reply