You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, default previewer (typically telescope.previewers.vim_buffer_vimgrep) positions the selected line at the center of preview window.
This behavior is good for pickers like telescope's builtin live_grep, but I prefer selected line (heading line) is positioned at the top of preview window for the heading picker, because all contents relevant to the selected heading are after (and not before) the heading line.
So, I implemented custom previewer for this purpose.
This configuration can be controlled completely in user side, but I don't think all users of this plugin want to implement custom previewer. So I think it is nice to use this heading previewer as default if you would like, or at least provide this previewer as the part of this plugin.
If you like this idea, I will happily submit PR.
Thank you!
The text was updated successfully, but these errors were encountered:
@sankantsu Thanks for your great explanation.
Generally, I like the idea. But telescope-heading is a telescope picker not previewer yet. Is it better if we made it a standalone previewer extension or even push into telescope core?
I think it is convinient if the telescope.nvims builtin vim_buffer_vimgrep previewer itself supports this type of customization. But currently it seems that telescope.nvim team generally do not want addition or feature enhancement of builtin picker/previewers to avoid extra maintainance costs. So I think providing previewer as an extension would be better. nvim-telescope/telescope.nvim#1228
I implemented this previewer basically only for this telescope-heading.nvim picker. So it seems natural to me that the specialized previewer would be bundled with the picker.
But if you like separate repository for the previewer, it also makes sense.
Hello, thanks for an awesome plugin!
Currently, default previewer (typically
telescope.previewers.vim_buffer_vimgrep
) positions the selected line at the center of preview window.This behavior is good for pickers like telescope's builtin
live_grep
, but I prefer selected line (heading line) is positioned at the top of preview window for theheading
picker, because all contents relevant to the selected heading are after (and not before) the heading line.So, I implemented custom previewer for this purpose.
And it shows preview like this.
This configuration can be controlled completely in user side, but I don't think all users of this plugin want to implement custom previewer. So I think it is nice to use this heading previewer as default if you would like, or at least provide this previewer as the part of this plugin.
If you like this idea, I will happily submit PR.
Thank you!
The text was updated successfully, but these errors were encountered: