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
      450 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
      2k 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.

    • 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
      225 Views
      PeterJonesP

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

      was ‘HIPS’ in Comodo.

      Glad you found it

    • Vitalii DovganV

      XBrackets 2.0 is coming!

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

      @Ekopalypse
      Wow, thank you!

    • ?

      auto-complete only if the word is much longer than what you typed

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      8
      0 Votes
      8 Posts
      2k Views
      Lycan ThropeL

      @PeterJones ,
      I have this love/hate thing when using auto correct systems (Android for example) versus autocompletion and it types a completely different word than I intended because fat fingers hit the wrong key on the mini screen keypad. :-(

    • 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
      1k 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
      1k 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
      159 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.

    • Jack shankle 0J

      Can't print with notepad++

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      13
      0 Votes
      13 Posts
      8k 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
      905 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. :-)

    • General CoderG

      .Net versions

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

      @General-Coder
      I had the same issue when I installed a new Visual Studio 2022 and forgot to install the packages for C++ development.
      Regards
      Guido

    • 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
      143 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.

    • Jarkko RantavuoriJ

      Privacy policy of Notepad++

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      7
      0 Votes
      7 Posts
      239 Views
      Alan KilbornA

      I should have said that I think it is a reasonable request simply to ease this problem:

      if your boss sends you to check for privacy proof you can’t really give him anything other than “I believe it is safe”

    • 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
      619 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
      22k 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
      121 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&°"), 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
      130 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)

    • G

      h1's in function list for navigation

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      5
      0 Votes
      5 Posts
      2k Views
      MJKlodt747M

      @PeterJones, that works for me. Thanks!

    • BUILMOND interactiveB

      Strong Flickering

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      5
      0 Votes
      5 Posts
      162 Views
      BUILMOND interactiveB

      Alright Thanks to all of you for the Instructions,

      the Rendering Mode wasnt the Case, I Updated the Nvidia Driver and then Restarted the Laptop and Found out that My Windows did updated too through the Restart, So Weather it was the Windows update or the Nvidia Graphics Driver update,

      THE ISSUE IS FIXED :)))

      Thank You All ♥

    • martin-honnenM

      UDL with two keywords current-date and current-dateTime only colours current-date

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      5
      0 Votes
      5 Posts
      157 Views
      Lycan ThropeL

      @PeterJones ,
      This is the hardest part of doing the UDL’s I think. Even after we’ve done the original dBASE UDL you helped with, I’m finding that doing the earlier versions now, and fine-tuning the keywords, operators and the nesting precedents was the most confusing and finer control over the language. Doing the earlier versions I’ve figured out how to keep an apostrophe, from screwing up my code highlighting, while still keeping it as a delimiter by simply NOT allowing it to be included in the other delimiters nesting options. In turn, dBASE also has a JSON object, and with a little fine tuning, I was able to make the delimiters in dBASE also work to outline a JSON structure, so far. If there are other options in a JSON structure I’ll have to learn that as I go, but for now, the simple W3C version showing it, it works right, as well as the dBASE delimiters without messing things up.

      Obviously a quick UDL is possible with just the categories to put things in, but I’m finding that the real power of the UDL system is in the finer use of the mechanisms like the nesting, differentiation of forward search/backward search, prefix mode, etc works much better when combined to get a desired result. It’s actually much more powerful than I originally figured. I wish I’d had a good explanation/example like you’ve done, back then…although, with so much to include to make a UDL almost a complete language system, it would have probably been too much to absorb at the time and would not have availed me much improvement at the time. It’s something that requires a lot of trial and error and understanding of the mechanisms and time playing with it, I think, to get things just right, if it’s at all possible to do. :-)