• Improving Find in Files performance

    General Discussion
    13
    1 Votes
    13 Posts
    480 Views
    guy038G
    Hello, @thomas-knoefel, @vitalii-dovgan, @coises and All, @thomas-knoefel, I tested your last release and I’m pleased to confirm that no errors ocurred anymore during all the tests ! I followed the same protocol, that I described in my initial post. Here are the results when scanning all the files of my SSD Drive C:\ : •----------------•----------------------------------------------------------------------------•--------------•--------------•-----------------•------------------------------------------------------------------------------• | Program | Results | Scan Phase | Search End | Results panel | Details | •----------------•----------------------------------------------------------------------------•--------------•--------------•-----------------•------------------------------------------------------------------------------• | MultiReplace | Search "Fi" (9 991 249 hits in 90 330 file(s)) [315 503 file(s) searched | 5 m 56 s | 48 m 15 s | 48 m 27 s | 1 115 skipped: 1 111 unreadable, 4 not decodable; 82 folder(s) unreadable] | •----------------•----------------------------------------------------------------------------•--------------•--------------•-----------------•------------------------------------------------------------------------------• [image: 1790441829068-e1b599af-9b42-47c9-8825-7a625a949b48-image.jpeg] But the nice thing is that your Search results panel was correctly displayed and functional : Starting with the default Unfoll All option, I got these successive results : •------------------------•----------• | Action | Time | •------------------------•----------• | Collapse to File List | 32 s | | | | | Fold All | 24 s | | | | | Unfold All | 0,8 s | | | | | Fold All | 32,5 s | •------------------------•----------• On the other hand, I went to the last file of the list, opened it and double_clicked on the first occurrence, in line 690. At once, the corresponding file was displayed in N++ with the caret on this first occurrence, in line 690 ! [image: 1790441883594-1014485b-0e69-4de3-a00c-d2e2c141785d-image.jpeg] Now, here are the results when scanning all PDF files of my SSD drive C:\ •----------------•------------------------------------------------------------------•--------------•--------------•-----------------•------------------------------• | Program | Results | Scan Phase | Search End | Results panel | Details | •----------------•------------------------------------------------------------------•--------------•--------------•-----------------•------------------------------• | MultiReplace | Search "Fi" (47 854 hits in 130 file(s)) [130 file(s) searched | 5 m 45 s | 5 m 48 s | 5 m 48 s | ; 82 folder(s) unreadable] | •----------------•------------------------------------------------------------------•--------------•--------------•-----------------•------------------------------• [image: 1790441995015-1784e925-7731-4f58-8b15-2fc140129131-image.jpeg] Note that you find the same results as with the other Search programs, in my initial post : that’s quite reassuring ! Best Regards, guy038
  • Notepad++ release 8.9.8.1

    Pinned Announcements
    13
    3 Votes
    13 Posts
    821 Views
    Artur HarisonA
    @Coises I think you’re right. If you are encode utf 8 and safe. And reload. Against it’s be Ansi. But if add one spacebar. Problem is gone, but if again delete spacebar. Problem is back. XML lang detector problem! ? —- File was edited in utf 8 format. Encoding obey XML in first line of document. But after reload, bufer reads as ANSI, and ignored specification encoding.
  • Cannot Update Plugins

    General Discussion
    2
    0 Votes
    2 Posts
    315 Views
    PeterJonesP
    @docpomus , I am sorry no one replied yet. Usually when that happens, it means that either gup.exe or nppPluginList.dll (in subdirectories of your Notepad++ installation folder) still have the “mark of the web”. To check (and clear) the “mark of the web”, exit Notepad++; right click on the exe or dll file; select Properties; in the General properties tab, if there is a message at the bottom with “unblock”, checkmark that checkbox, and click OK. Do that for either/both files. After that, the plugins should be able to update from Plugins Admin again.
  • Feature/improvement suggestion

    General Discussion
    2
    0 Votes
    2 Posts
    177 Views
    PeterJonesP
    @Adam-Narkiewicz , (sorry for the slow reply: when I first read your post, I was in the middle of something, and couldn’t go looking for the issues, so I hoped that someone else would reply with similar information. Since no one has, I am doing it now.) Honestly, I believe the bug is in step 5: it shouldn’t do that “check for underlying file existence” when you tell it to Close All (or when just closing one file, as in Issue #11866; or when you tell it to reload a file, as in Issue #18718). The developer tried (per this comment) to find a way around this, but hasn’t found a viable solution yet. After asking whether to keep a file in the editor, Notepad++ closes it no matter what my answer is. For me, since you already said “close all”, I don’t see a problem in Notepad++ closing it. I am not convinced it should’ve asked in the first place. Fortunately, if there are unsaved changes – so if you’ve edited the file, so there are unsaved changes to the file that doesn’t exist anymore – it will interrupt the process and ask you to save it, and when it fails, it stops the process (not the best solution, but better than losing data). So this oddity at least won’t let you lose unsaved changes accidentally when doing Close All for files that have disappeared. So that’s something. asks me whether to keep some deleted files open, but not all That does seem problematic, to me. I guess after doing the single check, it finally believes your request to Close All meant to Close All. In conclusion: Since Issue #11866 exists for the single file-close, I don’t think this needs a separate official issue. I’m glad it’s “not particularly annoying” to you, because it could be a long time (if ever) before a solution can be found.
  • 0 Votes
    3 Posts
    158 Views
    CoisesC
    @PeterJones said: I think that progress bar for FiF was possible because it’s possible to background a search-through-disk-file action. I know that a single-file search cannot currently have the progress dialog because the underlying search library doesn’t allow you to hook in a process-tracker. The find-in-all-open wouldn’t be able to track inside an individual file because of that limitation, but it might be able to check for cancel between files. Not quite. What’s missing is the possibility — no matter whether it’s from an open document or a file on disk¹ — to monitor progress during a single step of the search. Searching for all occurrences of something is implemented simply by repeatedly searching for the next occurrence of it. You can build a progress bar based on each step of the search. (I do that in Columns++ and Search++, and I believe Notepad++ does it for Find/Replace in Files.) The problem happens when a single search, usually one that never finds a match, takes a long time to complete. There is no straightforward² way to monitor its progress. ¹ Notepad++ implements searching files on disk almost the same as searching open documents: it just loads them into an invisible Scintilla control instead of one of the two visible views. For that matter, I believe documents that are not on a foreground tab must also be loaded into an invisible Scintilla control, but in that case the file is already loaded into a Scintilla document, so attaching that to a Scintilla control is a fast and simple operation for the base program. Plugins can’t do it easily because Notepad++ doesn’t expose the document handles for buffers that aren’t active to plugins (and Don has said that he won’t do that). I say “easily” because it is possible for a plugin to maintain a map of buffer IDs and document handles by carefully monitoring when buffers are activated, opened and closed. (I do it in Columns++ to try to maintain the layout tables for elastic tabstops. Since the change that Replace All in All Open Documents now turns off individual change notifications and just sends a notification that “something changed (none of your business what is was),” that code is mostly obsolete, but I haven’t removed it, if for no other reason, to maintain compatibility with older versions of Notepad++.) ² It’s not impossible. It would require writing a direct search routine rather than relying on Scintilla’s API, and for regular expressions one would either have to modify/fork Boost.regex or do some fancy shenanigans with the iterator class that scans the document.
  • wireloom in markdown viewers

    Notepad++ & Plugin Development
    8
    0 Votes
    8 Posts
    559 Views
    rdipardoR
    I said: In case anyone else is interested, you can try previewing plain-text wireloom files with this development build of Preview HTML. This feature has now been merged, with additional support for offline Markdown previews that will render wireloom code blocks: [image: 1790348955006-wireloomx898.gif] All rendering is done by client-side JavaScript modules, so MS Edge is still required. @Keith-Collyer said: What would be really good would be if the developers of these re-merged their plugins! Don’t look now, but no fewer than three new Markdown plugins have appeared in the past two weeks — and they all depend on the WebView2 runtime (i.e. Edge).
  • 0 Votes
    10 Posts
    624 Views
    A
    @peterjones Installed Notepad++ v8.9.8.1, and this problem went away [image: 1790343129511-%D0%B1%D0%B5%D0%B7%D1%8B%D0%BC%D1%8F%D0%BD%D0%BD%D1%8B%D0%B9.png] p.s. And I don’t need to unblock files received from the Internet, because after a clean install of any Windows, I will block this option through the registry.
  • [New plugin] Smart Math

    Notepad++ & Plugin Development
    9
    1 Votes
    9 Posts
    1k Views
    PeterJonesP
    @Vitalii-Dovgan , I don’t think the Plugins Admin will be able to do all of that on its own. The DLL needs to be at the top level of the zipfile. What you could do is to have your plugin intialization look for the autoCompletion and userDefineLangs files in the appropriate locations (use NPPM_GETNPPSETTINGSDIRPATH to make sure you put the UDL in the right per-user place, regardless of doLocalConf, -settingsDir, CloudDirectory, or normal AppData; autoCompletion always goes relative to NPPM_GETNPPDIRECTORY – and for any that are missing, copy from ...\plugins\SmartMath\ subfolder(s) into the right destinations. A possible zipfile structure could be: SmartMath.dll doc\ SmartMath.md autoCompletion\ SmartMath.xml userDefineLangs\ SmartMath.udl.xml SmartMath_Dark.udl.xml That would all get placed in ...\plugins\SmartMath\ Because autoCompletion definitions are in the program directory hierarchy, there may be a permission issue, so you’d have to request elevated permission to do that copy; examples of how I did that can be found in my ConfigUpdater plugin. (The plugin itself is not so useful, since I moved that feature to N++ itself, but some of the code is still useful reference.)
  • Search++: A work in progress

    Notepad++ & Plugin Development
    175
    7 Votes
    175 Posts
    54k Views
    guy038G
    Hello, @coises, Sorry, I haven’t commented on your latest version yet. In the meantime, I replied to @Vitalii-dovgan regarding his own implementation of the Find in Files feature. During that testing, I also included the Search++ plugin ( v0.7 ) and the MultiReplace plugin. So I invite you to take a look at it : https://community.notepad-plus-plus.org/post/106389 As for your latest version, I won’t be able to review it thoroughly until tomorrow evening. So, I’ll probaly get back to you on Saturday instead ! BR guy038
  • 0 Votes
    2 Posts
    110 Views
    PeterJonesP
    @ChotaFallen , Under default Monokai, I cannot replicate: [image: 1790262087450-9491595a-6d67-4abf-8758-f5ed5da6beb3-image.jpeg] However, if I change the Default Style > Background for Monokai (to a green similar to your second screenshot), I can see it: [image: 1790262414327-b8f97a3a-d5b4-43cd-b0f3-a1c35e66c366-image.jpeg] It’s because Monokai (and most themes) hardcodes every background color for every style, rather than using “inherit”. Here’s an example using the default style: [image: 1790262562644-9ba07e02-fb1d-4d2f-a580-d6cb2d7d5924-image.jpeg] The theme color choices aren’t always perfect, and not everyone is going to agree with color choices made. As such, you can customize to what you want. If you want most of the backgrounds for your theme to inherit from the “default background” rather than being hardcoded, you can go through and right click the background color for any that are the default. (Or, as a footnote, I will also explain a process that you can edit the XML for your customized Monokai, to automatically change anything that has a background that matches the monokai default background to inherit from default background, so that you can do it in a lot less time.) What I need is a better highlighed line I am working in, its black on dark that has nothing to do with highlight. … If I try to change it via Style congiruator the line will be solid in the color I choode doesnt matter for fore or background. Which “highlight” do you mean? And I am not sure what you aren’t liking about it when you change it. Current line highlight: default Monokai: [image: 1790262875579-db922444-92f4-4df3-91f4-9865727004fd-image.jpeg] set it to something else: [image: 1790262905945-fca66fe1-82d2-47cd-92cb-8c1ca0e6bc54-image.jpeg] it does exactly what I expect: it changes the current line background color 0x3E3D32 to something based on the color I selected. Selected text colour: default: [image: 1790263082002-6cf5b4c1-7b2e-47bc-8b20-47ad2ea1884a-image.jpeg] modified: [image: 1790263104839-6318a4e3-6d6a-4583-b949-855a439f304c-image.jpeg] again, it does what I expect Smart Highlighting: default: [image: 1790263153651-1107e88c-b40c-4622-b0e9-d2676004c323-image.jpeg] changed to cyan: [image: 1790263182686-3ba38b0a-1f92-4d9d-ba94-b36ef4d0c6f3-image.jpeg] this one, it’s actually combing the selected color with the normal background color, so it’s not exactly the same color you chose; but again, that’s not unique to Monokai Find Mark Style: used when you use Find > Mark dialog [image: 1790263284015-0e9c9f44-f393-44ae-b29a-386e362939bd-image.jpeg] Mark Style #: used when you use Search > Style … Token options: [image: 1790263340517-131aa3df-93bd-4977-9bd9-3143c4a7fbcb-image.jpeg] There are a few other, less likely, choices that you might mean by highlight. But rather than showing that I think it does what’s expected, it would be better if you were more specific about what you were doing, and what you don’t like, and what you would like. Footnote: Make Monokai backgrounds inherit quickly I assume you have a copy of Monokai.xml in %AppData%\Notepad++\themes\ . Exit all copies of Notepad++ Copy Monokai.xml to Monokai_custom.xml Edit Monokai_custom.xml with Notepad++ Confirm that <WidgetStyle name="Default Style" has bgColor="272822" – if not, manually edit it to use that Search > Replace, set Search Mode = Regular Expression FIND = (?-s)bgColor="272822".*\KcolorStyle="(?:(2)|(3))" REPLACE = colorStyle="(?{1}0)(?{2}1)" REPLACE ALL FIND = (?-s)(bgColor="272822"(?:(?!colorStyle).))*\h*/> REPLACE = colorStyle="${1} colorStyle="1" /> REPLACE ALL On the “Default Style” line again, delete colorStyle="1" Save the file Exit Notepad++ and re-launch it Settings > Style Configurator > Select Theme = Monokai_custom Now if you change Monokai_custom’s default background color, it should propagate to all the other styles (both normal text and each language), so it really changes the background throughout.
  • 2 Votes
    3 Posts
    235 Views
    PeterJonesP
    @guy038 , I have also noticed that, recently, the username filter in the advanced search page doesn’t populate usernames. I had thought it might have just been me. I know that @barisusakli from NodeBB occasionally logs in, and they recently updated the forum software for us… maybe that version had a bug, because the admin panel says there’s another version available since they last updated us. Until then, once you make your search, you can edit the URL to set &by=PeterJones to search for my posts (right now, the URL probably has &by= with no value). It’s not as convenient as the drop-down, but it is a workaround.
  • 0 Votes
    2 Posts
    134 Views
    PeterJonesP
    @Bondige-Ramesh , I am sorry you are having difficulty. Assuming you mean “Notepad++”, not “Notepad” (they are two different applications – Notepad++ is what’s discussed in this forum; Microsoft’s notepad.exe is a separate product, and is not the focus of this forum) please share your ?-menu’s Debug Info, so we know what version of Notepad++ you are using, and get some useful information to help us replicate and diagnose your problem please be more specific than saying “suddenly loaded as empty” over and over. If it’s just a matter of you had a file, then accidentally deleted its contents, there is not much we can do to help you: we have a FAQ about backups, which gives a couple places to look, depending on what your Notepad++ backup settings are. But the chances are, now that the file loads empty, you have likely lost your data.
  • 0 Votes
    1 Posts
    79 Views
    No one has replied
  • Notepad++ Release Candidate v8.9.8.1

    Announcements
    14
    2 Votes
    14 Posts
    1k Views
    S
    @donho Typo: “7 Fix Netork Path Warning dialog usability problem.” --> Network
  • Notepad++ release 8.9.8

    Announcements
    25
    6 Votes
    25 Posts
    8k Views
    M
    I am seeing an issue that I’m not certain it is the installer of Notepad++ 8.9.8 itself or if Microsoft has inadvertently caused this… Using Microsoft’s Enterprise App Catalog to install 8.9.8 on top of an existing installation of 8.9.6.4 seems to result in the registry information being updated to say 8.9.8 but when you check C:\Program Files\Notepad++\notepad++.exe it is still 8.9.6.4. This was horrifying, as it’s the perfect way to maintain a vulnerable copy of the app on Enterprise systems. It could go completely unknown because, at least on ours, MDM systems seem to inventory based on what the registry says and not what’s on the actual disk. Server OS endpoints updated using the traditional SCCM method appear to update correctly. So, this adds weight to the issue being Microsoft’s Enterprise App Catalog implementation. It is almost as though they are updating the registry on behalf of Notepad++, ignoring the true status of the app.
  • -2 Votes
    1 Posts
    179 Views
    No one has replied
  • Fake Notepad++ website

    Security
    4
    3 Votes
    4 Posts
    943 Views
    xomxX
    @donho There seems to be another one: notepad-plus-plus . app I reported this too. GH issue: NPP brand impersonation website serving malware #18398
  • Praise Notepad++

    Praise Notepad++
    3
    1
    3 Votes
    3 Posts
    4k Views
    F
    @Maddox-Armstrong said: @FreeMeow I goon to Notepad++ :P 666还有蜥蜴人
  • You've a lot of reasons to hate Notepad++

    Pinned Boycott Notepad++
    92
    5 Votes
    92 Posts
    185k Views
    F
    作者的大黑几把干的我豪爽。啊啊啊啊啊要去了。
  • 傻逼软件,傻逼作者,傻逼呆湾人

    Boycott Notepad++
    7
    -1 Votes
    7 Posts
    5k Views
    F
    坚决维护共产党!任何邪恶中将绳之以法{亥~}。打响时我直接娟500m,掌上永远有这个钱!我要购买鸿星尔克,(不吃白象方便面不健康)直接就是一个练~起~来~曼watkanaisay曼波曼波。我都已经这样了你为什么布顺从我? 正在使用花为18 uitra啊啊啊啊这个这个啊啊啊是吧