funap / npp-explorer-plugin

Explorer plugin for Notepad++ x64/x86
GNU General Public License v2.0
86 stars 10 forks source link

Auto navigate to current folder on N++ buffer activated #26

Closed vinsworldcom closed 4 years ago

vinsworldcom commented 4 years ago

Please consider adding this pull request. As you Ctrl-Tab between opened N++ documents, this change allows the Explorer plugin to auto-navigate to the currently active N++ document. It basically automates having to push the toolbar or use the menu item "Go to Current File".

This PR is just that functionality. Also to consider may be adding a settings option to enable this behavior or keep the default (no auto navigation). I didn't include that, but if you think this is a good idea, I can try to add that to the settings dialogue and INI file.

Cheers.

vinsworldcom commented 4 years ago

Added the option in the setting dialogue and INI file (false by default to preserve current behavior). Please ignore the changes to Explorer.sln and Explorer.vcxproj - I needed them to compile on my system and mistakenly included them in this pull request.

funap commented 4 years ago

Hi @vinsworldcom Thank you for always great PR! I think it's a very useful change. I will apply it to the next release.

best regards.

vinsworldcom commented 4 years ago

You're so quickly responsive - thank you! Please remember to ignore the Explorer.sln and Explorer.vcxproj changes that accidentally made it into my PR. I needed them to compile on my slightly older VS2017 install.

funap commented 4 years ago

Hi @vinsworldcom Thank you for promptly contacting me. I reverted with 5a9b092e1c09bfc4991224ff719e3634eafb8ffd. (I'm using VS2019, but the folder name is not good...

vinsworldcom commented 4 years ago

Thank you - sorry about the mistake and inconvenience. I'll try to be more careful with PR in the future excluding any project file changes I need locally.

I'm using my build now, but looking forward to the next official release!

Cheers.