• 0 Votes
    7 Posts
    66 Views
    PeterJonesP

    @shodanx2 ,

    Placing the cursor anywhere on the window and middle-click-dragging left and right

    Interesting. Apparently I am not creative enough to think of clicking on anything but the window/subwindow/panel frame to try to resize a window/subwindow/panel. Since there’s apparently utilities to enable that in other things, I guess you’re not the only one, but it’s just not something I’d ever thought of. (And sorry, in case it wasn’t obvious, unlike @Alan-Kilborn , I didn’t originally understand that you weren’t just trying a different button on the center bar between.)

    Which allows me to middle click drag anywhere on a page and very quickly scroll it up and down.

    That sounds very much like browser-style autoscroll features (though in those, they just click-and-release on the middle button, and that switches to autoscroll mode). And autoscroll as a feature has been rejected time after time after time(*) after time after time after time(*) (where the two *-d times were official word from the developer saying that autoscroll won’t be implemented). So while people obviously like it, the developer has made it clear it won’t be native to Notepad++.

    So a script (as @Alan-Kilborn has given you hints on) or writing a plugin are the only options for your autoscroll-like behavior.

    Regarding the script – if you search the forum for PythonScript and the mouse-based messages, I am guessing you’ll find an ancient script by one of the regulars here who gives an example of intercepting the mouse actions to add features to a script.

  • 2 Votes
    7 Posts
    79 Views
    mpheathM

    @PeterJones If LuaScript/PythonScript can do it with SC_MOD_BEFOREINSERT message then so can Notepad++. It is hard to know what the user may do to aggravate the current idle styling setting. If Scintilla knew best then there would not be multiple settings, rather a leave it with me and I will handle it, OK, no worries.

    SCI_PASTE should send a SC_MOD_BEFOREINSERT message which is why the Lua code posted uses it. It is before text is inserted so it knows that the paste is going to happen which if large, changes the idle setting.

    I like the 1 liner to set to 0. I think the opposite, small file = 3, larger files = 0. Larger files are always going to be proportional with processing problems when time is the measurement. Larger files need like a super computer to match the processing speed of small files.

    P.S. good tracing to the commit.

  • 0 Votes
    4 Posts
    142 Views
    S

    Hello

    Thank you for the responses !

    @Ekopalypse

    I have tried this method

    After installing PythonScript, it was unclear where I could add the script

    open_containing_folder_in_cmd.py

    I tried
    C:\Users\user\AppData\Roaming\Notepad++ (no)
    C:\Users\user\AppData\Roaming\Notepad++\plugins (no)
    C:\Program Files\Notepad++\plugins\PythonScript\scripts (maybe)

    It still wouldn’t appear, until restart (this should, auto refresh I believe, when you open configuration at least ?)

    It appeared in the menu

    0ac210cc-ad88-4800-87c7-58a74d503428-image.png

    But not in the configuration page

    322dddaa-81f2-486f-a484-d2097340a938-image.png

    Click on Plugins->Python Script-> Scripts -> open_containing_folder_in_cmd.py
    Did open cmd.exe in the right location

    Ah ok, from clicking the “new” script button

    The path is
    C:\Users\user\AppData\Roaming\Notepad++\plugins\config\PythonScript\scripts
    The folder was not created during installation apparently !

    Now it does appear !

    cd365908-f84e-46cf-8ff8-9ae887336bc6-image.png

    And yes this works !

    493bdea5-d298-4f7b-869c-b2918b47ebf8-image.png

    Thanks !

    @PeterJones

    Thanks for this suggestion

    I gave this a try as well

    ab026774-25a1-450d-8212-b4bc999595d7-image.png

    Then I edited

    C:\Users\user\AppData\Roaming\Notepad++\plugins\config\CustomizeToolbar.btn

    I pasted your suggested command
    changed the file to a screenshot of the cmd.exe icon I took
    I also added you suggested extra space fix

    File,Open Containing Folder,cmd,,fRgHGCzWpi.png,fRgHGCzWpi.png,fRgHGCzWpi.png View,Show Symbol,Show All Characters,,Icons\allChars.bmp,Icons\allChars_off.ico,Icons\allChars_off_dark.ico

    This did not work yet

    I used webservice
    https://www.icoconverter.com/
    To create a .ico file
    with these settings
    c7397a0a-1735-44fc-a70e-b4b6e891d909-image.png

    and I downloaded the 3 files from the github issues

    https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/PowerEditor/src/icons/standard/toolbar/allChars.bmp
    https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/PowerEditor/src/icons/light/toolbar/regular/allChars_off.ico
    https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/PowerEditor/src/icons/dark/toolbar/regular/allChars_off.ico

    And I placed them in folder

    C:\Users\user\AppData\Roaming\Notepad++\plugins\config\Icons

    Restarted notepad++

    The icon appears and works but the icon is wrong

    f9a8a675-ab97-4ff9-931f-bb7bc7497520-image.png

    I tried these settings

    a95b67a9-69de-4527-9a06-aa6cbbbac32f-image.png

    Also does not work

    0c0e31a7-ed98-4597-a728-94df39b63ab7-image.png

    also no

    d5274fe9-e9c7-422b-b35b-93844462b236-image.png

    also no ???

    Oh wait

    File,Open Containing Folder,cmd,,cmd.ico,cmd.ico,cmd.ico

    should have been

    File,Open Containing Folder,cmd,,Icons\cmd.ico,Icons\cmd.ico,Icons\cmd.ico

    Icon has disappeared !

    54d68466-f8bd-4877-803e-82916cc556ec-image.png

    ok, instead move the file to C:\Users\user\AppData\Roaming\Notepad++\plugins\config
    51f48583-924a-4e0b-be1d-9df87f8909a3-image.png

    change it back to

    File,Open Containing Folder,cmd,,cmd.ico,cmd.ico,cmd.ico

    restart npp

    icon is back, but still question mark

    580fc2d1-b691-4081-916b-935a9805cdce-image.png

    Maybe the file is not 16x16 256 colours ?

    b7aa94fa-7748-42b8-8e51-49e507acb631-image.png

    Looks like it is as specified

    Maybe something is wrong with the file …

    e0b2e4e5-7210-4687-881d-69eebba78699-image.png

    I’m not good enough to mentally decode this, looks normal

    Hmm

    https://en.wikipedia.org/wiki/ICO_(file_format)

    0x02 idType is 1 , which is ICO good
    0x04 idCount is 1, just 1 image
    0x06 ICONDIRENTRY struct

    bWidth is 10 , which is width 16
    bHeight is 10, which is width 16
    bColorCount 0. does not use a pallette
    wPlanes is 1, has color plane , whatever that is, 0 is black and white ?
    wBitCount, it is 8 bit per pixel
    dwBytesInRes, 1384 bytes ?? idk


    onion.bmp,onion.ico,onion.ico

    ah wait you have BMP in there ??

    2f4a2017-f18f-4b16-af27-0fa951d8d002-image.png

    File,Open Containing Folder,cmd,,cmd.bmp,cmd.ico,cmd.ico

    restart

    72f5b447-bfe2-46c1-a8b4-fc22137f42ad-image.png

    woohoo !

    Wow, I was about ready to give up there !

    Thanks both of you, I will go with the CustomizeToolbar plugin as it give me that distinctive icon !

  • 0 Votes
    11 Posts
    415 Views
    PeterJonesP

    @JohnL22 ,

    … but since it’s essentially working for you, I have taken that as confirmation that the new perl.xml is an improvement, so it’s in a Pull Request now… hopefully, it will get merged for the v8.9.1 release candidate coming next week.

    update: PR has been merged,so it will be in 8.9.1

  • Macro problem

    Help wanted · · · – – – · · ·
    3
    0 Votes
    3 Posts
    156 Views
    mpheathM

    @guy038

    https://www.scintilla.org/ScintillaDoc.html#SCI_COPY

    copying data to the clipboard

    Is document to the clipboard.

    https://www.scintilla.org/ScintillaDoc.html#SCI_PASTE

    pasting from the clipboard into the document

    Is clipboard to the document.

    Both functions relate to the document in the editor. The copy function will be good for the task though paste will not work with the search window.

    Instead of SCI_PASTE, could use the Run command to run an executable to insert the clipboard text into the search window.

    AutoIt3 script automate_columns++_search.au3 :

    ; Wait up to 3 seconds for the window. $hSearch = WinWait('Search in indicated region', '', 3) If $hSearch Then $sClip = ClipGet() ; get clipboard text ControlSetText($hSearch, '', 'Edit1', $sClip) ; set combo edit ControlClick($hSearch, '', 'Button7') ; click regex button ControlClick($hSearch, '', 'Button9') ; click count button $sCount = ControlGetText($hSearch, '', 'Static3') ; read label ClipPut($sCount) ; set clipboard text EndIf

    Adjust the title if the window text is localized.

    Compile to executable and then add to Run as a command. Get the command id with NppUISpy and insert into the shortcuts.xml file.

  • 0 Votes
    2 Posts
    51 Views
    PeterJonesP

    See that ︿ above the Name column of the Document List? Like most tabular data tools (spreadsheets, or the data tables in Wikipedia, or what have you), that indicates that the data is being sorted by that column (if you right click, and add the extension column, you can sort by either column). The sort indicator is a 3-state toggle: pointing up ︿ means it’s sorting in alphabetical order, pointing down ﹀ means it’s sorting in reverse-alphabetical, and gone means it’s sorted in the order of your tabs.

    up ︿ down ﹀ none 98a5bc45-296d-41cb-8baf-635e729f540f-image.png 4b34c789-9bf5-4185-8d46-eceebbf07ced-image.png 1a0eadaa-367e-4f37-a2e0-0b84748c5cb1-image.png

    Nothing changed in Notepad++ itself; you just clicked that header once (intentionally or accidentally), so it’s now sorting alphabetically, like it thought you wanted. You just have to click it two more times to get it to match the tab order.

  • FYI: Notepad++ 8.9.1 RC will be available in about 9 days

    Announcements
    1
    2 Votes
    1 Posts
    215 Views
    No one has replied
  • 0 Votes
    6 Posts
    6k Views
    xomxX

    @Justin-Goodell said in Undo/Redo (CTRL+Z/CTRL+Y) behaves unexpectedly after a few hours (NppFTP, NPP 64-bit, Win11):

    use the “alt” key to highlight a chuck of text on multiple lines, then delete that section

    Yep, there was that “alt” column mode +DEL undo regression (from N++ v8.8.9), some details & STR in the fix-PR:

    https://github.com/notepad-plus-plus/notepad-plus-plus/pull/17307

    The fix is in the already released v8.9 but due to some other problems in that version, it hasn’t been triggered for a N++ autoupdate (so if you wanna use it, you have to dl & run the v8.9 installer yourself).

    @PeterKee
    Do you also use N++ macros?

    Currently I’ve identified another such (this time a longstanding) bug in the N++ codebase (PR fix is still in progress, it’ll be hopefully in the next version, for a STR look here).

  • Support for Plugins Admin & NppPluginList

    Notepad++ & Plugin Development
    47
    2 Votes
    47 Posts
    70k Views
    CoisesC

    @Ivo-Krab said in Support for Plugins Admin & NppPluginList:

    but modifying the C:\Program Files\Notepad++\plugins is understandably blocked without admin access.

    Would it not be possible to allow (as a config choice) to install them in %APPDATA%\Notepad++ instead

    The problem is that plugins in Notepad++ can do anything Notepad++ itself could do. They are C++ programs operating in the same security context as Notepad++ itself. From a security standpoint, allowing plugins in a directory that can be modified without admin access would be equivalent to allowing access to Program Files without admin access.

    As I recall, that was allowed at one time, and this is why it was removed. Security-sensitive organizations determined that they could not install Notepad++ at all unless they could stop users from installing their own plugins. The developer decided it was better to remove the capacity entirely than to try to implement a switch of some kind.

    The work-around, if you can run programs that are not installed in Program Files, is to use a portable copy of Notepad++. If you are not allowed to do that, then logically you would be forbidden to run Notepad++ plugins in a directory you control, since it would grant you exactly the same access.

  • Where is the Plugins Admin?

    General Discussion
    7
    0 Votes
    7 Posts
    230 Views
    Karlo-FK

    I’m guessing that GUP.exe and/or nppPluginList.dll somehow wasn’t updated before.

  • 0 Votes
    3 Posts
    170 Views
    Robert Or Janet DiebelR

    @PeterJones Thanx, much appreciated.

  • 5 Votes
    11 Posts
    676 Views
    CoisesC

    @guy038 said in Columns++ version 1.3: All Unicode, all the time:

    As you can see, a lot of Format characters return an erroneous result of 3,240 occurrences. But we’re not going to bother about these wrong equivalence classes, as long as the similar collating names, with the [[.XXX.]] syntax, are totally correct !

    Luckily, all the other equivalence classes are also correct, except for [[=ls=]] which returns 2 matches \x{2028} and \x{FE47} ??

    Still looking into this, I find this statement in the Boost::regex documentation (emphasis mine):

    An expression of the form [[=col=]], matches any character or collating element whose primary sort key is the same as that for collating element col, as with collating elements the name col may be a symbolic name. A primary sort key is one that ignores case, accentation, or locale-specific tailorings; so for example [[=a=]] matches any of the characters: a, À, Á, Â, Ã, Ä, Å, A, à, á, â, ã, ä and å. Unfortunately implementation of this is reliant on the platform’s collation and localisation support; this feature can not be relied upon to work portably across all platforms, or even all locales on one platform.

    I used:

    LCMapStringEx(locale.data(), LCMAP_SORTKEY | LINGUISTIC_IGNOREDIACRITIC | NORM_IGNORECASE | NORM_IGNOREKANATYPE | NORM_IGNOREWIDTH | NORM_LINGUISTIC_CASING, ...

    as my best guess at how to do this.

    There are some differences other than the format characters between my search and Notepad++. For example, [[=k=]] matches Ʞ (U+A7B0) in Columns++ search, but not in Notepad++ native search; though both match its lower-case counterpart, ʞ (U+029E).

    I do wonder why [[=ls=]] matches ﹇ (U+FE47) as well as U+2028. Though Notepad++ native search does not accept the [[=ls=]] syntax, substituting the actual U+2028 character, [[=
=]] (you can copy that even though you can’t see it), yields 12 matches, including U+FE47.

    Do you know if there is a precise definition of what should count as an equivalence class in Unicode regular expressions? It is unclear to me for what target I should be aiming.

  • Notepad++ help for fast formatting date of births

    General Discussion
    5
    0 Votes
    5 Posts
    133 Views
    PeterJonesP

    @Laura-Harrison ,

    Don’t post essentially the same thing twice. The posting form reminds you that until you have enough upvotes, you have to wait for the posting queue for the post to show up.

    If all of your badly-quoted dates have the quotes in exactly the same places (3 digits, quote, digit, hyphen, quote, digit, quote, digit, hyphen, quote, two digits), then you can use a similar idea to above, but put each into capture groups using the (...) notation: FIND = (\d{3})"(\d)-"(\d)"(\d)-"(\d{2}) . Each capture group gets numbered 1-5 for each set of parens, and is $1 - $5 in the REPLACE WITH field. So REPLACE WITH = "$1$2-$3$4-$5"
    This will take

    199"0-"0"8-"28 199"2-"1"1-"12

    and make it

    "1990-08-28" "1992-11-12"

    But I have a feeling you are going to tell me in the next post that what you really have is quotes in different places each time, like

    1"99"0-"0"8-"28 199"2-"1"1-"12 "2"0"2"6"0"1"0"6"

    In which case, I’d say, look for “possible quote, digit, possible quote, digit, possible quote, …etc”, where “possible quote” is in regex as "? (which means "0 or 1 quote mark)
    FIND = "?(\d)"?(\d)"?(\d)"?(\d)"?-"?(\d)"?(\d)"?-"?(\d)"?(\d)"?
    REPLACE = "$1$2$3$4-$5$6-$7$8"
    REPLACE ALL
    would give

    "1990-08-28" "1992-11-12" "2026-01-06"

    (Note that if you had more digits than that, like if you also had hh:mm:ss, so it would be up to 14, the replacements for 10-14 would be ${10} - ${14})

  • Print colors?

    Help wanted · · · – – – · · ·
    3
    1 Votes
    3 Posts
    92 Views
    William EdwardsW

    @Coises Perfect! Thank you for your assistance…

  • Notepad++ release 8.9

    Pinned Announcements
    26
    4 Votes
    26 Posts
    4k Views
    A

    @donho I updated from 8.8.8 and after the first launch of Notepad++ the error “Load lang.xml failed!” occured once (exe-installer on latest Windows 11).

  • Enter key duplicated in macros

    Help wanted · · · – – – · · ·
    14
    3 Votes
    14 Posts
    466 Views
    datatraveller1D

    So with installation of a new notepad 8.9 version, these settings in shortcuts.xml should be updated (maybe automatically with installation):

    from:
    1c3beaba-3b9c-46be-8fff-2f9dace10a63-image.png

    to:
    f08a7ae4-6d8d-486a-89b2-57b79dee1091-image.png

    I’m only a user so I don’t know the details, but maybe simply CR could be changed to 
 and CRLF to 
 (and if existent LF to 
)?

  • "Run" add-on for Run in Browser

    Notepad++ & Plugin Development
    2
    0 Votes
    2 Posts
    83 Views
    PeterJonesP

    @D-Kirkpatrick ,

    I know the “Shortcuts” XML is the file to edit and that there is also a copy of that in %appdata% but so far I cannot put in my changes.

    v8.9 still works with all my saved Run menu commands in %AppData%\Notepad++\shortcuts.xml, and I can still edit that file following the standard instructions for editing a Notepad++ config file found in the user manual

    If you look at the shortcuts.xml file’s properties in Windows Explorer, do you have write permission to the file (you should, and you need it)

    If that’s not it, you’ll have to say the exact steps you are using that aren’t working (and share your ?-menu’s Debug Info), otherwise it’s really hard for us to guess what’s going wrong for you.

    I’d also like to add in MS Edge

    No need: View > View Current File in > Edge has existed for years.

  • 0 Votes
    2 Posts
    65 Views
    PeterJonesP

    @leestwise ,

    For a normal installation, then you can just copy over everything from %AppData%\Notepad++\ from the old to the new (and if you customized any of your autoCompletion, those will have to go from c:\program files\Notepad++\autoCompletion\*.xml on the old to the new… but customizing those is not as common as other customizations)

    (You also, of course, have to install Notepad++, and all the plugins. If you don’t want to use Plugins Admin to do the plugin install, you could just copy from c:\program files\Notepad++\plugins\ on the old to the new… but since many plugins may have been updated, this is a good chance to make sure you’re grabbing the most recent version, rather than just copying over the old-and-possibly-outdated version. And don’t overwrite c:\program files\Notepad++\plugins\config\nppPluginList.dll, as you always want to have the most recent from the installation, not whatever old plugin list was on the old machine.)

  • 0 Votes
    3 Posts
    91 Views
    CoisesC

    @Craig-W said in Turn Off Paragraph Highlighting:

    How do you turn off the automatic highlighting of anything you are typing. I went to settings and turned de-selected everything under highlighting, and it hasn’t changed anything. I don’t want the background highlighted as I type or have to go to a previous paragraph and it’s all highlighted.

    Try changing Settings | Preferences | Editing 1 | Current Line Indicator to None.

  • Simple Question: Can I View HTML Tags?

    General Discussion
    2
    0 Votes
    2 Posts
    107 Views
    CoisesC

    @Eugene-Brennan said in Simple Question: Can I View HTML Tags?:

    Surprisingly, it appears difficult to find an answer to this from Googling. I want to migrate articles from a website to Blogger. I’m using Reader View in Firefox which strips a lot of the superfluous stuff on the source website and then I paste to Notepad. From there I copy and paste to Blogger. Now this strips all HTML tags and when I post from Notepad to Blogger, all the content is enclosed by a single <p> tag and multiple <br /> tags within the text. I can’t paste directly from the source website to Blogger because it brings in a lot of unwanted HTML stuff from the previous website. This causes multiple problems that I won’t detail here, mostly as regards inserting images into the text. So my question is, does Notepad++ strip all HTML (I can’t find any way of changing to HTML view mode like I can in the Blogger Designer) and if so, is there a way I could retain at least <p> and <br /> tags?

    Try selecting and copying what you want from reader view, then use Edit | Paste Special | Paste HTML Content in Notepad++. It will still require some cleanup, but it will probably come closer to what you want.

    There is no native HTML view in Notepad++. There is a plugin, but it just shows the HTML as a sidebar; you can’t edit within the formatted text. Personally, I find it easier and more reliable to view the file in Firefox to see how the HTML renders. (I set F5 as a shortcut for View | View Current File in | Firefox.)