-
-
Notifications
You must be signed in to change notification settings - Fork 338
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
Is it possible to make counsel-yank-pop act similarly to evil-insert? #1761
Comments
Yes, but only when called without C-u (
Quoth
Given the above documentation and that vanilla
No, browsing the source of
Yes, this should be possible and should be done, given the aforementioned inconsistency with |
Perhaps the outcome of this issue can be reported in reply to the following related question on Reddit, if there are any Reddit users here inclined to do so (I'm not a user): https://www.reddit.com/r/emacs/comments/8n3shq/how_to_modify_counselyankpop_evilpasteafter_and/ |
Oh, apparently this has already been brought up in #884, whose resolution I disagree with, given the above. |
@abo-abo |
(counsel-yank-pop-action, counsel-yank-pop): Do not bother setting ivy-completion-beg and ivy-completion-end. They do not seem to be used anywhere, and their relative ordering might be reversed following C-u C-y. Re: abo-abo#1761
Thanks. |
Thanks for the quick response, We're talking about different things though, what I wanted is the same as in #884 to insert the text after point, what you we're talking about and fixed was where the point is after yanking. So my issue isn't solved as the solution for #884 does not work anymore. Would it be possible to add a boolean variable like I'll look at this myself if I get some time later on but I'm currently still very unexperienced with elisp. |
Defining my own custom function wrapping
|
Emacs always inserts text before point. The difference between functions which seem to insert before and after point is where they leave point when they're done. Inserting text after point is as simple as saving the initial value of point, inserting the text, and then restoring the saved value of point. So I don't see how we're talking about different things.
The "solution" to #884 was a user-specific and now obsolete kludge, not a general solution.
#1762 added the user option
If #1762 does not address your feature request, then yes. But please provide a precise, detailed, and reproducible set of steps, along with a description of your expected vs Counsel's actual behaviour at each step, so that we can better understand what you're after.
I understand neither what |
This reminded me that I failed to explain here what #1762 was adding from a user's perspective; I'm sorry about that. |
Can confirm, am no longer using this. |
I have never used emacs without evil mode but I assume normal emacs
yank
works by inserting the yanked contents before the cursor. In evil modeevil-insert
yanks the contents after the cursor, making usingcounsel-yank-pop
feel inconsistent.Would it be possible to make
counsel-yank-pop
useevil-insert
or otherwise to change the functionality to paste the contents after the cursor? I don't mind setting these up as configurations but I'm not sure as to where to start looking into.The text was updated successfully, but these errors were encountered: