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

Change motion keys according to xah fly keys #33

Open
thorstengrothe opened this issue Sep 28, 2017 · 2 comments
Open

Change motion keys according to xah fly keys #33

thorstengrothe opened this issue Sep 28, 2017 · 2 comments

Comments

@thorstengrothe
Copy link

I like the key sheme of xah fly keys very much. In short:

j = left
l = right
i = above
k= below

worf works with vim like key sheme. My goal is one key sheme for all my work, so I tried to change some keys in worf mode:

(use-package worf
  :ensure t
  :init
  (add-hook 'org-mode-hook #'worf-mode)

  :bind
  (:map worf-mode-map
        ;; Navigation mode
        ("k" . wspecial-worf-down)
        ("i" . wspecial-worf-up)
        ("c" . wspecial-worf-tab)
        ("C" . wspecial-worf-shifttab)
        ("ö" . wspecial-worf-right)
        ("<" . wspecial-worf-change-mode)

        ;; Delete Mode
        :map worf-delete-mode-map
        ("k" . wspecial-worf-cut-subtree)
        ("i" . wspecial-worf-delete-k)
        ))

But this makes problems for example when I press a to add a new heading below the current one the structure of my org file get's corrupted. Without my personal keys it does work fine and of course c for change mode is not working anymore. Is there any way to change keys to xah fly keys sheme?

@spiderbit
Copy link

nice just looking into something like that :D

But would you not have to somehow disable some xah-fly-keys bindings in org-mode to not collide with that?

Also I use dvorak which makes things even more complicated :)

A good start would be to have a visual keymap or something I can't even really test it if it would be useful because of the strange keys no help system. Press as example c can't press ? afterwards to get what key are availible next etc.

To be honest I am more interested in the ideas behind the keybindings than the implementation. Org original keybindings are a mess and hard to configure.

@spiderbit
Copy link

Wouldn't it be more easy to fork it and replace all the keys with more exwm-like ideally with some sort of vector or something with keys specific to dvorak / qwerty... I am just not grasping fully what it does and does not from reading the readme or look a bit over the code.

Some listing of features would be nice.

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