View previous topic :: View next topic |
Author |
Message |
hi5 Member

Joined: 03 Nov 2012 Posts: 155
|
Posted: Fri Jun 30, 2017 12:35 pm Post subject: |
|
|
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 |
|
 |
Ovg Power Member


Joined: 06 Jan 2014 Posts: 508 Location: MOW
|
Posted: Sun Jul 02, 2017 10:24 am Post subject: |
|
|
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.12 x64, Windows 7 SP1 x64 |
|
Back to top |
|
 |
hi5 Member

Joined: 03 Nov 2012 Posts: 155
|
Posted: Sun Jul 02, 2017 12:43 pm Post subject: |
|
|
@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
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 |
|
 |
Ovg Power Member


Joined: 06 Jan 2014 Posts: 508 Location: MOW
|
Posted: Sun Jul 02, 2017 1:21 pm Post subject: |
|
|
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.12 x64, Windows 7 SP1 x64 |
|
Back to top |
|
 |
hi5 Member

Joined: 03 Nov 2012 Posts: 155
|
Posted: Mon Jul 03, 2017 10:09 am Post subject: |
|
|
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 |
|
 |
Ovg Power Member


Joined: 06 Jan 2014 Posts: 508 Location: MOW
|
Posted: Mon Jul 03, 2017 10:21 am Post subject: |
|
|
2hi5
Many Thanks! _________________ It's impossible to lead us astray for we don't care even to choose the way.
#259941, TC 9.12 x64, Windows 7 SP1 x64 |
|
Back to top |
|
 |
hi5 Member

Joined: 03 Nov 2012 Posts: 155
|
Posted: Sat Jul 08, 2017 2:17 am Post subject: |
|
|
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 |
|
 |
hi5 Member

Joined: 03 Nov 2012 Posts: 155
|
|
Back to top |
|
 |
Ovg Power Member


Joined: 06 Jan 2014 Posts: 508 Location: MOW
|
Posted: Sun Jul 16, 2017 6:33 am Post subject: |
|
|
Thank you! Looks very nice  _________________ It's impossible to lead us astray for we don't care even to choose the way.
#259941, TC 9.12 x64, Windows 7 SP1 x64 |
|
Back to top |
|
 |
hi5 Member

Joined: 03 Nov 2012 Posts: 155
|
|
Back to top |
|
 |
hi5 Member

Joined: 03 Nov 2012 Posts: 155
|
Posted: Tue Jan 16, 2018 1:01 pm Post subject: |
|
|
I'm also gathering suggestions which I may or may not add at some point, you can see them on GH here https://github.com/hi5/F4MiniMenu/issues - these include:
- Statistics
- Filtered menu
- Additional condition to open file in an another editor (file size, date, ...)
_________________ 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 |
|
 |
|