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

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

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

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

jonathanchu opened this issue Feb 4, 2016 · 3 comments

Comments

@jonathanchu
Copy link

@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
Copy link
Owner

@abo-abo abo-abo commented Feb 4, 2016

Thanks, I forgot why I deactivated the region there.

@abo-abo
Copy link
Owner

@abo-abo 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
Copy link
Author

@jonathanchu 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.