Да так логичнее выгдядит.
Ещё бы заменить key="Read" на event="Load" ...
It looks more appropriate.
One suggestion to change key="Read" to event="Load" ...
Last edited by 2useven10 on Tue 05 Feb, 2013 20:20, edited 1 time in total.
2useven10 wrote:It looks more appropriate.
One suggestion to change key="Read" to event="Load" ...
"key" versus "event" -- didn't want to add new fields.
"read" versus "load" -- the terminology used in plugins API was chosen.
But these issues are still open to discussion.
Thank you very much. It's working fine. (Molodci, sposibo.)
I want write yet:
I starting Far3 from another task so:
"\Far3\Far.exe /e blabla.4gl"
Therefore solutions with:
area="Editor"; key="Read";
is OK, but solutions with:
area="Shell"; key="F4";
is not usable.
Thank you once more.
Thank you, Shmuel. I have next 3 questions.
I would like in this macro:
- add *.4gl and *.err files
- change setting:
F9 -> Options -> Editor settings -> Tab size=3
I would like run command "chcp 850" with start FarManager.
Event {
description="Set 28592 codepage"; filemask="*.4gl,*.err";
group="EditorEvent"; name="Read";
action=function()
far.MacroPost([[
local cp, favorite = 28592, false
Keys("ShiftAltF9 Down Down Down Down 3 Enter")
Keys("ShiftF8")
if Object.ItemCount < 20 then Keys("CtrlH"); favorite = true end
if Menu.Select(cp,1) > 0 then Keys("Enter") else Keys("Esc") end
if favorite then Keys("ShiftF8 CtrlH Esc") end
]],"KMFLAGS_DISABLEOUTPUT")
end;
}
Far3c wrote:Thank you, Shmuel. I have next 3 questions.
I would like in this macro:
- add *.4gl and *.err files
- change setting:
F9 -> Options -> Editor settings -> Tab size=3
I would like run command "chcp 850" with start FarManager.