• Mover abas

    3
    0 Votes
    3 Posts
    367 Views
    Mark OlsonM

    I seem to recall that there was a bug in the main GitHub repo about this kind of issue, where it was extremely slow to move tabs when a lot of tabs were open.

    I also seem to recall that this issue was solved, probably in the last year. I’d recommend that @Wilson-Azambuja-Porto-Alegre-RS install the most recent Notepad++ version and see if that fixes the problem.

  • using the command line switches, but not working

    2
    0 Votes
    2 Posts
    172 Views
    PeterJonesP

    @Dan-McGovern ,

    -openFoldersAsWorkspace works just fine with -settingsDir and -titleAdd and other similar options, in my experiements.

    But, as far as I can tell, once -openFoldersAsWorkspace is specified anywhere on the command line, all path arguments are treated under the rule, “if it’s a folder, put it in the FolderAsWorkspace panel, and don’t open any file-paths directly”.

    That seems like the intent, because I don’t think it was considered that notepad++.exe myfile.txt -openFoldersAsWorkspace SomeDirectory\ would be a normal use-case (ie, when adding the feature, didn’t think that you’d want to open a file from one location, plus a folder-as-workspace from another, in the same command-line)

    If you don’t have the -multiInst argument, and if you don’t have the multi-instance preference set, then you could break it up into two calls of notepad++.exe

    "%np%" -settingsDir="..." -openFoldersAsWorkspace "%workspace%" "%np%" -settingsDir="..." "%file%"

    In that incantation, the oFAW has to come first, because of the known-and-never-solved issue that oFAW doesn’t work on an already-running instance of Notepad++.

    … But since I seem to remember that you do have the multi-instance preference set, that’s not likely to work for you. In which case, until you do a feature request, and it was accepted and implemented and released, I don’t know that you’ll get exactly what you want.

    I’ll update the manual to better explain current behavior with the oFAW option.

  • PHP Linter PythonScript

    8
    0 Votes
    8 Posts
    652 Views
    PeterJonesP

    @pbarney said in PHP Linter PythonScript:

    my impression is that Pythonscript ships with 2.8

    From Plugins Admin, PythonScript v2.1.0 uses Python v2.7.18 (as far as I am aware, there is no such thing as Python v2.8).

    However, if you go to the PythonScript releases page, you will see that there is also an “alpha” track of PythonScript v3.0.x (currently at 3.0.24), which use Python v3.12.xx. This is the route I personally recommend (caveat below).

    The maintainer of PythonScript has chosen not to take PythonScript 3 out of “alpha” until it fully supports non-unicode encodings (ie, until it supports the 1980s-style character set encodings), so until that point, to get a maintained version of the Python interpreter for PythonScript, you have to manually install an alpha version of PythonScript – essentially, you have to put up with legacy syntax of Python if you want to deal with legacy non-unicode encodings of text. I personally have no need of supporting 80s technology for file encodings (and I pity anyone for whom their circumstances demand that they deal with file encodings that haven’t been brought into this millennium anytime in the last quarter century), so I use the 2020s version of Python for my PythonScript. (My personal opinion is that PythonScript should start shipping PythonScript 3 as non-alpha, and that they just prominently make it clear that if you have to deal with the old character sets that you should instead install the outdated PythonScript2 version from the releases page. But my opinion on such things holds no weight.)

  • Contribution Guidelines Regarding LLMs

    5
    0 Votes
    5 Posts
    330 Views
    Alan KilbornA

    @rdipardo

    I didn’t mean that I run and hide from anything that AI is touched or influenced by. That wouldn’t be practical.

  • Looking for dBASE IV (old DOS versions) UDL

    24
    2 Votes
    24 Posts
    4k Views
    Lycan ThropeL

    @James-Burke-0 ,
    Yeah…okay, whatever. It’s clear now, you don’t know what you’re talking about and pushing a product that isn’t what you say it is.

    Your statement is false, period. It can’t read all known DBF types, as you state because it can’t read level 7 DBF files, which has been the latest official dBASE file type for the past approx 28 years almost since it’s been written to work in Windows, so I’ll consider your postings to be uninformed spam. Have a nice day.

  • Editar formulas de excel en Notepad

    10
    0 Votes
    10 Posts
    956 Views
    PeterJonesP

    @john-murphy said in Editar formulas de excel en Notepad:

    You can click on the cell so that the formula goes up to the input window (I don’t know what it’s called). Highlight the formula there, not within the cell itself. Then Cntl C in excel and Cntl V in NP++

    You didn’t actually read the question. The people who answered earlier did. Please don’t try to “help” by giving answers that just use keywords, instead of actually understanding the question asked.

    I cannot prove you are using generative AI, but it sure feels like it. That is expressly forbidden in this forum. You’ve had two posts like that. If you make a third post that has the same unhelpful pseudo-replies, you will be banned.

  • 0 Votes
    7 Posts
    504 Views
    PeterJonesP

    @john-murphy said in where exactly can I find the file where the new macro I just saved was saved?:

    Also, go to to the search input window and type name:bbb or whatever you named the file if it’s not bbb. Windows will find it. Of course you need to search from a folder that you can reasonable expect to find the file, so that the search doesn’t take too long.

    That has nothing to do with the question asked. You do not name the file that Notepad++ stores macros in. It’s defined internally, and the answers above already explained where to find them.

    I cannot prove you are using generative AI, but it sure feels like it. That is expressly forbidden in this forum. You’ve had two posts like that. If you make a third post that has the same unhelpful pseudo-replies, you will be banned.

  • Line wrap on line 1000 can cause continual wiggles

    3
    0 Votes
    3 Posts
    357 Views
    Alan KilbornA

    @Steve-Rhoads

    This is a known issue, reported several times. Here’s one of those times (that links to some others): https://github.com/notepad-plus-plus/notepad-plus-plus/issues/13341

  • Feature Request: Ask before deleting record of current files

    3
    0 Votes
    3 Posts
    403 Views
    xomxX

    @Freon-Sandoz-0 said in Feature Request: Ask before deleting record of current files:

    from the record

    Maybe it’s about the already opened N++ session files and not about the recent files list?

    If so, rather check the Preferences > Backup > Remember inaccessible files from past session.

    More info in: https://npp-user-manual.org/docs/session/#inaccessible-files-in-an-active-session

  • Help for a JSON formatting.

    4
    0 Votes
    4 Posts
    2k Views
    PeterJonesP

    @Mudassir-Raza said in Help for a JSON formatting.:

    That JSON snippet looks fine — it’s just not indented properly, so it’s hard to read.

    And has syntax errors, since there are four arrays and two objects which are not properly terminated.

    You can format JSON in a few ways:

    In Notepad++, install the JSON Viewer plugin (as you already did).

    Or the JsonTools plugin mentioned above. I tried both on the original data: JSON Viewer refused to format it, because of the syntax errors. JsonTools warned about the syntax errors, but then made its best guess to close off the arrays and objects and then formatted it.

    Or, if you just want something quick in the browser, try a free online JSON viewer — it shows tree view and highlights errors instantly.

    This is a Notepad++ forum. Unless Notepad++ has no way of doing it, and especially for first-time posters, it is frowned upon suggesting external tools. And since both JSON Viewer and JsonTools can help with that messy data, to some extent, there is no reason to advertise external tools – they both have error detection, they both have pretty-printers, and they both have tree-view panels available, which covers all the features you mentioned of the website, so I can see no good reason to bring up that site.

    Given that the conversation was a year old, and the only new information you added was the advertisement for an external website, I was tempted to ban you as a spammer. And since I’m still not convinced that website traffic isn’t the only reason you posted, I am de-linkifying your post. Anyone who is curious about the site you’ve advertised will still be able to figure out where it is, but it will prevent automatic crawlers from wasting site bandwidth here as a redirect to the site you advertised.

  • 0 Votes
    11 Posts
    4k Views
    PeterJonesP

    @ModelsRUs ,

    Reading the comments on the issue you created, it appears the plugin author has helped your confusion, both with regard to Compare coming pre-installed or not (which it doesn’t), but also regarding uninstalling it.

    But for those who don’t follow links to the issue boards, the short version:

    Notepad++ does not come pre-installed with ComparePlugin or ComparePlus plugin. It is safe to delete D:...\Notepad++_portable\plugins\ComparePlugin\ (as long as N++ is not actively running when you delete it), and it will not in any way, shape, or form mess up nppPluginList.dll. Not noted in the comments: the nppPluginList.dll essentially tells Notepad++ where to download plugins using the Plugins Admin interface; and while it does read the N++ plugins directory to find out what plugins and versions are currently installed, it doesn’t care if that changes outside its control.

    What happens if I install “ComparePlus” without “Compare” being removed?

    There would be two plugins in the Plugins menu, and each would set up its own toolbar buttons (and I’m not sure you could tell which buttons go with which plugin). And if you used the ComparePlugin comparison, it wouldn’t work right in Dark Mode (see here for a recent issue about that) the two can technically coexist, but you would just always have confusion over which you are using. the intention is to only have one of the two plugins installed. (And since ComparePlus was released, the intention has been for users to uninstall ComparePlugin and just use ComparePlus.)
  • KNOWN ISSUE: 8.8.2 doesn't appear to be digitally signed

    5
    0 Votes
    5 Posts
    1k Views
    PeterJonesP

    UPDATE: With the release of v8.8.7, Notepad++ is once again signed by a GlobalSign-issued certificate, as well as the Notepad++ self-signed certificate.

  • quick toggle multi-line tab on/off.

    8
    0 Votes
    8 Posts
    2k Views
    N

    @PeterJones
    That’s really unfortunate to find out… Even though it was made possible by mistake, we actually had it! So it’s certainly technically possible to implement. Wish an exception can be made for the Multi-line feature and an ID code can be assigned to be able to call upon it outside of Preferences.
    Well thank you very much for the reply because I know now, so appreciate it.

  • 0 Votes
    9 Posts
    588 Views
    H

    @Terry-R said in Cannot update portable version -- Windows keeps using old version even though it's deleted:

    @helpdata said in Cannot update portable version -- Windows keeps using old version even though it's deleted:

    Well, you don’t know the reason it changed the default application. It may have been you to make that occur even if you deny that was the case.

    As I said, I REPEATEDLY changed the default app for text files to the I: drive version. I literally navigated again and again to that drive and set that version of the program as default. It did not “take” in Windows, perhaps because the executable had the same name, so Windows decided it’s the same program and did not update. A bug.

    Personally I would just install Notepad++ and then if I needed to maintain version control turn off the auto-updater option as I stated in the previous post.

    I’m considering that, although I do like portable apps. Any more problems and that’s what I’ll do.

    PS your statement of “The I: drive where the portable version has always lived,” is clearly incorrect as has been proven.

    Um, no, it has always been on the I: drive, and the I: drive is backed up to the H: drive. This is definitely a Windows issue. Until recently, Windows did not even allow portable apps to be set as default apps:
    https://learn.microsoft.com/en-us/answers/questions/2795276/is-it-no-longer-possible-to-make-a-portable-progra

    Anyway, thanks for the help.

  • UDL - combining C++ folding and Nasal highlighting

    5
    0 Votes
    5 Posts
    406 Views
    PeterJonesP

    @Joe-Wilton,

    Obviously there is some interaction between the characters in the Operators 1 list and the Folding in Code 1 and 2 styles.

    The intention for UDL is that no given token (symbol or word) is found in two separate fields: they are supposed to be unique, because you cannot style a token both as an Operator and as a Folding-In-Code, as the two are mutually exclusive. There is an internal order they are processed, but that order is not guaranteed (a few versions back, Notepad++ actually changed the order of a couple of the fields, which broke some UDL that were relying on the old order of processing to handle conflicts in their definitions). If you make the UDL without conflicts, you won’t have problems if Notepad++ changes the internals again.

    (By “no given token … is found”, I mean “is found alone”. For example, you could have a fold-open2 of { and an operator of {{ – if it finds double-brace, it will render it as an operator, but a single-brace will be a fold-open2.)

  • 15sec freeze with word wrap

    2
    0 Votes
    2 Posts
    162 Views
    PeterJonesP

    @Cheok-SC said in 15sec freeze with word wrap:

    Is Word Wrap really that heavy of a performance cost?

    Yes.

    There’s a reason that Settings > Preferences > Performance automatically deactivates word-wrap for large files, when all the other performance issues start with the checkboxes off, so you have to decide to also deactivate other features for large files. Word wrap and syntax highlighting are the two biggest performance costs, because they involve processing the entire file

  • Weird crash

    7
    2 Votes
    7 Posts
    527 Views
    N

    @Ekopalypse

    I recompiled with your code modification and I can’t crash Notepad++ anymore ! :)

    So I can confirm your modification fixes the issue on my side. Thank you !

  • v8.8.6 - the function list is not working

    8
    0 Votes
    8 Posts
    721 Views
    PeterJonesP

    @tino-tesu said in v8.8.6 - the function list is not working:

    That was a easy fix. I could add a new line after.

    Great.

    Notepad++ has a long-standing bug wherein if you have a FunctionList parser that includes a class, every class must have one or more whitespace after the last “closing” tag. Usually, it shows up with C/C++ classes, which end with } … but the bug also occurs for other classes in functionLists.

    The reason why v8.8.5 worked without the newline is because the v8.8.5 FunctionList parser for SQL didn’t try to do classes, so didn’t trigger that bug.

  • "New UI" for NPP here

    5
    -2 Votes
    5 Posts
    606 Views
    G

    @PeterJones

    If you have compare plugin installed you can use it, compare english.xml with english_customizable.xml I provided and you’ll see all differences. Anyway below is explanation of couple of them (ones that you didn’t mention).

    Ps. you probably know this but you can make context menu and tab context menu work in both localizations by referring to items by their IDs instead of their names. IDs can be found with NPPUISpy plugin or by reading english.xml localization file.

    renamed “Window” menu as Tabs as to my observations items inside are tabs, not windows.

    “containing folder”. I have not heard this term used anywhere else than NPP. Most common name for showing file folder in explorer is “Show In Explorer”, sometimes also “Open in Explorer”. IMO in this context “current folder” is more intuitive.

    “close multiple documents” --> “close multiple tabs”. How often people use NPP to edit “documents” ? For me I edit mainly script or programming source code, txt, ini, xml files, etc… Document gives completely wrong impression (in my opinion) so tab is a better term.

    “edit - insert”–>“edit - insert date, time”. If you use the program seldom you will not remember what sort of insert options there are inside so better to have more descriptive menu item name.

    “Convert case to”–>“Case”, “Line Operations”–>“Line”, “EOL Conversion”–>“EOL”, unneeded words cluttering UI

    “Auto-Completion”–>“Auto-Complete”, latter is de-facto term used for this feature

    “View - View current file in”–>“View - Open with”, Open with is more common way to describe this feature

    “Encoding - Character Set”–>“Encoding - Non-English Encoding”. Character set is pretty ambigous name but this submenu contains only encoding related to non-english languages so I thought this name would be more descriptive.

    “Language - User Defined Language”–>“Language - UDL Settings”. IMO things related to UDL were maybe most confusing and illogical part of NPP UI. So I did a lot of changes there.

    “Reload from Disk”–>“Reload”. Usually it is called just Reload or Refresh

    “Open in default viewer”–>“Open in default program”

    “Folder as Workspace”–>“Workspace - Panel”

    “Synchronize Horizontal Scrolling”–>“Sync Horizontal”

    “Focus on Another View”–>“Focus on Other View”

    “Open User Defined Language folder…”–>“Open userDefineLangs Folder…”

    “Notepad++ Online User Manual”–>“USER MANUAL”

    “Run…”–>“Open External Program…”

    “Close - Close All BUT This”–>“Close - Other Tabs”

    Close - Close All to the Left"–>“Close - Left”

    “Find in Files”–>“Search in Multiple Files”. This was especially confusing. I had no idea what Find in Files would mean but Search in Multiple Files is pretty self explanatory.

  • Change of the selection mode

    2
    1 Votes
    2 Posts
    312 Views
    PeterJonesP

    @guy038 said in Change of the selection mode:

    Open the search dialog ( Ctrl + F )

    I just tried that. Then I tried doing just a Ctrl+A to select all the text more simply, and the Alt+Shift+UpArrow trick still worked to turn that stream into a zero-width column. That’s actually useful, as I often like getting a column at the beginning of the line. (It’s useful for going the other way – using the column editor to insert the line numbering.)

    But be warned: if the final line of the file doesn’t have a newline, then my method will end up selecting a rectangle from the end of the last line to the beginning of the first line:
    5380904c-9ee6-4c11-a985-d3ba42f4f6c9-image.png
    The regex version avoids that by making sure it only selects lines that end with a newline.

    This usually won’t be a problem for me, since I usually have a newline at the end of my file. I’ve just created a macro of the Ctrl+A then Alt+Shift+UpArrow sequence, and assigned a shortcut. It might just enter my standard workflow. So thanks, @guy038.

    Actually, I just found another difference. @guy038’s regex vesion will only select a “paragraph” worth, since it will stop at the first blank line. So if you have

    intro 1. blah 2. blah 10. blah ending

    If your cursor is on intro or the line after, the regex will select the list. But if you’re on line 1. blah, then it will only select 2 and 10. And if you’re on the last line of the list, then it will actually select the ending paragraph.

    So it depends on what quirks you want, and whether you want “paragraph” or “whole document”, whether you should record the macro with my Ctrl+A or @guy038’s regex, or a slightly modified regex to match your most common use case(s). Since macros record searches, any of those could be made into a macro for a single-keystroke for what you want.