• I need a function/plugin to extract only unnecessary text from lines

    15
    0 Votes
    15 Posts
    569 Views
    mpheathM

    @PeterJones said in I need a function/plugin to extract only unnecessary text from lines:

    @Ragnar-Lodbrok ,
    I think the answer is “there is no way to do it in one meaningful regular expression, because your data is not consistent enough”

    The data is not consistent as it appears to be harvested data:

    https://github.com/RagnarLodbrok1981/proxy-scraper-checker
    forked from
    https://github.com/monosans/proxy-scraper-checker

    That may explain the pipe characters in the log like as shown in the repository’s readme image. This appears to be dishonest obtained data.

  • Default LF and not CRLF

    3
    0 Votes
    3 Posts
    124 Views
    PeterJonesP

    @PeterJones said in Default LF and not CRLF:

    only one instance (in theory, the last to close) has permission to write the settings to disk.

    that (or my original phrasing of “in theory, the first instance”) are both technically right, and practically wrong. it’s actually very confusing, and it depends on which configuration file you are talking about.

    I took a portable, and put it into multi-instance mode. then opened two instances. Instance 1, I set to Dark Mode + Small Toolbar Icons, instance 2 I set to Light Mode + Big Toolbar Icons. I closed Instance 2, and looked, and saw that config.xml was saved, but session.xml did not save. then I closed Instance 1, and saw that config.xml was saved again and session.xml was saved this time. So in this run, both were able to write to config.xml, but only the first instance was able to write to session.xml. When I ran one instance of Notepad++ after this, it was in Dark Mode + Small Toolbar, which shows that instance 1 definitely “won” for the config.xml

    I started a new pair of instances – this time, they both started out in Dark Mode + Small Icons. Then I changed Instance 1 to Light Mode + Small Icons, and changed Instance 2 to Dark Mode + Big Icons. I closed instance 1, and saw that both config.xml and session.xml were saved. Then I closed instance 2 and saw that config.xml was saved but session.xml was not. This seems to confirm my working mental model. When I started one instance after this, it was Dark Mode + Big Icons, which was the instance 2 setting, and thus the last one closed “won” for config.xml again.

    Hence, the way I will phrase things, at least based on my best understanding for now:

    When multiple instances of Notepad++ are open, each will write its config.xml when it exits, so the last instance closed is the one whose config.xml will “win”. However, only the first instance of Notepad++ in multi-instance mode gets permission to write to session.xml, so only that first instance will ever save its session.

  • 1 Votes
    8 Posts
    291 Views
    D

    @gerdb42 Thanks. A little tricky, but will be useful once I’ve worked on a couple of simple ‘test’ examples. It’s not exactly like the Npp version, apparently, but will serve as ‘fairy bike wheels’ until I master this stuff a little more. :-)

  • Run truncates two or more spaces to one space

    3
    0 Votes
    3 Posts
    148 Views
    László BotkaL

    Thank you, your help was very useful and effective.

  • Replace Notepad++ as Default W10 editor. How to ?

    2
    0 Votes
    2 Posts
    247 Views
    PeterJonesP

    @AlainCh2 said in Replace Notepad++ as Default W10 editor. How to ?:

    Activated in right click > Open With
    Open with >Choose another App \ Browse to Program Files/Notepad++ 🙄

    -That’s not enough … …crazy as it can be,

    That always worked for me back when I was using Win10. And I just verified I had no difficulty in Win11 getting it to keep Notepad++ as an Open With for .ini files.

    BUT now you have fixed it as > Edit with Notepad++,

    If all you are looking for is the Edit with Notepad++ choice in the right-click menu, when you run the installer initially, assuming it prompted with the UAC prompt, your installation should have included the ShellExtension DLL C:\Program Files\Notepad++\contextMenu\NppShell.dll (assuming you installed newer than v8.5.1; older versions used a different name, and didn’t work with Win11). And it should have registered that DLL so that the Windows Explorer context menu includes that. If something went wrong with that registration, you could open a cmd.exe or PowerShell window in that contextMenu directory, probably using “as Admin” when open that window, and then follow the manual DLL registration instructions instructions from the user manual. (That page in the user manual has a lot of different tactics to get the Edit with Notepad++ or similar, including a registry entry that adds it as a verb to all files, so that you don’t have to do the OpenWith on each file type. But the Shell Extension DLL is really the preferred method, because it’s designed to do things the way Windows likes.)

    With the modern Notepad++, that same DLL should work to get the right-click entry with either Win10 or Win11.

    If you got it working using an alternate method (like the registry edit shown in the first post), great. This is just presenting an alternate method, and the way that Notepad++ intends you to get Edit with Notepad++ functionality.

  • Font size is different (wrong) in the latest version

    3
    0 Votes
    3 Posts
    143 Views
    CoisesC

    @TG-King:

    In addition to @PeterJones’ suggestions, also be sure you haven’t accidentally zoomed out (for example, by using the mouse wheel with the Ctrl key down): View | Zoom | Restore Default Zoom will set zoom back to normal.

  • Open files with NPP_EXEC then switch to the tab of the first opened file?

    5
    0 Votes
    5 Posts
    157 Views
    Vitalii DovganV

    I’ve added this case to the Manual!
    https://d0vgan.github.io/nppexec/?q=4.6.20

  • WebEdit Plugin for NPP x64 ?

    8
    0 Votes
    8 Posts
    2k Views
    Richárd StockingerR

    A little “almost” missed update: WebEdit has been added to the nppPluginList and is available in Notepad++ v8.8.6. 🥳

    Regardless, I still would like to add a few more small features to the plugin. I’m trying to make these available in the latest releases,* and if everything works fine, I’d like to eventually submit them to the nppPluginList with a new (and a last?) PR.

    * To try it out, just overwrite the C:\Program Files\Notepad++\plugins\WebEdit\WebEdit.dll file with the downloaded and unzipped one – but make a backup anyway. ;)

  • 0 Votes
    7 Posts
    360 Views
    Julian RedGJ

    @Mark-Olson I updated all the plugins because, as you suggested, they were too outdated
    thanks a lot

  • Sudden issue with increasing cursor offset proportional to column

    4
    1 Votes
    4 Posts
    127 Views
    Jon LesterJ

    Thanks for the replies both.

    @Coises that seems to have solved it! - all is good again after switching to Direct Write - many thanks!

    I haven’t updated video drivers, but Win10 installed a couple of updates at some point today (KB5065429 and KB5065957) - maybe there was a related change there somewhere.

  • easy way to move a file tab in the open file list

    6
    0 Votes
    6 Posts
    410 Views
    mathlete2M

    @PeterJones said in easy way to move a file tab in the open file list:

    I am assuming you are talking about the sub-window/panel toggled using View > Document List

    Ah, now the original question makes sense. I wasn’t familiar with that feature until now, so without the “>”, I figured that “View Document List” from the post and “open file list” from the title were both referring to the list of files that you see in the File menu, and that they hadn’t noticed that this list is different from the active set of tabs.

    FWIW, I’m a bit surprised that you can’t reorder files from within the View > Document List feature via click-and-drag. I can understand why some people would prefer this vertical layout over the horizontal layout of the tabs; it’s certainly more intuitive than the layout that you get when you check the Vertical option in the Tab Bar section of Settings > Preferences, so perhaps there needs to be a “stacked” sub-option for this layout.

  • Please recommend encryption plug-in

    5
    0 Votes
    5 Posts
    2k Views
    PeterJonesP

    @Justin-Brown said in Please recommend encryption plug-in:

    @PeterJones I know this is an old thread, but it is precisely what I was looking for. But I am curious if you are concerned about the ability to “undelete” the temp file when you use your script. Does rm fully remove the file, including overwriting bits? Or has Windows improved it’s undelete such that it is no longer a concern?

    I hadn’t noticed I used rm. That’s an old win32 port of the gnu linux rm command (from the gnuwin32 bundle; hasn’t been updated in years). I have never looked into the source code, so I don’t know for sure if it overwrites first, but it’s doubtful.

    I also no nothing about the advanced features of windows del or the powershell equivalent. However, I don’t know whether microsoft has made those secure deletes, either. (A Notepad++ forum isn’t the best place to research about windows features, especially the more esoteric aspects.)

    If research in appropriate places doesn’t give you the answers you want or hope for with regard to windows file deletion, you might look into installing a secure command-line-based file deleter; it would very much surprise me if such a utility didn’t exist, but I have never gone looking for it, so I have no specific recommendations. But if you find such a utility that you trust, then use it (with its appropriate command-line options) in place of the rm -rf that I used in the script

  • Folding without closing parentheses or tags

    4
    0 Votes
    4 Posts
    199 Views
    Mister SmittM

    @rdipardo

    This is the perfect option!

  • Alt key interferes with work

    12
    0 Votes
    12 Posts
    2k Views
    PeterJonesP

    @Wester said in Alt key interferes with work:

    Same problem here – I’m studying the software and taking notes in Notepad in both Russian and English, and every time this stupid layout pops up and blocks input.

    As @Michael-Vincent said 3 years ago, hitting Alt is used as an accelerator to keyboard-access menu bars in almost every win32-api-based Windows application. Include Microsoft’s own notepad.exe.

    Who even came up with this?

    A small company called Microsoft has been using that feature in their operating system for decades. I am sorry this bothers you.

    The devs of a program whose only purpose is text input didn’t consider that pressing Alt would ruin typing when switching languages? Or did no one think that there are not only Americans but also people who actually use multiple keyboard layouts? And what are all these weirdos even writing here?

    And then you switch to full on insult mode, being rude to people who had nothing to do with that design decision that happened decades ago. Brilliant, and well argued. (That last sentence was sarcasm, in case you couldn’t tell.)

  • Assigning a special UDL Languages

    5
    0 Votes
    5 Posts
    178 Views
    Franz-Josef BadeF

    @PeterJones
    Again, thanks a lot and good luck/success for your further work.
    Ps. Do you know perhaps an old program “VEDIT”? I worked with it for some decennies ;-) , but …

  • N++ opens ANSI file incorrectly in Win11 - why?

    12
    2 Votes
    12 Posts
    495 Views
    Kim S. AndreasenK

    @Coises
    Thanks, but I am pretty sure that I have tried that without success,
    Perhaps the reason it didn’t work is that I probably had the ‘Use Unicode UTF-8 for worldwide language support’ checked, which according to @Peter Jones would invalidate the solution.

    Thanks a lot to both of you for valuable and knowledgeable support!

  • No me salen tildes ni s'imbolos del idioma espa;ol

    4
    0 Votes
    4 Posts
    161 Views
    CoisesC

    Since you typed this message in Spanish, I guess you speak primarily Spanish.

    Since you did not get proper letters with accents or tildes in your message, I guess you are using a computer that was set up for English. What to do depends on whether this is your computer or whether you are using a computer that belongs to someone else.

    If you are using a computer that belongs to someone else, or that is controlled by your school or your employer, then you should explain your problem to them and ask for assistance.

    If it is your own computer, then you should change the language settings to use a Spanish keyboard. You should be able to find instructions by searching for something like how to install Spanish keyboard on Windows. Unfortunately, this is not the right forum for a detailed discussion of that, since it is really a Windows problem, not a Notepad++ problem. The problem can be fixed; you will get better answers by searching than anything I could just paste in here.

    Traducido del inglés con Google Translate:

    Como escribiste este mensaje en español, supongo que hablas principalmente español.

    Como no se ven las letras con acentos ni tildes correctas en tu mensaje, supongo que estás usando una computadora configurada para inglés. La solución depende de si es tuya o de si usas una computadora de otra persona.

    Si usas una computadora de otra persona, o que está controlada por tu escuela o tu empleador, deberías explicarles tu problema y pedir ayuda.

    Si es tu propia computadora, deberías cambiar la configuración de idioma para usar un teclado en español. Deberías encontrar instrucciones buscando algo como cómo instalar un teclado en español en Windows. Lamentablemente, este no es el foro adecuado para una discusión detallada sobre esto, ya que es un problema de Windows, no de Notepad++. El problema se puede solucionar; obtendrás mejores respuestas buscando que cualquier cosa que yo pueda simplemente publicar aquí.

  • Help REPLACING content with incremental order (by +1)

    10
    1 Votes
    10 Posts
    1k Views
    CoisesC

    @samsung-s6-Lite said in Help REPLACING content with incremental order (by +1):

    using your method I managed to work out how to do it PARTIALLY using this.

    Find what: SnapRestSeconds = \d+
    Replace with: SnapRestSeconds = (?=match)
    Search mode: Regular expression

    This starts them at number at ‘2’ I need it to start at 30 please, can you help?

    If it started at 2, then you did one sequential Replace with the same replace expression first. That’s OK — just be aware that replacing “continues from where you left off” if the expression hasn’t changed. After you close and reopen the Replace in indicated region dialog, change the expression, do a Replace All or select Clear History from the drop-down menu beside Replace All, counting will start again from 1.

    The expression you want is (?=match+29). (Since match will start from one, add 29 to match to start from 30.)

  • Help required with regular expression

    3
    1 Votes
    3 Posts
    123 Views
    Dominique MegardD

    @Terry-R Oops, I knew it was simple, just the \' which should not have been escaped. And on the site regex101.com only the “Rust” flavor pointed it out !!!
    Thanks anyway for the tips …

  • problem in search

    3
    0 Votes
    3 Posts
    113 Views
    PeterJonesP

    @Ioannis-Karadimitropoulos said in problem in search:

    I search for the string γεα.
    I get all these liens that have γεα inside the verses
    but I do not get those having γεα at the end of verse

    The “like the verse” example you gave is literally in the list of matching results you showed us:
    36801032-dfcb-4995-8a1c-2384713c5f53-image.png

    And, to confirm, when I paste the majority of your post into Notepad++, both of the Line 14919 lines match the γεα

    d7a87610-50de-4dba-bd73-72bf0493d969-image.png

    I