• N++ v8.5.2 cannot open multifile with one n++ issue.

    10
    0 Votes
    10 Posts
    985 Views
    Jerald BellezaJ

    I too experience the same using Windows 11. I think the issue is with the OS, the same version works fine on Windows Server 2012

  • Suggestions: Undo history and enlarged search history

    3
    1 Votes
    3 Posts
    333 Views
    Mark OlsonM

    So I did a bit of digging related to this topic, and it looks like binding a callback to SCN_MACRORECORD would allow you to record the history of changes in a way that treats a find/replace action as a single action rather than as a series of insertions and deletions of characters (which my modification log script currently does).

    The catch? SCN_MACRORECORD notifications only fire when a macro is being recorded. This means that any script that wanted to record find/replace actions would have to start recording a macro when it was first run, and it could not stop recording the macro until it stopped. This means that such a script would prevent you from using the macro recorder in a normal way.

    I don’t think it would be too difficult to implement such a script or plugin, but it’s important to understand the tradeoffs.

    EDIT: I tried using PythonScript to print SCN_MACRORECORD notifications (just a simple editor.callback(lambda notif: print(notif), [SCINTILLANOTIFICATION.MACRORECORD])), and I found that find/replace actions don’t trigger those notifications in PythonScript. This is obviously really weird, because find/replace actions are clearly macroable. So I’m not too sure that Ariel’s idea is really do-able, at least in PythonScript.

  • KQL -Kusto Query Language

    3
    0 Votes
    3 Posts
    2k Views
    Lycan ThropeL

    @Raguram-Manokaran ,
    @Mark-Olson is correct.
    The steps you are trying to do, especially your 4th point, only works if KQL is an already existent language in a Notepad++ UDL formatted file.

    Secondly, the Import button you’re trying to use, is only usable if you are getting a UDL file that has already been created by yourself or someone else in the format that Notepad++ expects it’s UDL to be, so you can import it into the UDL language listing. If the language does not exist already, then you won’t find it. Period.

    As @Mark-Olson suggests, you can create your own UDL langauge, and then if you want to let others Import it into their Notepad++ installations, then that button will be usable to them, on the file that you supply, most likely named KQL.xml after you have created it.

  • Notepadd++ now seems to hang frequently.

    7
    0 Votes
    7 Posts
    957 Views
    Michael PiscoM

    @PeterJones The Files I’ve been working with are definitely large. They are CCDs (Continuity of Care Documents) so I will disable/remove the features you mentioned and see if that helps. Thanks again for the tip.

  • [suggestion] Select text between markers

    2
    0 Votes
    2 Posts
    3k Views
    PeterJonesP

    @David-Fernandes ,

    It depends on what you mean by “markers”. If you mean a bookmarked line (clicking in the bookmark margin, or Ctrl+F2 to toggle bookmarks), then one way, if you’ve got two bookmarked lines:
    227c10c8-47b2-4055-97a4-9226508b0f01-image.png

    F2 (Search > Bookmark > Next Bookmark) to go to one of the two bookmarks Ctrl+Shift+B (Edit > Begin/End Select) to start the selection F2 (Search > Bookmark > Next Bookmark) to go to other bookmark Ctrl+Shift+B (Edit > Begin/End Select) to end the selection → it will be selected from the start of the upper line to the start of the lower line (so it will not include the full lower line)

    8c3b76f9-07f7-4a30-a11c-405f92b9abf1-image.png

    If you just have two locations, and can get to them in some other way, you can use the same Begin/End Select.

    For example, if I have used the Search > Mark dialog to mark the 9 instances of morbi in my Lorem ipsum text, I could then use F3 (Search > Find Next) to get to the desired morbi mark, then Ctrl+Shift+B to start the selection, then F3 one or more times to get to another morbi, then Ctrl+Shift+B to select that region:

    8876e9c0-362c-473f-a9eb-10074fe58c21-image.png

    Either of these give some sort of “marker” and then select the text in between. To “isolate”, I assume you could copy/paste the selection to some other document or to some other section of your current document.

    If this isn’t sufficient, you will have to explain more about what you want.

  • 0 Votes
    8 Posts
    577 Views
    Michael VincentM

    @SullyPanda76cl said in What [File Navigation] plugin are everyone using? (aka Source Cookifier orphan):

    What are you using to navigate your files?

    What’s wrong with SourceCookifier?

  • Remove Parameters from Functions List?

    10
    0 Votes
    10 Posts
    692 Views
    PeterJonesP

    @jabcreations said in Remove Parameters from Functions List?:

    , did my last post get deleted

    You actually put two replies in one post in this other thread. I just quoted from that (with the link) here, so people in this topic could see it was resolved

    https://community.notepad-plus-plus.org/post/86845

  • Auto-indent one space instead of a tab

    3
    2 Votes
    3 Posts
    599 Views
    jabcreationsJ

    @Mark-Olson Thank you Mark! I haven’t had to manually set these options since I first started using Notepad++ years ago.

  • 0 Votes
    2 Posts
    579 Views
    jabcreationsJ

    @randomguyingithub You should try signing off/on first before wasting time with a reboot.

  • Underline N on Windows context menu

    5
    0 Votes
    5 Posts
    476 Views
    GrampaWildWillyG

    I’ve done a little experimenting. I tried moving the &, like this:

    Edit with Notepad&++

    But the underline didn’t move and + didn’t work as the shortcut.

    I noticed, however, that e worked as the shortcut. Sometimes. See, a lot of menus already have an entry that says simply Edit. It has the E underlined. But that entry launches Notepad (yuck). But some menus don’t have an entry for Edit. On those menus, e does open the file in Notepad++ even though its E is not underlined. I did try doing this:

    &Edit with Notepad++

    But that did not cause the E to be underlined. It also did not stealth-add e as a second occurrence of the e shortcut on menus that also contained Edit. The underlines are regularly not unique on menus. You just have to type the shortcut again then hit Enter, instead of just typing the shortcut & that’s enough to activate that menu entry.

    So I guess I have half a solution, a workaround that works sometimes. I suppose that’s better than nothing.

  • Diable Ctrl+D duplicate line shortcut

    3
    0 Votes
    3 Posts
    805 Views
    jabcreationsJ

    @PeterJones I did not notice the tabs

    @PeterJones said in Remove Parameters from Functions List?:

    <nameExpr expr="(?:\x26\s*)?[A-Za-z_

    That worked, thank you very much. I’ve had some very minimal experience with these files in the past though a while ago and not enough to claim to be familiar.

  • Find First button?

    7
    0 Votes
    7 Posts
    365 Views
    Alan KilbornA

    @datatraveller1 said in Find First button?:

    it is not worth opening a feature request

    Your feature, go ahead and open a request if you’d like.

  • Up/down arrow in comment line style looks weird

    4
    1 Votes
    4 Posts
    216 Views
    Lycan ThropeL

    @Ekopalypse ,
    Not just you, count me as a, me too.
    UDLArrows8_5_3.PNG
    Notepad++ v8.5.3 (64-bit)
    Build time : May 15 2023 - 06:09:36
    Path : C:\Program Files\Notepad++\notepad++.exe
    Command Line :
    Admin mode : OFF
    Local Conf mode : OFF
    Cloud Config : OFF
    OS Name : Windows 10 Home (64-bit)
    OS Version : 22H2
    OS Build : 19045.2965
    Current ANSI codepage : 1252
    Plugins :
    ColumnsPlusPlus (0.0.3.4)
    ComparePlus (1.1)
    CSVLint (0.4.6.2)
    CsvQuery (1.2.9)
    EnhanceAnyLexer (1.1.3)
    mimeTools (2.9)
    NppConverter (4.5)
    NppExec (0.8.2)
    NppExport (0.4)
    NppSnippets (1.7.1)
    PythonScript (2)
    XMLTools (3.1.1.13)

  • [Wishlist] Reverse search

    6
    0 Votes
    6 Posts
    516 Views
    Alan KilbornA

    @Mark-Olson said in [Wishlist] Reverse search:

    is a rather simpler but equally effective alternative to AlanKilborn’s regular expression.

    Not mine! See the linked posting.

  • 0 Votes
    7 Posts
    1k Views
    Theo FondseT

    @PeterJones Thanks! Good to know!

  • Minor style bug

    4
    0 Votes
    4 Posts
    300 Views
    Alan KilbornA

    @Brigham-Narins

    Bug report opened HERE; you probably want to go back into it and supply the requested Debug Info. Issues get rejected when people don’t supply that.

  • Set Default Language Syntax to COBOL

    3
    0 Votes
    3 Posts
    461 Views
    wonkawillyW

    Sure you can. Try this

    Settings > Preferences > New Document > Defaoult language and set COBOL there.

    Screeshot follows:

    d2c9030b-5ab0-416c-b94c-8951f3b6147b-image.png

  • 0 Votes
    22 Posts
    2k Views
    Alan KilbornA

    @mkupper said in Hi, looking for a regex that calculates distance between 2 numbers, then adjust the 2nd number to a minimum of 30.:

    Is it possible to run a PythonScript on all open tabs?

    No. What you would do is, in a single run of a single script, iterate over the open file tabs:

    for (filename, bufferID, index, view) in notepad.getFiles(): notepad.activateFile(filename) ....

    After a file is “activated”, then the editor object can manipulate the data of the activated tab, e.g., perhaps do an editor.replace(), etc.

  • Where is the option for session snapshot?

    7
    0 Votes
    7 Posts
    498 Views
    Rufi MaR

    @William-Nevil said in Where is the option for session snapshot?:

    @Alan-Kilborn Odd. When I try to update it says there are no updates. I’ll have to redownload the package and install fresh. Thanks yall

    Excellent.

  • Updating NPP and open tabs on program restart

    4
    0 Votes
    4 Posts
    241 Views
    ?

    Thank you, both! That’s very helpful.