Format Menu
Format Menu
Thanks for nice plugin.
Why it doesn't work with Far 1.75? Minimum version required 1.80. Is it critical for you(plugin)?
Why it doesn't work with Far 1.75? Minimum version required 1.80. Is it critical for you(plugin)?
Re: Format Dependent Menu
i haven't really tested it with anything below 1.80. feel free to try it out yourself. i've posted an updated version that should work with far 1.75.
Plugin updates are here: http://forum.farmanager.com/viewtopic.php?f=34&t=3839
More plugins to come...
Plugin updates are here: http://forum.farmanager.com/viewtopic.php?f=34&t=3839
More plugins to come...
Last edited by twodev on Sun 01 Mar, 2009 00:12, edited 2 times in total.
Re: Format Dependent Menu
Very nice Have idea:
1. Change format from [*.xxx] to extention only [xxx], without "*.".
2. Add support mask like [x00-x99] in section name
3. Add support mask like [x??] in section name
4. Add support mask like [x[a-g][a,b,c]] in section name
5. group commands in conf for same sections:
.............
[sln,vcproj]
Label=VC build &All
Cmd=vcbuild /time "!\!.!"
Label=VC &clean All
Cmd=vcbuild /time /clean "!\!.!"
Label=VC force link All
Cmd=vcbuild /time /forcelink "!\!.!"
Label=VC link All
Cmd=vcbuild /time /link "!\!.!"
[obj]
...........
6. Change name plugin from FormatMenu to UserMenu.
7. Configuration keep in UserMenu.mnu. Keep tradition Volkov Commander
8. Support more command for same label, like:
Label=Convert FLAC to APE
Cmd=flac -d "!.!"
Cmd=mac "!.wav" "!.ape" -c3000
Cmd=del "!.wav"
1. Change format from [*.xxx] to extention only [xxx], without "*.".
2. Add support mask like [x00-x99] in section name
3. Add support mask like [x??] in section name
4. Add support mask like [x[a-g][a,b,c]] in section name
5. group commands in conf for same sections:
.............
[sln,vcproj]
Label=VC build &All
Cmd=vcbuild /time "!\!.!"
Label=VC &clean All
Cmd=vcbuild /time /clean "!\!.!"
Label=VC force link All
Cmd=vcbuild /time /forcelink "!\!.!"
Label=VC link All
Cmd=vcbuild /time /link "!\!.!"
[obj]
...........
6. Change name plugin from FormatMenu to UserMenu.
7. Configuration keep in UserMenu.mnu. Keep tradition Volkov Commander
8. Support more command for same label, like:
Label=Convert FLAC to APE
Cmd=flac -d "!.!"
Cmd=mac "!.wav" "!.ape" -c3000
Cmd=del "!.wav"
Last edited by AleXH on Sat 02 May, 2009 06:47, edited 3 times in total.
Re: Format Dependent Menu
Bad idea...AleXH wrote:Have idea:
1. Change format from [*.xxx] to extention only [xxx], without "*.".
It's make impossible to handle files like that:
Code: Select all
* -408ms.mpa
* -384ms.mpa
* -336ms.mpa
and so on...
-
- Posts: 1515
- Joined: Wed 16 Mar, 2005 06:26
- Location: Новосибирск
- Been thanked: 1 time
- Contact:
Re: Format Dependent Menu
very bad idea.1. Change format from [*.xxx] to extention only [xxx], without "*.".
Ты мне не выкай!
«ФарФорум не для пользователей!»
Upd:
P.S. Я просто поддерживаю беседу.» © Народ.
xmpp:kildor@jabber.ru
«ФарФорум не для пользователей!»
Upd:
P.S. Я просто поддерживаю беседу.» © Народ.
xmpp:kildor@jabber.ru
Re: Format Dependent Menu
I wish to offer one more parametre, it will include switch off this section.
For example this section will be displayed if is established winamp, it it is necessary automatically to disconnect inaccessible operations.
[*.mp3]
NeedFile = "c:\program files\winamp\winamp.exe"
Cmd = "c:\program files\winamp\winamp.exe" "!.!"
Also it is possible to expand this idea:
NeedReg=HKLM\Software\... ; registri key
NeedVar = % ANTIWORD_PATH OF % ; need dos %var %
NeedErr=testos.com ; run testos.com and get it errorlevel
I hope to see something similar in hext versions...
For example this section will be displayed if is established winamp, it it is necessary automatically to disconnect inaccessible operations.
[*.mp3]
NeedFile = "c:\program files\winamp\winamp.exe"
Cmd = "c:\program files\winamp\winamp.exe" "!.!"
Also it is possible to expand this idea:
NeedReg=HKLM\Software\... ; registri key
NeedVar = % ANTIWORD_PATH OF % ; need dos %var %
NeedErr=testos.com ; run testos.com and get it errorlevel
I hope to see something similar in hext versions...
Re: Format Dependent Menu
That's a nice idea. Will see what I can do next...ganzzz wrote:I wish to offer one more parametre, it will include switch off this section.
For example this section will be displayed if is established winamp, it it is necessary automatically to disconnect inaccessible operations.
[*.mp3]
NeedFile = "c:\program files\winamp\winamp.exe"
Cmd = "c:\program files\winamp\winamp.exe" "!.!"
Also it is possible to expand this idea:
NeedReg=HKLM\Software\... ; registri key
NeedVar = % ANTIWORD_PATH OF % ; need dos %var %
NeedErr=testos.com ; run testos.com and get it errorlevel
I hope to see something similar in hext versions...
Re: Format Dependent Menu
The setting "NeedFile" is now part of Format Menu v0.3b. You can even use multiple "NeedFile" settings and do AND or OR matching. Menu items can now also be grayed out.ganzzz wrote:For example this section will be displayed if is established winamp, it it is necessary automatically to disconnect inaccessible operations.
[*.mp3]
NeedFile = "c:\program files\winamp\winamp.exe"
Cmd = "c:\program files\winamp\winamp.exe" "!.!"
Go here for updates: http://forum.farmanager.com/viewtopic.p ... 839#p59185
- lazyeugene
- Posts: 243
- Joined: Sat 29 Aug, 2009 17:14
- Has thanked: 1 time
Re: Format Dependent Menu
It would be a great idea to provide support for all Far shortcodes such as !@! and all others (for selection, passive panel items and !?<title>?<init>! requests). Support for selection will be great (showing only items, common for all selected files).
And will you compile a generic far2 plugin?
And will you compile a generic far2 plugin?
Re: Format Dependent Menu
Thanks for the replies!
@stolp: I intend to port the plugin to Far3 as soon as there is an official release.
@lazyeugene: With Far2 I did what I could, haven't found any better solution than cloning the concept of the short codes, and some of the most important ones. And what do you mean, generic Far2 plugin?
@stolp: I intend to port the plugin to Far3 as soon as there is an official release.
@lazyeugene: With Far2 I did what I could, haven't found any better solution than cloning the concept of the short codes, and some of the most important ones. And what do you mean, generic Far2 plugin?
- lazyeugene
- Posts: 243
- Joined: Sat 29 Aug, 2009 17:14
- Has thanked: 1 time
Re: Format Dependent Menu
I meant a unicode plugin (it's ansi for now) using far2 API (functions must be named OpenPluginW, GetPluginInfoW, SetStartupInfoW, ConfigureW and so on) and working with loooooooo-o-o-o-o-o-o-o-ong path's (more than _MAX_PATH, using \\?\ prefix and unicode versions of windows api functions), as far does.twodev wrote:Thanks for the replies!
@lazyeugene: With Far2 I did what I could, haven't found any better solution than cloning the concept of the short codes, and some of the most important ones. And what do you mean, generic Far2 plugin?
Cloning is good but far offers more shortcodes (especially those for selection lists, passive panel items and parameter requests).
- lazyeugene
- Posts: 243
- Joined: Sat 29 Aug, 2009 17:14
- Has thanked: 1 time
Re: Format Dependent Menu
PS about selection support. Now, for example, i'm using for many cases F2 menu with commands to process many files. For example, to recode a set of mp3-files (audiobook):
or, for example a joining audio files:
As you can see, a support for some shortcodes (!@!, !& and !?Quality:?6!) I need missing in plugin for now. So, it would be nice to move this commands to extension-dependend menu, but it can't be done. This is just an example of selection processing.
Code: Select all
md 1 & for /f "delims=" %a in (!@!) DO (lame -a --vbr-new -V !?Quality:?6! --priority 0 --strictly-enforce-ISO "%~fa" "%~dpa1\%~na.mp3")
Code: Select all
sox.exe -S !& "!?Filename?!.wav"
Re: Format Dependent Menu
Unicode support and selection processing are the top-most items on my todo list. I especially find multi-file processing very important. That's one feature I'll be implementing shortly. Updates can always be found at http://www.twodev.at
Thing is, Unicode support currently requires a complete plugin rewrite. So I originally postponed that one for FAR3. I always try to keep things updated, but it's progressing slowly at the moment.
That being said, I will keep updating Format Menu and Editor Tools for FAR. I'm using them myself all the time.
Thing is, Unicode support currently requires a complete plugin rewrite. So I originally postponed that one for FAR3. I always try to keep things updated, but it's progressing slowly at the moment.
That being said, I will keep updating Format Menu and Editor Tools for FAR. I'm using them myself all the time.