-
Notifications
You must be signed in to change notification settings - Fork 112
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
Ways to bound C-g to set_mark(False) only #67
Comments
In your config, before where you define the keymap containing
Now in the keymap define
It seems to work as your first request (although like M-w, the selection is still visible until you subsequently move). (edit: btw, I pretty much just copy-pasta'd that from the functions in transform.py) |
Brilliant!! I changed your code to return This is also related to another thing that I wish I could change. In Emacs when |
What is this "selection" or "point" that you're referring to? All we know is what keys you hit - we know nothing about what you're editing, what is selected, where your cursor is or isn't at... so it's impossible to make decision based on such info. |
First of all, let me express my absolute gratitude for this package. I have been looking for something like this for the longest time and your package is absolutely amazing.
I am using the default configuration and I noticed that
C-g
is bound toesc
followed byset_mark(False)
. This works as intended in most cases. However, in some cases this has undesirable effects. For example, in Firefox when editing the location bar if I select some text usingC-SPC
then pressC-g
to unset the mark,esc
is pressed which cancels all editing.I would like to bound
C-g
toset_mark(False)
if a mark is set andesc
otherwise. Or, if not possible, maybe boundC-g
toset_mark(False)
andC-g C-g
toesc
. Would that be doable?The text was updated successfully, but these errors were encountered: