molsonkiko / JsonToolsNppPlugin

A Notepad++ plugin providing tools for JSON like linting, querying, a tree view, and CSV conversion.
Apache License 2.0
94 stars 10 forks source link

Feature request - Refresh on new JSON #13

Closed vinsworldcom closed 2 years ago

vinsworldcom commented 2 years ago

Currently, if I have 2 JSON documents open, and I open the viewer, it will display the tree for the active JSON document. If I switch to the new JSON document, the tree does not auto-refresh. In fact, the only way I can seem to get it to refresh is to close the panel and reopen.

Suggest a way to refresh from the panel:

For example of the latter, see https://github.com/vinsworldcom/nppChangedLines/blob/989edfcf2cbd7706b586a51519f065ae8e242628/ChangedLines.cpp#L97 and trace through the calls (uses SetTimer, KillTimer, WM_TIMER)

vinsworldcom commented 2 years ago

The new refresh button in 3.5.0 does it!