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
    • ?

      Macro does not record my Run action

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      17
      0 Votes
      17 Posts
      516 Views
      ?

      @Victorel-Petrovich Another good idea: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/8037

    • guy038G

      Wrong insertion of text, in the new FIND and REPLACE dialogs

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      17
      0 Votes
      17 Posts
      3k Views
      Alan KilbornA

      @guy038 said:

      After some tests

      …of the version from the PR…

      "…in extended mode, I should add the \r\n at the end of each line for a correct search”

      Well… I think the answer to that is… don’t do it.

      It’s a matter of knowing what your data is. And, admittedly, this is difficult as real \r and \n are invisible in the Find what box. But this is true also if you select some multiline text and press Ctrl+f, it’s not peculiar to the proposed new code.

    • donhoD

      Notepad++ v8.8.5 Release

      Watching Ignoring Scheduled Pinned Locked Moved Announcements
      12
      2 Votes
      12 Posts
      10k Views
      hdtythgd sgxgxvbH

      @PeterJones
      Thanks.

    • A

      File Open is bugged in versions later than 8.8.2

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      11
      0 Votes
      11 Posts
      249 Views
      PeterJonesP

      @Atomiser said in File Open is bugged in versions later than 8.8.2:

      was ‘HIPS’ in Comodo.

      Glad you found it

    • Adam FradleyA

      Repeated download of old update file despite v8.8.5 installed

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      7
      0 Votes
      7 Posts
      2k Views
      PeterJonesP

      @Adam-Fradley ,

      Further, if I start from an 8.8.2 portable, with the config.xml modified per my previous explanation, it does see the new version, and says,
      190611e6-3c44-4fe7-8b3c-9dc94014baf8-image.png

      But it DOES NOT start downloading unless you tell it to.

      If you are not getting that dialog, then it’s not Notepad++'s gup.exe updater that is trying to do the download, and you need to look for your culprit elsewhere.

    • ?

      How dynamic-ID menu commands are executed and relation to macros

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      7
      0 Votes
      7 Posts
      2k Views
      ?

      @PeterJones said in How dynamic-ID menu commands are executed and relation to macros:

      There is no “universally constant value” necessary for Notepad++ to store for it to be working the way it is.

      And creating a new identifier rather than using menuCmdID is not likely to happen (nor should it, IMO)

      That scheme (even if hypothetical) seems to work very well as long as it’s not a problem that the IDs change when you remove menu entries.
      But we do know that it is in fact a problem for recording macros.
      Here are 2 approaches I can think of (besides the “shut up and hack the XML files” one :) ) :

      A. Constant IDs version

      Still have a linked list to represent the structure of the (dynamic) menus, but whose contents are just the IDs of those commands. Can still be in same range as current IDs, if needed.
      Add a dictionary (hashmap) to map from those IDs to the respective actual commands, or in case of macros - list of actions , as you describe in your post above.
      Npp getting command 20001 for ex, involves looking up in the dictionary - most often a constant time operation.

      Deleting an menu entry involves deleting the respective entry in the linked list and also the ID-value pair in the dictionary.

      In addition to that, to ensure that generated IDs stay within a given range: Several schemes are possible, one of the simplest can be just generate a key in range and test that it is not present in the dictionary.

      B. Dynamic IDs, but synchronized in every saved macro

      Basically, keep the scheme as it is at present, but add a way to update, for each macro, every stored referenced menu command ID in an Action record:
      at every removal of a menu entry, compute how the rest of entries’ IDs would change (if located After those removed, the ID would decrease by one) and traverse the linked list of all macros and update that ID in every action that refers to a menu-command in the range of the dynamic-IDs types (Run, Plugin and Macro commands).
      Thus on Npp closing, the macros written in XML will also contain updated IDs.

      But don’t pretend the niche [for a more powerful macro system ] doesn’t already have a plethora of entries.

      I think there is plenty of room for a macro system to grow in power and STILL be much easier to do a lot of common tasks, than the same tasks in any scripting language.
      Because with macros you don’t have to learn and remember syntax.

    • Brent FickerB

      How to replace two separate lines.

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      7
      0 Votes
      7 Posts
      167 Views
      ?

      :) you are not lucky, eh?
      …
      It looks like the reason it works for me is that I’m using the LF EOL, not CR LF as typical in Windows.

      Cheers

      P.S. @Brent-Ficker if you’re not familiar at all with regex, the “Extended” mode setting would work for this particular problem too, to gently introduce you to such things.

    • Vitalii DovganV

      XBrackets 2.0 is coming!

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      9
      4 Votes
      9 Posts
      3k Views
      Vitalii DovganV

      @Ekopalypse
      Wow, thank you!

    • Neko_KaiohN

      Multiple lines merging when saving as HTML - Want to stop that

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      8
      0 Votes
      8 Posts
      175 Views
      Neko_KaiohN

      @pbarney Finally, some actual assistance on this forum. Thank you!

      The code I mentioned that was spat out included the <pre>, just in a different format. So I guess my fiddling was on the right path. I appreciate you taking the time to reply though, it gives me more info on what that code is/does.

    • Jack shankle 0J

      Can't print with notepad++

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      13
      0 Votes
      13 Posts
      9k Views
      PeterJonesP

      @Coises said in Can't print with notepad++:

      I’d say No Background as the default,

      Congratulations. That’s the default already.

      And, as you say, the warnings probably aren’t worth the effort.

      have a separate theme for printing which doesn’t change when you change the display theme

      Ick. As I said above, that breaks the expectation set up by literally every other application I can think of having printed from in the last decade or two. If the visual area has color inherent to the display, the general expectation, in my experience, is that it will print in that color… not some other set of colors which I have to pick or set somewhere other than my primary color choices.

      Printing of text files to dead trees should be rare enough that most people don’t care; printing to PDF, you want the color to match exactly. Since Notepad++ cannot tell which you are doing (it’s the OS, not the app, that knows what printer you send to), there’s another reason to not have a separate printing theme or other such workaround.

      People getting colors the same between screen and print should be the default; anything else breaks reasonable expectation. (Even “no background” being default breaks that expectation, IMO.)

    • PeterJonesP

      POLL: Should autoCompletion updater go in CollectionInterface, ConfigUpdater, or both?

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      6
      0 Votes
      6 Posts
      2k Views
      Lycan ThropeL

      @PeterJones ,
      Good point. Luckily, it’s still one of a handful of functionList files…at least until you figure out how to mass produce those. :-)

    • Danie BosmanD

      Printing a line of contiguous spaces, but do not convert to tab characters.

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      6
      0 Votes
      6 Posts
      148 Views
      PeterJonesP

      @Danie-Bosman,

      I used moderator powers to fix your embedded image.

      Are the arrows indicatiing Tab characters, or merely indicating where the indents are?

      Your drawn red arrows are the View > Show Symbol > Show Indent Guide indicators. They show up whether you are set to spaces or tabs, so it won’t help you determine which you are set to.

      OTOH, the related View > Show Symbol > Show Space and Tab do show spaces vs tabs:

      126dc4bb-05c5-4be7-aa93-20a8ffd5e33a-image.png

      As @Alan-Kilborn said, the long right arrows are tab characters, the mid-dots are space characters.

      Unfortunately, your screenshot did not include enough information to tell what language your code is in. Like I said, the screenshot needs to include the status bar to show us that, and you cut it off before the status bar. Your language looks vaguely VisualBasic-like, but that’s just a guess. (Though it’s confusing to me that your tab name claims *.txt, but it’s syntax highlighted like code; have you associated .txt with something other than normal text?)

      Anyway, whatever language it’s set to, whether you are willing to show the status bar or not, assuming you can read the status bar yourself, or can look in the Language menu to determine what language is active for syntax highlighting your .txt file with code, you need to click on that language’s entry in the Indent Settings box that lists all the languages, and see what the Indent Using is set to for that language: see whether it’s set to Use default value, in which case it will follow the [Default] settings you show in you screenshot; or it might not have that set, and instead have its own, like Makefile does:

      Examples comparing my settings for Visual Basic with Use default value vs Makefile with its own set to use tabs:

      Visual Basic 1e2784be-9137-4be5-9b25-e49554bfbb19-image.png Makefile 2ec29bcd-b77d-4519-9876-c610152b64fa-image.png

      update: But given your indication that you seemed to think the guidelines were tab characters (which they aren’t, necessarily), then my guess is that you were just misinterpreting what you were seeing, and this whole time, you really do have spaces where you thought it was still inserting tabs. Again, View > Show Symbol > Show Space and Tab will show you definitively and unambiguously whether the characters are spaces or tabs.

    • MidnightGardenM

      Separate file association names?

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      5
      0 Votes
      5 Posts
      244 Views
      NicholasN

      Here is my post about changing file type icons in the registry. It also changes the file type descriptions.

    • Jim GarrisonJ

      Column Mode Indent?

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      12
      0 Votes
      12 Posts
      2k Views
      Anonymous UserA

      @PeterJones That fixes everything! Thank you so much! Apparently I need to be better about updating N++ plugins.

    • W

      🐛 [ISSUE REPORT] Notepad++ Freezes When Using Find in Files with Network Drives

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      8
      -4 Votes
      8 Posts
      658 Views
      Helder MagalhãesH

      @webforpcnet seen similar issues before, also with other tools. Thing is accessing network drives (and even external plugged drives) triggers security and caching tools such as anti-virus, status utilities such as TortoiseGit, etc.

      A separate check needs to be done using another crawler, such as a simple script dumping the file contents. Paste something like the following in cmd.exe:

      @echo off rem Position in the target base directory pushd \\NAS\shared\code\ rem Iterate through all files in the subtree, assume all files, "*.*" for /R %i in (*.*) do ( echo Dumping '%i' rem Force reading file contents (but don't output them!), same as Notepad++ would type "%i" >nul ) popd

      (I’m assuming the \ special character sequence got escaped in the report.)
      If the speed is substantially better than Notepad++ then it might mean there’s a problem (this quick/dirty check cannot assess for any whitelisting or heuristics in the environment).

    • donhoD

      Fighting Malicious Ads on Download Pages

      Watching Ignoring Scheduled Pinned Locked Moved Security
      41
      3 Votes
      41 Posts
      24k Views
      donhoD

      @MichellesCode

      The image that I am seeing. I wasnt able to get the URLs, apologies. I am based in US.

      If you happen to see them again, please send the link(s) to don.h@free.fr.

    • jabcreationsJ

      Disable menu activation for a shortcut not working for english.xml

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      5
      0 Votes
      5 Posts
      125 Views
      jabcreationsJ

      @PeterJones

      I had to reinstall to get the English Customizable file installed (C:\Notepad++\localization\english_customizable.xml). I made some recommended changes (name="Exit&amp;°"), changed to English and then back to English Customizable and tested it and it did not exit as desired; thanks!

    • maxxseeM

      Search characters if exist in any order with no spaces?

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      5
      0 Votes
      5 Posts
      144 Views
      PeterJonesP

      Moderator Note: Please do not delete posts after the conversation has happened. It removes context.

      (Moderator restored deleted posts; topic being locked, because it appears the original poster is no longer interested, since the posts were deleted)

    • pbarneyP

      Need clarification about "built-in" language lexers

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      4
      0 Votes
      4 Posts
      293 Views
      pbarneyP

      @PeterJones said in Need clarification about "built-in" language lexers:

      So I asked ChatGPT why,

      Why would you believe that atrocity?

      It was probably an off-the-cuff question, but I figured I’d take it seriously. I know that this is going off-topic, so feel free to cull this response if you like.

      To tweak the old Russian maxim, it’s very much a case of “distrust until verified” (which is why I posted my question instead of just swallowing what the thing spit out.

      I’m not particularly a fan of them, and I honestly believe that in time, we (as in humanity) may come to regret their invention and our likely inevitable overdependence on them.

      But I’m also not an ignorant neophyte. I’m actually very well aware of the limitations and problems with LLM’s, probably more than most people, and despite that, I’ve found them to be useful in some contexts.

      First, you’re not wrong to call them “random text generators,” but that really is an oversimplification. It’s not just a flat index of word frequencies. Tehy’re trained with billions (or even trillions) of parameters that encode patterns across syntax, semantics and reasoning heuristics. From a purely mathematical point of view, it’s actually pretty intersting. But saying it’s “just statistics” is a bit like saying the human brain is “just firing neurons.” Yeah, it’s technically true, but it misses the interesting part.

      So yes, because they are probabilistic sequence models, they are perfectly capable of fabricating “facts” (i.e., hallucinations, especially with multi-dimensional requests or as the context window gets filled up), making overgeneralizations like missing edge cases, or have issues with compression bias, shallow chain-of-reasoning (although this one is getting a little better), ambiguity drift, context inference biases, fidelity drift when repeatedly iterating through details, context window size limitations for long conversations, etc. I have some experience dealing with each of these limitations to some extent.

      So I know all that going in, and since I do, I know not to rely on them as primary sources, and also how to account for many of those problems and a number of strategies to somewhat limit and mitigate the problems (e.g., authoritative source anchoring, chunking, forcing tabular output, explicitly prompting for blanks instead of it making guesses, etc). If I’m doing anything serious, I’ll use all the tools at my disposal, but I still know that if the output isn’t testable, it’s not trustworthy and I know not to rely on it for expertise; it’s just a tool I use to speed up my info gathering. I think of it as supplementary rather than authoritative.

      So it’s an occasionally useful tool that’s saved me some time by giving me a starting point to quickly gather ideas and point me to things I might not have thought of before I check with reliable sources (like you) that can actually confirm or invalidate them.

      I don’t expect to change any minds about it, and in truth, I don’t really even want to, but you always take the time to thoroughly answer people’s questions, and I wanted to respect that in turn.

    • Zhane HernandezZ

      notepad++ flagged as malicious, should i worry?

      Watching Ignoring Scheduled Pinned Locked Moved Security
      4
      0 Votes
      4 Posts
      2k Views
      Zhane HernandezZ

      @xomx Thanks for your input, the analysis does seem to be a bit on the… overly cautious or paranoid side.
      maybe it’s time to find a new resource for risk analysis!