-
-
Notifications
You must be signed in to change notification settings - Fork 116
A bit off-topic: Where to ask questions about building on consult? #780
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
Comments
Feel free to ask concrete questions here, in this issue. But generally there is no alternative than reading the source of this package and of some of the other |
I was looking for a way to add preview to my config (I'm using It's basically a source presenting certain lines in the current buffer so I was trying to work out how My current solution is here. Basically the steps are
There are mainly two things that are a little unclear
|
See Maybe this source is helpful https://github.com/minad/consult/wiki#point-register-source, since it also includes jumping? |
I'm not sure I follow how that works, as far as I can tell
Is the code in the wiki really up-to-date with what's in consult now? |
The function is called with two arguments.
Not everything, but this part should be. |
Ah, yes... me and counting. |
All right, so the function that sort of executes the preview is the lambda that's returned by And if I'm reading it, and |
This seems to work at least:
and it looks slightly better visually than my earlier solution. |
I don't recall exactly, but it should be a position (integer or marker). For |
This solution looks correct. |
What would such a list look like? |
Just saw your blog post https://magnus.therning.org/2023-03-30-more-on-tree-sitter-and-consult.html :)
See |
I'm trying to write my own
consult-foo
function and while getting something that works was easy, I'm struggling with making it nice. Given that building on to of consult is quite niche I'm not having much luck with finding answers to my questions. I'm also not very deep into the emacs community, so I'm unsure where I should turn.Do you have any tips on where to turn to get answers and pointers on how to build on consult?
The text was updated successfully, but these errors were encountered: