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

Can `counsel-M-x` keep region selected? #377

Closed
jonathanchu opened this Issue Feb 4, 2016 · 3 comments

Comments

Projects
None yet
2 participants
@jonathanchu

jonathanchu commented Feb 4, 2016

Is it possible when invoking counsel-M-x to keep the region selected? For example, I sometimes mark an active region of text and then would invoke counsel-M-x to run some other command, like github-browse-file-blame, which takes input of the marked region as an argument. I'm not sure if this is possible with counsel to keep the region selected when it opens the m-x prompt.

I recently switched over to counsel-M-x from smex, which does keep the marked region active. I couldn't figure out how this was done though, so thought I'd ask if this was possible at all in counsel.

Thanks for your time and all your great work on swiper, counsel, and ivy! 😺

@abo-abo abo-abo closed this in c27cde2 Feb 4, 2016

@abo-abo

This comment has been minimized.

Show comment
Hide comment
@abo-abo

abo-abo Feb 4, 2016

Owner

Thanks, I forgot why I deactivated the region there.

Owner

abo-abo commented Feb 4, 2016

Thanks, I forgot why I deactivated the region there.

@abo-abo

This comment has been minimized.

Show comment
Hide comment
@abo-abo

abo-abo Feb 4, 2016

Owner

Also the active region can be yanked into the ivy minibuffer with M-n, in case you didn't know yet.

Owner

abo-abo commented Feb 4, 2016

Also the active region can be yanked into the ivy minibuffer with M-n, in case you didn't know yet.

@jonathanchu

This comment has been minimized.

Show comment
Hide comment
@jonathanchu

jonathanchu Feb 4, 2016

Oh awesome, I was looking in the wrong place :) Thanks so much for the quick fix and great work on this!

And hat tip for letting me know that the active region can be yanked with M-n, very useful!

jonathanchu commented Feb 4, 2016

Oh awesome, I was looking in the wrong place :) Thanks so much for the quick fix and great work on this!

And hat tip for letting me know that the active region can be yanked with M-n, very useful!

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