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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autoscroll the project files panel when you select a file in the editor #18

Closed
stcarrez opened this issue Aug 2, 2017 · 4 comments
Closed

Comments

@stcarrez
Copy link

stcarrez commented Aug 2, 2017

This is en enhancement suggestion.

On large projects, when you have many files opened and you switch from one file to another
in the editor main window, the left project files panel that displays the list of files does not automatically
scroll to show the new file location.

The Intellij Idea has the "Autoscroll to source" and "Autoscroll from source" options that allows
to synchronize the project files panel with the editor panel. These are two settings that can be
enabled or not depending on the user preference.

These two features are really helpful in large projects because you can quickly jump to the file.

The double click on the project files is just a real pain.

@briot
Copy link

briot commented Aug 2, 2017

(former GPS developer, no longer involved) I like this idea. The reason it was not implemented initially is for efficiency reasons. The contents of the Project view was populated lazily, and thus we did not have all the files information in there. A further complication is that a given source file might occur several times (if you use an aggregate project, or configure the Project view to nest imported projects), so there could be ambiguities as to which one GPS should select.

But since we implemented the filtering at the top of the Project view, it would now be much easier to implement your suggestion. One possible approach, which could be done from a pure python plugin, is simply to populate the filter, though that is definitely not the best.

Do you know about the "Locate in Project view" contextual menu in editors ? That might help too.

Finally, I think you will need to provide more context for your last sentence, which seems unrelated to the rest of your suggestions ?

Personal note: nice to hear from you again ! :-)

@stcarrez
Copy link
Author

stcarrez commented Aug 2, 2017

To open a file in the editor, you can double click on the file in the project files tree. This double click is
a pain. To solve that, Intellij Idea has the "Autoscroll to source" which when enabled, allows you to
use the simple click (which does nothing today in gps). I guess this mode could be easily implemented.

Thanks for the "Locate in Project view" this helps a little but it would really help more to have it run
automatically when you click on the editor tab. I really love Intellij Idea for that (and other things)!

@setton
Copy link
Member

setton commented Aug 3, 2017

I think a python plugin could easily run "Locate in Project View" automatically...

@AnthonyLeonardoGracio
Copy link
Collaborator

Hi Stephane,

You can now enable the "Auto Locate File" plugin via the Preferences/Plugins page to have this feature.

Regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants