pyluyten / emacs-nu

Emacs for human beings (extended CUA mode)
http://nupad.wordpress.com/
GNU General Public License v2.0
25 stars 2 forks source link

have "nu-slots" #8

Closed pyluyten closed 10 years ago

pyluyten commented 10 years ago

key-slot & func-slot

two kind of slots: the nu-switch tells wich modifier is active for which prompt. eg, Control is active for find prompt. This means Alt will trigger a direct function like find-char, ace-jump... the slot tells which modifier to use to raise the prompt. This is a key slot. This is either global to emacs-nu or per-prompt. The global one woud be more simple to customize but would lead to bad design, so nu could have a "default" slot (control) and offer prompts not to use the default.

second kind, the power slot, tellls which is the direct function. If "Control" slot is the find prompt, then Alt will raise a direct function, which is the "find" slot. If the user wants more func he is to define-key himself.

pyluyten commented 10 years ago

Having all prompts on ALT modifier, while all direct standard keys on CTRL, makes sense. Plus, since CTRL is the delete paddle modifier, it's consistent. This approach does not necessarily needs configuration.

Technically, switch : a, r, o, p [alt p becomes eval last sexp / compile?], f, h, w Functionaly : in such case the real issue is ALT O, which is already bound to next word.

Either, don't look back and give up u/o as bacward/forward. (use jj / ll ???)

Or, give up open-prompt & merge what needs to be merged : inside window prompt, new prompt, find prompt.

pyluyten commented 10 years ago

Actually the only good idea is to have a slot to define what "other key" does.

eg, f-prompt is control, and from this prompt one should be able to assign alt-f.

pyluyten commented 10 years ago

No, even this is a wrong idea.