Community
    • Login
    1. Home
    2. Popular
    Log in to post
    • All Time
    • Day
    • Week
    • Month
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics

    • All categories
    • R

      [Fork] MarkdownViewer++ (WebView2)

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      3
      1
      0 Votes
      3 Posts
      112 Views
      PeterJonesP
      Practical feedback When I tried the “undock” button, it crashed the plugin (giving an error message included in a screenshot) – [image: 1795294404964-mv-wv2.error.png] well, maybe the plugin hasn’t crashed, but that action didn’t work, anyway, because it is not showing the undocked window as expected, but Notepad++ was still running. If I re-start Notepad++ after that error, it started with the panel undocked; this is highly repeatable for me. If I CONTINUE after the crash, and toggle the view of the panel, it displays, and for that run, undock and dock will work. Continued experiments show that if it starts undocked (through that button being used the previous time), then the dock/undock button toggle works right; but if it starts a run docked and I click the “undock” button, it will show that error and not show the undocked window until I tell it to show the preview again (or restart Notpead++). This is bad user experience. Second, when it’s successfully undocked via the button, I cannot use the normal Notepad++ docking panel behavior of dragging it to an edge to re-dock. OTOH, if I don’t use the button, but undock by the normal Notepad++ dragging, then I can drag it back to docked just fine. And if I make the mistake of dragging-to-undock, then clicking the button that’s still labled “undock”, it will crash not just the plugin but the entire Notepad++ application. If you’re going to call the feature “dock/undock”, it needs to work the same as the Notepad++ dock/undock, otherwise, it will cause confusion. So, what does that button gain you that the normal dragging does not? If it’s just the button, could you make it compatible with the normal dock/undock, so it’s just two alternative ways to get exactly the same compatible result? Philosophical feedback Just because the code is open-source doesn’t mean the name is freely available. In general, if you’re going to take over an existing piece of software and develop it from your own fork, you either need to get permission to use the name (like what happened with PythonScript and some other plugins), or give it a new name. Misc [deleted some ranting]: sorry, the earlier version(s) of my post were too harsh. I normally applaud anyone who revives an abandoned plugin, even if I do caution them to ask for naming rights or to rename to avoid trouble. But my rant was too strong, this time. See my post here for a comparison of various of the MarkdownViewer++ alternatives in and/or submitted to Plugins Admin at this point.
    • H

      Notes repeated, repeated...

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      4
      0 Votes
      4 Posts
      164 Views
      PeterJonesP
      @DanielCollins said: I would add one more thing to check first: how you close Notepad++ after removing the tabs. If you close the window with the X button, Notepad++ should save the session on exit, … Try closing with File > Exit after removing the tabs, then check whether the files stay closed on the next launch. There is no difference between the X button and File > Close, as far as Notepad++'s saving of the session. but if the program is still running in the background, for example after closing the window while it is minimized to the tray, It staying on the system tray is an interesting idea. But your wording (by putting it between the “X” and the “File > Close” in your suggestions) implied strongly that using File > Close would behave differently regarding minimize/close-to-tray, which it does not. The only way to fully exit the application when it’s in close-to-tray mode is to use the tray-icon’s right-click menu and choose Close Tray Icon But since @hixcube said, “and shut down my PC”, the system tray is not likely to be the culprit, because when Windows cleanly shuts down, it sends the proper messages to Notepad++, and Notepad++ should save the session while exiting. So, despite being an “interesting idea”, I don’t think it’s the root cause of the problem as described. or if a second instance is open, the older session can be written back over the newer one. I seem to remember saying that already. (“the instance that saves the session might not be the one you think”) It is also worth checking Settings > Backup to see whether Periodic Backup is on, No it’s not. The Debug Info already posted told us what that Periodic Backup is on. So checking it is redundant. since that is separate from the session list and can bring back the contents of unsaved notes even when the tabs themselves are gone. The whole point of the original complaint is that they had Notepad++ set to remember sessions, but closed files, and the files are coming back in the session even though they had been closed. The session feature does not bring back contents of tabs after the tabs have been closed.
    • PeterJonesP

      Comparison of the slew of Markdown Viewers Available

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development markdown markdownviewer++ ai generated plugins
      1
      13
      2 Votes
      1 Posts
      19 Views
      No one has replied
    • F

      [New Plugin] XML Tree – FOXE-style XML tree panel

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      4
      2 Votes
      4 Posts
      238 Views
      Mark OlsonM
      @falconefasto Haven’t had a chance to play around with it yet, but I’m the maintainer for JsonTools so I’ve spent a lot of time thinking about and dealing with the various pitfalls that can occur with a tree view of the sort you’re describing. Some thoughts: Does the treenode position work properly when the document contains multi-byte characters? JsonTools parses the document as a UTF-16 string but Notepad++ buffer positions generally assume the document is UTF-8 encoded, so the parser has to take this into account when assigning positions to JSON nodes. Lazy loading is a great idea, but how do you handle a treenode with a lot of direct children? In JsonTools I have a configurable setting for how many direct children a tree node can have, which I arbitrarily defaulted to 10,000. Otherwise the tree can cause NPP to hang even with lazy loading. A context menu that appears when you right-click a tree node seems like a good idea. Off the top of my head, maybe have the options be: select the start tag snap to end tag select the inner XML copy attributes to clipboard recursively expand/collapse all subtrees I can’t give any advice on implementation, since I’ve written all my plugins in C#.