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
    • Ragnar LodbrokR

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

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      15
      0 Votes
      15 Posts
      272 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.

    • tino tesuT

      v8.8.6 - the function list is not working

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      8
      0 Votes
      8 Posts
      127 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.

    • D

      Find start of line up to specific character, and copy this to end of line.

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · · replace
      8
      1 Votes
      8 Posts
      207 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. :-)

    • G

      "New UI" for NPP here

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      5
      -2 Votes
      5 Posts
      271 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.

    • VTGroupGitHubV

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

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      5
      0 Votes
      5 Posts
      101 Views
      Vitalii DovganV

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

    • donhoD

      Notepad++ v8.8.6 Release

      Watching Ignoring Scheduled Pinned Locked Moved Announcements
      5
      4 Votes
      5 Posts
      2k Views
      xomxX

      @donho
      Congrats!
      Looking forward to the background story behind it, is it there a Notepad++ Inc. or LLC now? :-)

    • caramadraC

      Pasting columns into txt from xlsx

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      4
      0 Votes
      4 Posts
      82 Views
      caramadraC

      Thanks, @Terry-R and @PeterJones - there’s a lot in that plugin that I’m not sure I’ll need or understand, but the Elastic Tabs does what I need for now.

    • F

      Default LF and not CRLF

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      3
      0 Votes
      3 Posts
      52 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.

    • Daniel TrujilloD

      ViSimulator Not supported anymore?

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      10
      0 Votes
      10 Posts
      8k Views
      Dave HouserD

      @PeterJones Thanks for the reply been waiting for something like this for years! Just set up the latest 1.2 version (released yesterday coincidentally) . NppVim is wonderful! It does everything ViSimulator did, it also fixes a few minor issues I have delt with in ViSimulator and added features.

      Fixes:

      Works in newest versions of Npp + 64 bit. Using v $ actually selects to the end of the line now. ViSimulator went to end selection minus one character at the end. Can use Ctrl+f to NP++ find in regular or edit mode. In ViSimulator I needed enter edit mode to use Ctrl+f to find.

      Added feature:

      Can use : <integer> to jump to line numbers now, had to use Ctrl+g to use Npp’s one becuase ViSimulator did not support it. Can now use inputrc commands I used in the past like c i w, and y i w to cut or yank a whole word while in the middle of it

      This is great, I’m really glad this exists now!

    • László BotkaL

      Run truncates two or more spaces to one space

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      3
      0 Votes
      3 Posts
      117 Views
      László BotkaL

      Thank you, your help was very useful and effective.

    • LeeL

      [FORK] after v8.8.2 is slow to launch

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      3
      0 Votes
      3 Posts
      78 Views
      PeterJonesP

      @Lee ,

      Since it last worked in v8.8.2, the problem wasn’t actually with the v8.8.6 specifically, so it doesn’t belong in the v8.8.6 announcement, which is only for regressions between v8.8.5 to v8.8.6 specifically. Problems that aren’t specific to the newest version should be talked about in the Help Wanted section (where I moved your post), not in the announcements. If it can be confirmed as a bug in Notepad++, we will then encourage you to create an bug report in Notepad++'s GitHub-based Issues tracker.

      There is a command-line argument, -loadingTime, which could help debug a slowness.
      Are you able to edit the shortcut that you use, so that you can see what it says takes a while?

      Actually, do you have anti-virus or similar computer-protection software? Because v8.8.3, which is the first version that you have a problem with, was the first version to use a self-signed certificate, rather than a DigiCert certificate. I am thinking that it’s likely that your AV software is getting hung up on that – so it scans notepad++.exe once per boot. Follow the instructions in the 8.8.3 description (or equivalently, in the User Manual’s Self-Signed Certificate section, choosing Local Machine) to make sure you’ve got the certificate installed correctly. If that’s not enough, there’s an example in this discussion, the user eventually found that going to the “HIPS” setting in Comodo Internet Security (the AV/safety SW on that machine) and setting it to allow Notepad++ was enough to get rid of the problem: so you should check your AV/safety SW for HIPS or similar settings to allow/trust/whitelist certain apps.

    • Revs DeeR

      Option to skip "Create new file" prompt(s) when pressing Alt+F6 while text is selected

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      3
      0 Votes
      3 Posts
      190 Views
      Revs DeeR

      @PeterJones
      Thank you, that was useful :) I’ve updated shortcuts.xml so Alt+F6 now ignores selected text.

      <Command name="Open new instance" Ctrl="no" Alt="yes" Shift="no" Key="117">$(NPP_FULL_FILE_PATH) -nosession -multiInst</Command> <Command name="Open selected file path in new instance" Ctrl="no" Alt="no" Shift="no" Key="">$(NPP_FULL_FILE_PATH) $(CURRENT_WORD) -nosession -multiInst</Command>

      da188c0f-2184-4898-ae3a-b65a5ba09cf8-image.png

      I hadn’t taken a moment before posting to find what Alt+F6 was labelled as. I’ve been using this command via the keyboard shortcut for a long time and not via the Run menu.

      For basic users, I think it could be useful to have this as an out of the box option e.g. File > New Window (Ctrl+Shift+N).

      Thanks again!

    • TG KingT

      Font size is different (wrong) in the latest version

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      3
      0 Votes
      3 Posts
      115 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.

    • D

      Notepad++ DLL Hijacking Vulnerability (CVE-2025-56383)

      Watching Ignoring Scheduled Pinned Locked Moved Security
      10
      0 Votes
      10 Posts
      1k Views
      donhoD

      https://notepad-plus-plus.org/news/v886-released/

    • CoisesC

      Unicode Normalize: A simple plugin

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      3
      4 Votes
      3 Posts
      172 Views
      CoisesC

      @guy038:

      You’ve given me something to consider.

      It had not occurred to me that converting to “normalization form composed” could decompose a fully pre-composed character. I see now that the specification does describe how that can happen. It just wasn’t intuitive that it could do that, and I hadn’t read closely enough. So there are pre-composed characters that exist, but cannot be synthesized from their components (at least not by these algorithms). Ugh. That’s going to mess with something else I’m trying to build.

      I’m not sure how useful any of this is — I threw it together when I was investigating some oddities with Korean text display. I wanted a fast way to convert between decomposed and composed forms so I could try to figure out what was happening.

      I will see if I can find a reasonable way to show all normalization forms. I entered your request as Issue #1, so hopefully I won’t forget about it.

      Showing the Unicode code points, as well as the UTF-16 and UTF-8 code units, for a character or a selection of characters is another thing I would like to do. If I do it, I think I’m more likely to put that in a new, different plugin that would use a docking panel; I could perhaps include the encodings for the canonical forms in the same display.

    • guy038G

      Change of the selection mode

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      2
      1 Votes
      2 Posts
      94 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.

    • Vitalii DovganV

      NppExec v0.8.10 has been released!

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      1
      4 Votes
      1 Posts
      57 Views
      No one has replied
    • donhoD

      FYI: Notepad++ v8.8.7 Release Candidate will be out in 1 day

      Watching Ignoring Scheduled Pinned Locked Moved Announcements
      1
      3 Votes
      1 Posts
      63 Views
      No one has replied
    • guy038G

      Featured special event !

      Watching Ignoring Scheduled Pinned Locked Moved Blogs
      1
      5 Votes
      1 Posts
      57 Views
      No one has replied
    • h-jangraH

      New Vim modal editing plugin release

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      4
      0 Votes
      4 Posts
      3k Views
      W HW

      @h-jangra
      I’ve been waiting for this plugin for quite long, thank you for your contribution!
      I just tried out the initial release (v1.1.00) it works well in recent npp version, and I’m very happy to just navigate using vim commands.

      I’m looking forward to updates! How can I sponsor your work?