Open paul-axe opened 8 years ago
I wanted to implement key chains a long time ago but faced with some difficulties (lack of deep X Window knowledge). I'll give it a try on these weekends. Thank you for reminder)
I have this part of code, which implements key chains, in my config now. Maybe i'll will help.
@wm.on_key("Alt+o")
def prefix():
def handler(is_press, state, code):
if is_press:
if wm.keycode("p") == code:
wm.spawn(TERMINAL)
else:
wm.ungrab_keyboard()
wm.grab_keyboard(handler)
At this level, yes, it can be implemented. Ideally I want some sort of OSD to show current chain context. May be showing it in notification area will be enough.
Hi. It would be great to support Emacs-like keybinding like "Alt+o p" in orcsome. In your orcsome config file i see this kind of binding, and there is something similar in projects source code, but it seems like not working yet.