-
Notifications
You must be signed in to change notification settings - Fork 3
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
Preview feature #3
Comments
See also this similar project. |
I can definitely take a look at how to implement it, I think this might be quite useful. My only "problem" is that calling |
If your preview function is slow, you can configure |
Magit lets you open the diffs in another window, at least just using regular log - I don't know about log grep; I've noticed it's a bit slow. If you can make it work, that would be great. I think consult's preview-from-the-minibuffer feature is a much better interface than opening buffers one at a time in adjacent buffers. And each package has its own way of doing things. Using consult brings consistency. |
The following seems to work for preview: (defun consult-git-log-grep (&optional initial)
...
:state #'consult-git-log-grep-preview
...)
(defun consult-git-log-grep-preview (action cand)
(and cand
(eq action 'preview)
(funcall consult-git-log-grep-open-function cand))) It is slow, but I'd rather have it be slow than not at all. I have arrow keys bound for previewing, and C-n/C-p for when I don't want preview. |
Also, it would be nice if it showed everything the way
|
Is it possible to add a preview feature the way consult-ripgrep does when you step through the results?
The text was updated successfully, but these errors were encountered: