Hi!
I investigated the latest svn snapshot because I wanted to find out what
the WMgmtMode does.
Tuomov, I saw your mail suggesting to implement
function mgmtmode_ionws_switch(mode, dir)
local f=mode:selected()
if f and obj_is(f:manager(), "WIonWS") then
local nxt=f:manager():nextto(f)
-- Does not warp. TODO.
if nxt then
mode:select(nxt)
end
end
end
defbindings("WMgmtMode", {
submap(MOD2.."M", {
kpress("Up", "_:select(_:selected():manager() or _)"),
kpress("Tab", "mgmtmode_ionws_switch(_, 'right')"),
kpress("C", "_:selected():rqclose()"),
}),
})
into... yeah, into what?
I put the function into ~/.ion3/cfg_mgmtmode.lua, the bindings into
cfg_bindings.lua and the lua seems to know about the function
("exec lua" functionality completes to mgmtmode_ionws_switch) but I don't
know how to use it, also the keybindings do nothing...
Regards, KOnsti
--
GPG KeyID EF62FCEF
Fingerprint: 13C9 B16B 9844 EC15 CC2E A080 1E69 3FDA EF62 FCEF