-
-
Notifications
You must be signed in to change notification settings - Fork 576
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
Feature Request: let preview command highlight line #1489
Comments
Why don't you unset
FYI, unlike tagpreview.sh, preview.sh feeds the entire file to fzf, properly setting the scroll offset using Line 866 in 1dcdb21
(Used in |
I have bat installed, and that's a good default, but I prefer to use my own which uses vim so I get a consistent preview. I will use $CENTER to highlight the line, but the the AWK code would still reverse it. So far I've modified preview.sh, to replace $REVERSE with a simple ">>" tag, but I'd prefer not to modify it. Is the pane size set somewhere? If the line to be shown is at the top of the file, not rendering 2000 lines but just the necessary lines is faster. I'm considering adding a cache the preview are not re-rendered at all. I don't see any bindings to scroll the preview window in the documentation, did I miss it? |
Using your mouse. By scrolling over the area or dragging the area. |
man fzf
)I've set FZF_PREVIEW_COMMAND, which is used in fzf.vim/bin/tagpreview.sh.
tagpreview.sh highlights a line by reversing it which has the unfortunate effect of making it look like kitchy Christmas tree.
Fzf --preview gets more information, the line, the size of the window, ... Those could be used in the external viewer highlight the line and the match. In my case it would also allow the preview command to render just the part needed in the preview (since there's no possibility to scroll in the preview window, right?)
The text was updated successfully, but these errors were encountered: