This forum uses cookies. Click X button to hide this message. What is stored? 
Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

F4MiniMenu (AHK): F4Menu w. Drag&Drop, filelist, cmdline
Goto page Previous  1, 2, 3, 4, 5
 
Post new topic   Reply to topic    Total Commander Forum Index -> Plugins and addons: devel.+support (English) Printable version
View previous topic :: View next topic  
Author Message
hi5
Member
Member


Joined: 03 Nov 2012
Posts: 131

PostPosted: Fri Jun 30, 2017 12:35 pm    Post subject: Reply with quote

Ovg wrote:
2hi5 3. It is possible to edit files within archives? Now i can't. I press F4, files are extracted but editor(s) don't start ... May be I'm missing something?


@Ovg (and others of course) you can now try a helper script I've made earlier today that will read the settings and try to open the preferred editor when editing files from archives and FTP. It also works when you create a new file (shift-F4) but of course the target program has to accept "new or empty files" - for example notepad will allow this, but your graphics program of Office word processor will probably generate an error message.

Zip here:
https://github.com/hi5/F4MiniMenu/issues/13
_________________
F4MiniMenu - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey) - TC Forum thread


Last edited by hi5 on Sun Jul 02, 2017 12:45 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
Ovg
Senior Member
Senior Member


Joined: 06 Jan 2014
Posts: 475

PostPosted: Sun Jul 02, 2017 10:24 am    Post subject: Reply with quote

Hi hi5

Thank you for developing and support! I'll check you script.

Now for this I use my own script. I wrote this after my question and your answer. The script is configured as an editor for TC, reads the same ini and starts after pressing F4 inside the archive, but perhaps your script will be better and more convenient than mine.
_________________
It's impossible to lead us astray for we don't care even to choose the way.
#259941, TC 9.10β1 x64, Windows 7 SP1 x64
Back to top
View user's profile Send private message Send e-mail
hi5
Member
Member


Joined: 03 Nov 2012
Posts: 131

PostPosted: Sun Jul 02, 2017 12:43 pm    Post subject: Reply with quote

@Ovg that's basically what the new script does. All I am going to do is clean it up a bit and #include some more code. So the script itself will be very short - half of what is now - as I copied some code from the main script for testing but it is easy to #include (all the blocks marked with dup ... /dup. Easier for maintenance in the future Smile

But if your own script works, by all means keep on using it. If it works, it works.
_________________
F4MiniMenu - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey) - TC Forum thread
Back to top
View user's profile Send private message Visit poster's website
Ovg
Senior Member
Senior Member


Joined: 06 Jan 2014
Posts: 475

PostPosted: Sun Jul 02, 2017 1:21 pm    Post subject: Reply with quote

2hi5

I have tested your script and found:
if there is not extention in ini file, instead of default editor (editor #1) the last editor is starting up. F4MiniMenu working fine with the same ini.
_________________
It's impossible to lead us astray for we don't care even to choose the way.
#259941, TC 9.10β1 x64, Windows 7 SP1 x64
Back to top
View user's profile Send private message Send e-mail
hi5
Member
Member


Joined: 03 Nov 2012
Posts: 131

PostPosted: Mon Jul 03, 2017 10:09 am    Post subject: Reply with quote

Ovg wrote:
if there is not extention in ini file, instead of default editor (editor #1) the last editor is starting up.

Good find, as I don't have entries with no extensions assigned to them I wouldn't have found it myself.
Fixed it, you can download a new zip here.

edit: grammar typo fix
_________________
F4MiniMenu - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey) - TC Forum thread


Last edited by hi5 on Mon Jul 03, 2017 10:36 am; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
Ovg
Senior Member
Senior Member


Joined: 06 Jan 2014
Posts: 475

PostPosted: Mon Jul 03, 2017 10:21 am    Post subject: Reply with quote

2hi5
Many Thanks!
_________________
It's impossible to lead us astray for we don't care even to choose the way.
#259941, TC 9.10β1 x64, Windows 7 SP1 x64
Back to top
View user's profile Send private message Send e-mail
hi5
Member
Member


Joined: 03 Nov 2012
Posts: 131

PostPosted: Sat Jul 08, 2017 2:17 am    Post subject: Reply with quote

An experiment using DocumentTemplates for new files (shift+f4 in TC), script name is now F4TCIEx.ahk so don't have to overwrite version 0.2 from the post above.

As mentioned earlier: the target program has to accept "new or empty files" - for example notepad will allow this, but your graphics program of Office word processor will probably generate an error message as it doesn't "understand" the new empty file.

To solve this problem you can place templates in the DocumentTemplates folder.
Create a new document in your preferred program, say a 100x100 bmp file in MS Paint. Save it as "template.BMP" in the DocumentTemplates folder. At the moment you need to modify a variable in the script (just during the test phase) line 29 "templateExt" and add ",bmp" (so a CSV list of extensions).
Now when you make a new BMP file, that template.bmp will be copied to the active folder/panel first before starting the editor. In the zip on GH there are three templates included XLSX, PNG and RTF to illustrate how it works.

https://github.com/hi5/F4MiniMenu/issues/13#issuecomment-313842296
_________________
F4MiniMenu - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey) - TC Forum thread
Back to top
View user's profile Send private message Visit poster's website
hi5
Member
Member


Joined: 03 Nov 2012
Posts: 131

PostPosted: Sun Jul 16, 2017 2:16 am    Post subject: Reply with quote

Update v0.95 https://github.com/hi5/F4MiniMenu

  • Added Helper script F4TCIE (used by internal edit command for ZIP/FTP)
  • Added DocumentTemplates (shift+f4, create new files, requires use of F4TCIE)
  • Brand new fresh shiny icon Cool

_________________
F4MiniMenu - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey) - TC Forum thread
Back to top
View user's profile Send private message Visit poster's website
Ovg
Senior Member
Senior Member


Joined: 06 Jan 2014
Posts: 475

PostPosted: Sun Jul 16, 2017 6:33 am    Post subject: Reply with quote

hi5 wrote:


Thank you! Looks very nice Very Happy Mr. Green
_________________
It's impossible to lead us astray for we don't care even to choose the way.
#259941, TC 9.10β1 x64, Windows 7 SP1 x64
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> Plugins and addons: devel.+support (English) All times are GMT - 6 Hours
Goto page Previous  1, 2, 3, 4, 5
Page 5 of 5

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Impressum: This site is maintained by Ghisler Software GmbH

Using phpBB © 2001-2005 phpBB Group