-
Notifications
You must be signed in to change notification settings - Fork 5
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
Make C-SPC SPC start a er/expand-region #3
Comments
Here's a diff that seems to work: when there is no region, set the mark and then set a temporary map with SPC bound to expand-region.
|
Awesome! I will test this as soon as I get the time! :) |
Tried this out now, much later (sorry for that). Unfortunately there seems to be a bug where if you expand the region and press C-g to abort C-SPC no longer sets the mark. If you try to set the mark with C-SPC one- or two times then it starts working again. My guess is that the temporary overlay keymap should be disabled when expand-region is aborted but isn't? |
I think this is actually an issue with From the discussion on that issue, you can disable |
One minor tweak (not related to the issue mentioned above):
We should probably use |
Ah, disabling shift-select-mode worked fine, thanks! Weird that I didn't experience this before. |
Hi!
I have a little feature request for you. I'd like to have
C-SPC SPC
(with no mark set) triggerer/expand-region
in addition to the current behaviour ofC-SPC C-SPC
with the marked region on a single line.The reason I want this is that with
er/expand-region
you enter a mode (of sorts) that lets you continually hitSPC
to enlarge the marked region. It would feel a lot more natural to just have to hitC-SPC SPC SPC SPC
to enlarge it three times instead of the currentC-SPC C-SPC SPC SPC
.The current effect of
C-SPC SPC
(with no mark) is basically just a SPACE character so this shouldn't interfere with anyone's regular work flow.What do you think?
Finally I'd like to say that it's a great package you've made. I've tried it out for a little while now and really love it, it makes the use of
expand-region
andmultiple-cursors
feel much more accessible.The text was updated successfully, but these errors were encountered: