FAR3: Macros for plugins converted to LUA

Here you can discuss any topic concerning Far macro commands.
Post Reply
cyberwolf
Posts: 109
Joined: Tue 24 Mar, 2009 14:39

FAR3: Macros for plugins converted to LUA

Post by cyberwolf » Wed 17 Apr, 2013 08:55

I've converted a few macros for plugins from fml/fmlua into the new lua scripting and thought I'd share them with you, maybe some other people might need them too.

Note : this are for FAR3 with LUA support (tested and working correctly on FAR 3.0.3300)

Script for ConEmu plugin


Script for Edit Find plugin


Script for File Version plugin


Script for Plugins Menu plugin


Script for More History plugin


Script for Visual Compare plugin


P.S. i hope i didn't break any copyright or offended anyone by posting these, they are simple conversions from fml/fmlua to lua.

Sorry for writing in English in the Russian forums, but i don't speak Russian and don't trust online translators. :D

"There’s no teacher who can teach anything new He can just help us to remember the things we always knew." ~ ENIGMA

User avatar
HaRT
Moderator
Posts: 8048
Joined: Tue 30 Aug, 2005 17:21
Location: Санкт-Петербург
Has thanked: 67 times
Been thanked: 100 times

Re: FAR3: Macros for plugins converted to LUA

Post by HaRT » Wed 17 Apr, 2013 10:50

Thank you for sharing these.
Can you please correct the spoiler names (3 of them are equal) and links text/target (2 of them are identical and don't point to a particular plugin).
Фар есть инструмент, а не нянька. © 2009 DrKnS

cyberwolf
Posts: 109
Joined: Tue 24 Mar, 2009 14:39

Re: FAR3: Macros for plugins converted to LUA

Post by cyberwolf » Wed 17 Apr, 2013 10:59

Thanx Hart for pointing out the errors, i didn't see them :)
Fixed the incorrect names and the URL (now they point directly to the plugin's description page).
Sorry for writing in English in the Russian forums, but i don't speak Russian and don't trust online translators. :D

"There’s no teacher who can teach anything new He can just help us to remember the things we always knew." ~ ENIGMA

cyberwolf
Posts: 109
Joined: Tue 24 Mar, 2009 14:39

Re: FAR3: Macros for plugins converted to LUA

Post by cyberwolf » Thu 18 Apr, 2013 14:12

Modified the first post, here are the changes :
- rearranged macro code to be easier to change the shortcut keys
- bugfix : VisualCompare's 2nd macro doesn't work if 2 different folders are displayed
- added macros for File Version and More History

Note : in the More History macros if you press the key while the dialog is visible it will toggle between filtering for the current folder or not to filter (show all).
For example, if you press the Alt+F8 key it will show the Command History, if you press it again while the dialog is visible then a filter containing the current folder will be applied. If you press it again (while the dialog is still visible) then the filter will be removed and all the commands will be shown.

Note2 : File Version doesn't display anything if the plugin cannot extract the file information from the file, if you test it make sure to select a DLL/EXE file.
Sorry for writing in English in the Russian forums, but i don't speak Russian and don't trust online translators. :D

"There’s no teacher who can teach anything new He can just help us to remember the things we always knew." ~ ENIGMA

User avatar
Mauro72
Posts: 210
Joined: Wed 11 Aug, 2010 00:23
Location: Rosario, Argentina
Been thanked: 9 times

FAR3: Macros for plugins converted to LUA

Post by Mauro72 » Fri 23 Jan, 2015 00:45

A little add on remaining to ConEmu Script...

-- Switch tabs visibility

Code: Select all

Macro {
  area="Shell"; key="CtrlShiftT"; condition = PlgExist_ConEmu;
  description="ConEmu: Switch tabs visibility";
  action = function() Plugin.Call(GUID_ConEmu, 3) end;
}
Last edited by HaRT on Fri 23 Jan, 2015 00:45, edited 2 times in total.
Reason: [code]

User avatar
HaRT
Moderator
Posts: 8048
Joined: Tue 30 Aug, 2005 17:21
Location: Санкт-Петербург
Has thanked: 67 times
Been thanked: 100 times

FAR3: Macros for plugins converted to LUA

Post by HaRT » Fri 23 Jan, 2015 16:01

Mauro72, please feel free to use the [code] tag. :)
Фар есть инструмент, а не нянька. © 2009 DrKnS

User avatar
Mauro72
Posts: 210
Joined: Wed 11 Aug, 2010 00:23
Location: Rosario, Argentina
Been thanked: 9 times

FAR3: Macros for plugins converted to LUA

Post by Mauro72 » Fri 23 Jan, 2015 20:26

Ooops... sorry.
Another little add on to Visual Rename plugin (excellent tool!)

Code: Select all

local VisRen_GUID = "E80B8002-EED3-4563-9C78-2E3C3246F8D3"

Macro
{
  area="Shell"; key="CtrlAltR"; description="Visual Rename";
  action = function() 
  Plugin.Call(VisRen_GUID, 0) 
  end;
}

Post Reply

Return to “Macro Commands Discussions”