Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show filepath as the preview title? #52

Closed
lougreenwood opened this issue Dec 17, 2021 · 5 comments
Closed

Show filepath as the preview title? #52

lougreenwood opened this issue Dec 17, 2021 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@lougreenwood
Copy link

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! 馃檹

@lougreenwood lougreenwood added the bug Something isn't working label Dec 17, 2021
@rmagatti
Copy link
Owner

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.

@lougreenwood
Copy link
Author

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

Screenshot 43

@rmagatti
Copy link
Owner

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.

@BlueDrag0n
Copy link

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!

@rmagatti
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants