On Tuesday 18 May 2004 00:40, Tom Payne wrote:
> If you use VIM-like bindings then please send me your
> configuration files so we can move towards some standard set of bindings
> that might eventually be distributed with Ion.
Thanks for the effort, for an excessive vim user, it's really a must to have
vim bindings in Ion.
I use very similar keys as yours, so no need to post my whole config, but this
is a usefull addition:
ionframe_bindings{
-- split a program from a frameset
submap(DEFAULT_MOD .. "S"){
-- since split to the right is done most often, use a 'double-S'
shortcut
for quick activation
kpress("AnyModifier+S",
function(frame) frame:split("right") end),
kpress("AnyModifier+H",
function(frame) frame:split("left") end),
kpress("AnyModifier+J",
function(frame) frame:split("bottom") end),
kpress("AnyModifier+K",
function(frame) frame:split("top") end),
kpress("AnyModifier+L",
function(frame) frame:split("right") end),
kpress("AnyModifier+T",
make_mplex_clientwin_fn(WClientWin.toggle_transients_pos)),
kpress("AnyModifier+R", WIonFrame.relocate_and_close),
},
-- and for mouse users of Ion
-- wheel scrolling over "title bars" changes workspaces --
mpress("Button4", function(frame) frame:screen_of():switch_next() end),
mpress("Button5", function(frame) frame:screen_of():switch_prev() end),
}
-- and finally my most important addition, when I sometimes use the mouse in
Ion:
mplex_bindings{
-- close window
mclick("Button2", WRegion.close_sub_or_self),
}
-- however youneed to comment out these two lines in ionframe_bindings()
first:
mclick("Button2", WGenFrame.p_switch_tab, "tab"),
mdrag("Button2", WGenFrame.p_tabdrag, "tab"),
So I don't know if Tuomo (or you) want this behavior to close the current
region by middle clicking on the 'title bar'.
--
Martin