-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Show the pos
(file info) column for GoDecls FZF view
#3362
base: master
Are you sure you want to change the base?
Show the pos
(file info) column for GoDecls FZF view
#3362
Conversation
Thank you for contributing. Why is this needed? |
Because it's useful to know which file a function is from, but maybe I'm missing something? |
I don't see why that would be useful given that directories contain only a single package and function names are within a package a unique. You can navigate to the function by selecting it and you can see the function signature in the preview window. |
That's an interesting point; it may make sense for the ctrlp and fzf integrations to be more consistent in their presentation. Honestly, I'd lean more towards removing the file info from the ctrlp integration, because I'll give it some thought, but I'm interested to hear your perspective. |
That makes a lot of sense; happy to refactor this PR to instead remove it from the ctrlp autoload. |
Just a quick comment in support of providing additional context to the symbol names. I often have to give up Another common situation is when the same symbol is present both in the actual package (say, |
@bravoecho in those cases, the preview window that allows me to distinguish between the types that are implementing the methods. Are you not seeing the preview window on the right hand side? |
Thank you @bhcleek for your message 🙂 Good point! I actually disabled all previews to avoid information overload. You make me realise that perhaps this is because I'm using the feature for navigating code, rather than for searching it. |
For some reason the file info column is not displayed in the FZF GoDecls view.
This PR simply adds that column to the view.
The lack of file info can be seen in the screenshot here: #3110
The difference is simply e.g.:
versus: