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

Unchorded M- translation using g #148

Closed
mattfidler opened this issue Jan 4, 2014 · 10 comments
Closed

Unchorded M- translation using g #148

mattfidler opened this issue Jan 4, 2014 · 10 comments

Comments

@mattfidler
Copy link
Member

When ergoemacs is reading a key-sequence and it is unchorded, allow g to represent meta. This idea is from

https://github.com/chrisdone/god-mode

@mattfidler
Copy link
Member Author

Possibly use G, space and repeat commands

mattfidler added a commit that referenced this issue Jan 5, 2014
@mattfidler
Copy link
Member Author

G now represents M-C-

@mattfidler
Copy link
Member Author

@xahlee Is there a good key to use for an escape sequence? That is to quote the next input

@xahlee
Copy link
Member

xahlee commented Jan 5, 2014

@mlf176f2 i never came up with a key for that. Tried a few in my own keyset, never settled on a choice. I think it's rather rarely used. (i now just use emacs default Ctrl+q)

@mattfidler
Copy link
Member Author

I'm not talking about a key, but rather an arrow or something like that.

god-mode uses space to make unchorded key combinations. See above link.

@xahlee
Copy link
Member

xahlee commented Jan 5, 2014

this might do ⎋
BROKEN CIRCLE WITH NORTHWEST ARROW
in previous version of Unicode, it's named Escape i think.
Apple's doc uses that symbol
Short Survey of Keyboard Shortcut Notations
http://xahlee.info/kbd/modernization_hotkey_notation.html

i've seen Mathematica uses 「⋮」 VERTICAL ELLIPSIS, but not sure it still uses that.

see also
http://en.wikipedia.org/wiki/Esc_key

PS i wrote a JavaScript app that one can search any unicode by name. Just type in the search box.
http://xahlee.info/comp/unicode_computing_symbols.html

@xahlee
Copy link
Member

xahlee commented Jan 5, 2014

Apple's this might do another candidate is 「␛」. I'd just go with ⎋

@mattfidler
Copy link
Member Author

Thanks Xah. The only character that displays for me is ⎋; It is likely what I will go with.

But for this I realized that I could display [Ctrl+] and then drop it for literal translations.

@mattfidler
Copy link
Member Author

Now Added space literal translation.

@mattfidler
Copy link
Member Author

@xahlee I have implemented most of this.

In addition, now you can now press backspace to delete the last key press in a key sequence.

For example, if you accidentally press C-x v and you meant C-x C-v, you can press backspace to get back to C-x.

While completing the key sequence you can also add/edit an argument by pressing <f2>. I chose <f2> because it is what you edit a formula with in excel. I also added <f2> to be isearch edit string because of this new key binding.

It sort of conflicts with <f2>being cut-line-or-region. However, the times I defined it to be edit argument or edit search string, the cut-line-or-region does not make sense. Its sort of a smart/dwim key. Can you think of another key binding?

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

No branches or pull requests

2 participants