-
Notifications
You must be signed in to change notification settings - Fork 24
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
feat: support preview for entries in path source menus #86
Conversation
ec3b03d
to
8ee3dbd
Compare
8ee3dbd
to
b46402a
Compare
86405e2
to
d42a135
Compare
Considering an alternate approach here... what if the previews for files worked the same way as for TS/LSP sources, where the file is previewed in the active window instead of a popup? I think that would allow the preview to be more consistently visible, since having nested menus open significantly shrinks the space available for the preview popup. Could also make this configurable, so files could be previewed in a popup or the active window. This could also be extended to allow other kinds of symbols to be previewed in popups. |
98c590e
to
4d3f30c
Compare
Not quite ready for merge but ready to be tested - now supports previewing in a floating window, or in the current window like document symbols are previewed. |
d175487
to
5c8cbe9
Compare
Ok fixed the bugs, this should be pretty much ready as well. |
I just need to document I added it as a method instead of just doing a check in the path source because I think is useful to have and makes it more clear that |
5c8cbe9
to
28117a7
Compare
28117a7
to
cf4fcd2
Compare
@Bekaboo this has been working well in my config for a bit, I'll upload a new video here today. Do we want to have the floating preview though? It's different from how all of the other previews work and I'm not sure I'm a fan of it - I kinda want to remove it and have this PR only support preview in the way we already do in order to keep things consistent between the sources. Thoughts? |
@willothy Thanks for your work!
I agree with you. |
Cool, sounds good! I'll clean this up and remove the floating preview. |
@willothy Is this ready to merge? |
Uhh I forget, I'll look over it today and let you know. I think I just need to do a little bit of cleanup. |
@Bekaboo ok, good to go! Sorry for the delay. |
cc3b26c
to
85fc827
Compare
Ty, looks great! @willothy I have been a bit busy recently but I'll review and merge this ASAP. |
Sounds good! No rush :) |
5cb334a
to
fa51f27
Compare
@willothy Why do we need a new field |
Right, good catch! That's leftover from the popup preview, I should've removed it. I'll get rid of that now :) |
fa51f27
to
62ed697
Compare
@Bekaboo I've rebased onto master and removed the |
17d2fa8
to
281260f
Compare
fix(sources-path): indexing nil value when previewing dirs/links, etc. feat(sources-path & configs): add `opts.sources.path.preview`
b8e02b6
to
353e739
Compare
@willothy Merged, thank you for your contribution! |
Adds support for previewing files from the path source.