rmagatti/goto-preview

Show filepath as the preview title?

lougreenwood opened this issue ยท 5 comments

Really nice addon! It's helping me on my transition away from VSCode.

I wonder, did you consider showing the path to the file in the preview window "title" area?

Thanks again! ๐Ÿ™

Hi, I'm glad you're enjoying it!

So, what exactly do you mean by the "window title area"?
In my workflow if I need to know the filename of the buffer currently being previewed I just hit CTRL-G and that prints the current file name in my statusline.

Sorry for the delay - I mean something like how Telescope shows a window title for it's views.

Screenshot 43

I see. This is technically possible, though maybe not how you'd expect. A floating window doesn't have a "title" property or anything like that afaik, telescope just draws its borders like that.

goto-preview would have to draw its borders differently per window, which it doesn't currently support but could.

I can see this being useful but there are also some annoyances like handling "long paths" and how to show that, one could maybe use shorten path to make this work I suppose.

Hello,

Any update to this issue? It would be great help for seeing files names on those references, that with such thing for example usage of searching through telescope references is enabled and other stuff also. Thank you!

It should already be the default, guess I forgot to close this issue.
The readme also has information on customizing where the title goes if that's something you want.

Screenshot 2023-04-14 at 2 04 16 PM