Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature request] Emacs-like keybindings #4

Open
paul-axe opened this issue Oct 26, 2015 · 3 comments
Open

[feature request] Emacs-like keybindings #4

paul-axe opened this issue Oct 26, 2015 · 3 comments

Comments

@paul-axe
Copy link
Contributor

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.

@baverman
Copy link
Owner

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)

@paul-axe
Copy link
Contributor Author

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)

@baverman
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants