• Preserve Style Tokens at Reload of File

    16
    0 Votes
    16 Posts
    3k Views
    nsk7evenN

    Haaaa … what a pity, just found a problem with using this solution for my use case:
    The style highlightnings are being stored/restored for each occurence. This means, newly appended log file lines won’t get the matching style highlightnings.

    (I tested the AnalysePlugin also, but - as expected - it is too bulky, buggy and restricted to its own result window; there are good use cases for this solution for repeating scenarios with identical and complex patterns, but it won’t fit for dynamic quick’n’easy highlightnings of always-other-keywords)

    Will go back to manually re-applying the 1-5 style tokens at each log file reload, until I find a better solution.

    Thanks for all suggestions and ideas, this was really inspiring!

  • PO files syntax color, where can I find it?

    4
    0 Votes
    4 Posts
    729 Views
    Green_goblinG

    @PeterJones
    Ok, I’ve never tried to create a UDL from scratch bit I’ll try now. Regards!

  • Incorrect formatting of comments in batch files

    Locked
    2
    0 Votes
    2 Posts
    159 Views
    Alan KilbornA

    @wallobit

    Please don’t post the same thing in multiple threads.
    See my response in the other thread HERE.

  • 3 Votes
    7 Posts
    3k Views
    Mark OlsonM

    Permanent link to most up-to-date version

    Things fixed since my original post above:

    Caching problems (my original assertion that files were re-parsed only as needed was actually false) Originally if you used $0 in your output format to get all the matched text (not just capture groups), the output file would contain the BEL characters I used to delimit the capture groups in the intermediate file. Allow group_by and join to group by/join by multiple columns. See docs in file. Added byind and bykey convenience functions for easier sorting by index/key in child.
  • RegEx - Finding strings when another substring not present

    14
    2 Votes
    14 Posts
    738 Views
    Zeff Wheelock 0Z

    @Alan-Kilborn just adding that the version that I was using did not have the option in Mark to Copy Marked Text. I was one version behind. Upgrading Notepad++ gave me that option.

  • Recent upgrade

    5
    2 Votes
    5 Posts
    299 Views
    John SweetJ

    It was #2, I had global override on. I’ve shut it off, now back to normal.
    I guess I was trying so many things, I didn’t realize I had this on.

    Thanks so much for your help!

  • Keep non existing file requires Yes to all and No to all !

    4
    0 Votes
    4 Posts
    535 Views
    Alan KilbornA

    @mkupper said in Keep non existing file requires Yes to all and No to all !:

    I deal with it by right clicking on the npp tab for any file and selecting one of the Close All options. Normally I use iClose All to the Right which will quickly and quietly close thousands of open tabs for files that have been deleted.

    If you are already at the Keep non existing file pop-up then select Yes and then do the Close All thing. You will get a save this file? yes/no prompt for the single file that you had said “yes” on keeping to earlier and can now chose “no” as you don’t care about it.

    I can only find one thing wrong with this.
    It should have started out with the text: PRO TIP:
    Seriously, a great tip!
    Thanks for sharing.

  • move to the next _numbered_ line

    7
    0 Votes
    7 Posts
    2k Views
    Nick KatN

    @PeterJones awesome! You are the best!! Thank you!!!

  • Rename files based on data from within

    3
    0 Votes
    3 Posts
    282 Views
    wonkawillyW

    @Don-Sullender

    I don’t know win2019 server but what you ask is possible to be done even with just few rows of powershell or vbs code, if the OS has one of them.
    Also if the files you have to handle have a fixed schema will be relatively easy to implement a script.

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

    10
    0 Votes
    10 Posts
    992 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
    342 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
    972 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
    593 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
    697 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
    611 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
    586 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
    481 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
    809 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.