-
-
Notifications
You must be signed in to change notification settings - Fork 339
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
ivy-resume restarts at the beginning of counsel-ag and counsel-rg #1095
Comments
+1. It seems this is due to |
This is indeed due to I'll think about making some improvement here, but it's not straightforward. |
Not sure it's because of |
@neojski |
Any possibility this issue gets resurrected? |
@hisnawi The issue isn't closed. Anyone is free to contribute. Just understand that this isn't an easy fix, at least as far as I can see. I estimate this issue at 1-2 hours of uninterrupted time and low priority; so it won't get done any time soon unless someone else steps up with a contribution. |
Thanks for the response, I am a beginner when it comes to lisp otherwise I would have given it a go. But what I noticed is that helm already has this feature and it is very similar to ivy in terms of showing results dynamically. Wouldn't it be possible to leverage some of their code to integrate it in ivy? It maybe a completely different issue in ivy I am just speculating. |
I just tried with
Expected: |
@neojski Thanks, I can reproduce it now. |
@abo-abo, you expected this to work. What part of ivy code was supposed to be responsible for this? If you pointed me to the right place in the source code I could try to fix it. |
@neojski You can look at the source code of
So there are two things to check:
|
In
but
which seems to be there since commit 84e20a3 . So it seems to be on purpose that preselect is not set for |
I can't tell from the message as well. Maybe this has something to do with TRAMP. I think I'll just revert it to simplify the code. |
I just tested and it works if Neither does it work if I navigate to another directory before exiting with Sorry that I can't investigate more at the moment. |
Indeed I was able to make it work (I think) by modifying |
I thin this issue is not actually fixed for counsel-ag or counsel-rg. |
I also experience this issue with counsel-ag. |
Thanks a lot for working on this @abo-abo So it seems like For comparison |
@peterwvj I don't understand what "freeze" means. Please open a new issue with a step-by-step scenario. |
To clarify, So if you perform a search (by calling Does this make sense? So my question is: would it be possible to easily configure |
Yes. If you do C-c C-o ( |
Great, this is exactly what I need! Thanks a lot for explaining this! |
If `dynamic-collection' is set, Ivy will wait until the first chunk of candidates has been received before selecting the preselected candidate. Fixes abo-abo#1095 Fixes abo-abo#2112
I type
counsel-ag
, type some characters then scroll down a few lines and pick a selection. When I invokeivy-resume
I get the same character search properly but the selected line starts back at the beginning of the selection list instead of resuming from my last selection.The text was updated successfully, but these errors were encountered: