Format Menu

Here you can discuss about your favorite plug-in.
Volodya
Posts: 268
Joined: Thu 31 Mar, 2005 19:41
Has thanked: 30 times

Format Menu

Post by Volodya »

Thanks for nice plugin.
Why it doesn't work with Far 1.75? Minimum version required 1.80. Is it critical for you(plugin)?
twodev
Posts: 56
Joined: Mon 23 Feb, 2009 00:36

Re: Format Dependent Menu

Post by twodev »

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...
Last edited by twodev on Sun 01 Mar, 2009 00:12, edited 2 times in total.
far2 plugins: format menu (discuss) | editor tools (discuss); far2 tools: lngtool
MaxU
Posts: 106
Joined: Tue 31 May, 2005 14:14
Been thanked: 1 time

Re: Format Dependent Menu

Post by MaxU »

it looks great!
thanks a lot!

i like its flexibility
AleXH
Posts: 1000
Joined: Sun 12 Apr, 2009 05:21
Been thanked: 1 time

Re: Format Dependent Menu

Post by AleXH »

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"
Last edited by AleXH on Sat 02 May, 2009 06:47, edited 3 times in total.
Maximus5
Posts: 3295
Joined: Sun 11 Nov, 2007 02:03
Been thanked: 10 times
Contact:

Re: Format Dependent Menu

Post by Maximus5 »

AleXH wrote:Have idea:
1. Change format from [*.xxx] to extention only [xxx], without "*.".
Bad idea...
It's make impossible to handle files like that:

Code: Select all

* -408ms.mpa
* -384ms.mpa
* -336ms.mpa
and so on...
Kildor
Posts: 1515
Joined: Wed 16 Mar, 2005 06:26
Location: Новосибирск
Been thanked: 1 time
Contact:

Re: Format Dependent Menu

Post by Kildor »

1. Change format from [*.xxx] to extention only [xxx], without "*.".
very bad idea.
Ты мне не выкай!
«ФарФорум не для пользователей!»
Upd:
P.S. Я просто поддерживаю беседу.» © Народ.

xmpp:kildor@jabber.ru
ganzzz
Posts: 15
Joined: Sat 02 May, 2009 16:13

Re: Format Dependent Menu

Post by ganzzz »

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...
twodev
Posts: 56
Joined: Mon 23 Feb, 2009 00:36

Re: Format Dependent Menu

Post by twodev »

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...
That's a nice idea. Will see what I can do next...
far2 plugins: format menu (discuss) | editor tools (discuss); far2 tools: lngtool
twodev
Posts: 56
Joined: Mon 23 Feb, 2009 00:36

Re: Format Dependent Menu

Post by twodev »

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" "!.!"
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.

Go here for updates: http://forum.farmanager.com/viewtopic.p ... 839#p59185
far2 plugins: format menu (discuss) | editor tools (discuss); far2 tools: lngtool
User avatar
sToLp
Posts: 938
Joined: Thu 23 Jul, 2009 10:16
Has thanked: 114 times
Been thanked: 12 times

Re: Format Dependent Menu

Post by sToLp »

twodev
I thank you for very convenient plug-in!
I hope that your useful plug-in will be adapted under Far3.
I wish your in it of good luck!
User avatar
lazyeugene
Posts: 243
Joined: Sat 29 Aug, 2009 17:14
Has thanked: 1 time

Re: Format Dependent Menu

Post by lazyeugene »

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?
twodev
Posts: 56
Joined: Mon 23 Feb, 2009 00:36

Re: Format Dependent Menu

Post by twodev »

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?
far2 plugins: format menu (discuss) | editor tools (discuss); far2 tools: lngtool
User avatar
lazyeugene
Posts: 243
Joined: Sat 29 Aug, 2009 17:14
Has thanked: 1 time

Re: Format Dependent Menu

Post by lazyeugene »

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?
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.
Cloning is good but far offers more shortcodes (especially those for selection lists, passive panel items and parameter requests).
User avatar
lazyeugene
Posts: 243
Joined: Sat 29 Aug, 2009 17:14
Has thanked: 1 time

Re: Format Dependent Menu

Post by lazyeugene »

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):

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")
or, for example a joining audio files:

Code: Select all

sox.exe -S !& "!?Filename?!.wav"
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.
twodev
Posts: 56
Joined: Mon 23 Feb, 2009 00:36

Re: Format Dependent Menu

Post by twodev »

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.
far2 plugins: format menu (discuss) | editor tools (discuss); far2 tools: lngtool
Post Reply

Return to “General Plug-In Discussions”