• 0 Votes
    3 Posts
    149 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.
  • 3 Votes
    1 Posts
    39 Views
    No one has replied
  • 0 Votes
    4 Posts
    175 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.
  • 2 Votes
    4 Posts
    249 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#.
  • 0 Votes
    2 Posts
    114 Views
    PeterJonesP
    @Olli-B. said: When using the S+R popup, nowadays the second navigation item when using Tab (as we all do, I think), is the checkbox - at least for me it seems new Lots of people have already complained about this, including multiple in the 8.9.9.1 announcement, here, here, and here; as well as two issues, #18639 and #18662 . The code has been updated, so the order will be changed in the next version, so that one TAB from FIND is REPLACE, as it used to be.
  • You've a lot of reasons to hate Notepad++

    Pinned Boycott Notepad++
    93
    5 Votes
    93 Posts
    196k Views
    M
    How would you like a shortcut definition UI to be designed then?
  • authenticode check failed

    General Discussion
    3
    0 Votes
    3 Posts
    353 Views
    D
    Thanks xomx, that explanation makes sense — the shortened path in AstroGrep is a good catch. It would be useful to know whether upgrading to 8.9.9.1 fixed it for you, musicpanda, since that would confirm the cause for anyone else hitting the same error after updating from 8.9.3. If the upgrade does not fix it, it is worth checking the full path set in AstroGrep as well, and making sure the file path is passed with quotes when it contains spaces. The warning itself is a safety check, so it is better to fix the path than to work around the check.
  • Notepad++ release 8.9.9.1

    Pinned Announcements
    26
    3 Votes
    26 Posts
    3k Views
    M Andre Z EckenrodeM
    @donho said: You can increase the width of Find dialog. Yes, I can, and even do — up to the width of my screen, and/or the confines imposed by other applications etc. that I need to keep visible on my screen while I work in NPP. More often than not, I have NPP occupying only the right half of my screen, with one or more other applications with data I need to refer to occupying the left half. And yes, of course, the Find/Replace dialog occupies its own space independent of the where the main application window is, but there’s almost always a trade-off for me because I use lengthy FIND WHAT and REPLACE WITH strings so often, and either the dialog ends up covering something else I need to see, or I’m unable to view my find/replace strings in their entirety anyway because I’ve run out of available width for the dialog. Having both combo boxes be as long as they possibly can be helps.
  • 0 Votes
    5 Posts
    698 Views
    D
    That matches what I have seen as well — the prompt is not really a Notepad++ setting, it comes from Windows, so Notepad++ cannot turn it off on its own. One thing worth knowing before changing it: the Recycle Bin setting applies to every program, not just Notepad++, so turning off the confirmation dialog means Windows Explorer stops asking too. If you only want to skip the prompt once in a while, Shift+Delete deletes a file permanently without sending it to the Recycle Bin, though that is worth using carefully since there is no easy undo.
  • 0 Votes
    8 Posts
    2k Views
    D
    Thanks pbarney, that clears up the part that always confused me too — I had assumed the split used the first edge in the list, not the last number typed in the field. One practical tip from my own use: if there is no space near the split column, Split Lines can break in the middle of a word, so I usually pick the edge based on the text I am editing rather than leaving several edges set. And if a split lands in an awkward spot, Ctrl+J (Join Lines) puts it back quickly, so it is easy to undo and try a different edge setting.
  • 0 Votes
    2 Posts
    124 Views
    PeterJonesP
    @ja2njf , Like most Windows apps, Notepad++ hands that off to the printer driver, so you need to go to the preferences for your printer to set the paper size for printing
  • The Notepad++ website is blocked in Russia.

    General Discussion
    6
    0 Votes
    6 Posts
    6k Views
    PeterJonesP
    @Андрей-Максимов said: Try to use CudaText if you’re not welcome here It’s not Notepad++ or the owners of the Notepad++ website that was doing the blocking. It was something that the user’s service provider (or someone else in the middle) was blocking. From the Notepad++ team’s perspective, all users are free to download and use Notepad++, no matter where their IP physically maps to. But Notepad++ cannot prevent an ISP (or some other entity) from putting up a blockade between their users and the Notepad++ website.
  • 0 Votes
    9 Posts
    821 Views
    D
    Glad the second reboot held — that fits with what PeterJones described. Windows 11 does not keep these primary-menu entries in the classic HKCR*\shellex registry keys the way Windows 10 did; the “Edit with Notepad++” entry comes from NppShell.dll through a sparse package registration, and Windows caches that registration, so a stale entry can survive an uninstall and reinstall until Explorer and the shell cache are refreshed by a reboot. If it does come back, the thing I would check before reinstalling again is whether two copies of the shell extension are registered — for example a leftover 32-bit install alongside the 64-bit one, or an old install folder still on disk. Re-running the current installer as administrator and toggling the shell extension off and back on, or following the unregister and re-register steps in nppShell issue 79, is usually enough without a full reinstall. And if it returns after a future update, noting whether the Publisher field in the manifest changed would help confirm it is the same known issue rather than a new duplicate.
  • # colors lines comments when they should not be

    General Discussion
    3
    0 Votes
    3 Posts
    281 Views
    D
    You are right about Windows INI files, and this is not something you did wrong in langs.xml. For INI files, Notepad++ uses the built in INI lexer, and that lexer treats both ; and # at the start of a line as a comment. That behavior is in the lexer itself, not in langs.xml, which is why you did not find # listed as a comment marker there. Windows itself only treats ; as a comment in INI files, so the coloring is misleading for your files, but it is expected Notepad++ behavior, not a mistake in your setup. For your own language definition, check two things separately. First, open Language, Define your language, select your language, then look at the Comment and Delimiter tab and make sure # is not listed as a comment line opener. Second, check that the file is actually using your language, not INI: the Language menu should show your language name when that file is active, and the file extension should be assigned to your language only. Listing # as an operator should not turn a line into a comment on its own, so if # lines are still colored as comments in your custom files, the INI lexer is the likely cause, because the file is being treated as INI. Lycan Thrope’s EnhanceAnyLexer suggestion is a good workaround for the INI case, because it lets you override the comment color for # lines so they look like normal text. For your custom language, removing # from any comment definition in the UDL, then saving and reopening the file, is the cleaner fix. If you test with a small file that only has one # line and one ; line, you can tell at once which lexer is coloring it.
  • 0 Votes
    4 Posts
    376 Views
    R
    @PeterJones No block boxes, and all files have read/execute allowed. What I have found is if i install an older version and then work up through the versions to V8.9.9.1 the admin option is there. So all good now but i am none the wiser as to what the iussue was. registry?
  • [New plugin] Smart Math

    Notepad++ & Plugin Development
    12
    1 Votes
    12 Posts
    2k Views
    Vitalii DovganV
    SmartMath is more than just a calculator. SmartMath natively supports one-dimensional lists/arrays (inspired by SpeQ Mathematics), aggregation functions (inspired by Python: sum, sort, filter and so on), time values (inspired by NumLock Calculator) and complex numbers. Since lists/arrays are natively supported, SmartMath does not need Python’s map function. Instead, it directly calculates such expressions as 100 + (5, 15, 30), sin((pi/4, pi/3, pi/2)) and so on. There is a joke about the C programming language that its creators stopped developing it once C could compile code that no human could understand. Well, here are a few expressions that work in SmartMath: 1e1i++i v = (5-+-1, 1+-+5) v[0]i(33) v[0]%**v[1] upd(a,n,x) = (a[0:n], x, a[n+1:]) g=(): 9.8; g=g() Finally, here are a few examples that looked interesting enough to be included into the “SmartMath,md”: check_index(a,n) = filter(n, t: t>=0 && t<len(a))[0] upd(a,n,x) = check_index(a,n)*0 + (a[0:n], x, a[n+1:]) Do you still think that SmartMath is just a calculator? ;) The latest binaries are available here: 32-bit (x86): https://drive.google.com/file/d/1QNtDeN09VdfpZsfD6dDQ5j8xvcPd-1pO/view?usp=drive_link 64-bit (x64) https://drive.google.com/file/d/1a0In5EZuESV4L4jH_b21fHAfoyAfUiDR/view?usp=drive_link And the online version: https://d0vgan.github.io/AkelPad-Smart-Math/ Have fun!
  • 0 Votes
    3 Posts
    237 Views
    D
    Thanks for the detailed steps, Coises — that Shift+Right Arrow trick to turn the column selection into a multi-editing selection is the part I had been missing. One alternative that worked well for me in a similar case, when the values are already on separate lines, is to skip the cut step altogether: place a caret at the end of each target line with Ctrl+click (multi-editing), then paste the multi-line text. Notepad++ puts one pasted line at each caret, so the 1 goes after the first ID = and the 2 after the second, with no blank lines left behind. It is a bit fiddly if there are many lines, but for two or three lines it is quicker than converting the selection back and forth. Either way, checking that both multi-editing options are enabled in Settings > Preferences > Editing 2 first, as you said, seems to be the key.
  • 0 Votes
    8 Posts
    313 Views
    PeterJonesP
    @andrecool-68 said: If you have the constant IDs of this plugin, everything works perfectly, and when switching the language in Notepad++, the context menu also automatically changes to the Notepad++ language. “if”. But they aren’t. And because there is no way that plugins can guarantee specific commandID for Notepad++ menus, and there’s no way for Notepad++ to assign a “constant” ID, that’s not going to happen. (Notepad++ cannot know how many plugins exist in the world, nor how many menu commands each will use; the plugin interface is public, so anyone could write their own private plugin. So Notepad++ cannot allocate fixed commandIDs. I cannot see a way around that which would work in all circumstances.) If you have a plugin like this whose commands translate, you can put in both the English and the Localized version: <Item FolderName="AndreCool" PluginEntryName="HTML Tag" PluginCommandItemName="Перейти к соответствующему тегу" /> <Item FolderName="AndreCool" PluginEntryName="HTML Tag" PluginCommandItemName="Find matching tag" /> then whichever localization is picked, that one will be in the menu Or, if you want to stick with just having one commandID-based entry per command, then you will have to live with the fact that the commandID can change when you update a plugin, install a plugin, or possibly even when all you do is update to a new version of Notepad++
  • 0 Votes
    1 Posts
    214 Views
    No one has replied
  • examining updates

    General Discussion
    2
    0 Votes
    2 Posts
    291 Views
    PeterJonesP
    @asapuntz said: can I access things in a different way It takes some effort, but usually the pull request that fixes an advisory includes that advisory’s ID in the message, so you can search the pull requests for each ID