-
I have been trying to disable consult buffer preview for remote buffers, but I am unable to get the solution in #224 and the wiki to work. I'm tracing through the code in the solution and it looks to me that it sets
But even when I change the
I would expect that the above would disable previews for all buffers, but it doesn't. Simplifying it further, the following code also fails to disable previews:
I don't know enough about the consult internals to know why these don't work. I went looking for the definition of |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
If I understand the docs for I think that is what I am doing below:
However, when I run Note that at this point, this is nothing to do with remote buffers. I am just trying to see if I understand how I'm supposed to write the state function. Have I got the right idea? That calling |
Beta Was this translation helpful? Give feedback.
-
@mgraham Disabling buffer preview for certain buffers has been requested often. Would you like to prepare a patch which adds a variable |
Beta Was this translation helpful? Give feedback.
-
@minad - Sure - I can take a stab at that! I will have to spend some time grokking the consult internals first. It looks like |
Beta Was this translation helpful? Give feedback.
For now I went with a simple solution and added
consult-preview-excluded-buffers
based onbuffer-match-p
. See e1621f4.