On 14:05 Mon 27 Mar , Sylvain Abélard wrote:
>
> This should help you (cfg_bindings.lua) :
> bdoc("Maximize the frame horizontally/vertically."),
> kpress(MOD1.."H", "WFrame.maximize_horiz(_)"),
> kpress(MOD1.."V", "WFrame.maximize_vert(_)"),
> These are my bindings, I don't remember if they appear in standard bindings.
I am so stupid. I already saw it some time ago, but i didn't came to
use it because it didn't work with one keypress.Too bad i forgot about
it.
Good hint Sylvain!
That brought me to the idea to use the two functions in one new
own function.
But i doesn't work for me. Nothing happens, because i am
to bad for lua...
Here is how i tried to merge them in cfg_bindings.lua:
local function mymaximize()
WFrame.maximize_horiz(_)
WFrame.maximize_vert(_)
end
...
...
...
kpress(MOD1.."g", "mymaximize()"),
I also tried iconcore.exec(WFrame.maximize_horiz(_))
above, but also nothing happens. No error. Nothing.
Is this impossible?