• "Monitor with Notepad++" windows explorer context menu

    3
    0 Votes
    3 Posts
    863 Views
    elazar cohenE

    @peterjones Sorry about that.
    For anyone who’s interested, there is already a feature-request for it here https://github.com/notepad-plus-plus/notepad-plus-plus/issues/10562.

  • Direction In Find

    5
    0 Votes
    5 Posts
    797 Views
    Courtland GentryC

    @Alan-Kilborn Thank you very much this helped a lot.

  • Show tab as a displayed character

    4
    0 Votes
    4 Posts
    8k Views
    Alan KilbornA

    @marc-wilson

    Well, you can set that up, for a given language, here:

    d47c739b-465a-43f6-8fa4-ba0db7fd0675-image.png

  • javascript doesn't work on notepad

    3
    0 Votes
    3 Posts
    346 Views
    marc wilsonM

    @lelez-cz If you type that into NP++, you’re just creating a file with some JS code in it. You’re not executing it.

  • Directory as Workspace repeats files

    2
    0 Votes
    2 Posts
    190 Views
    PeterJonesP

    @david-boarman ,

    I only recently started using Folder as Workspace, but I haven’t seen that. When I have launched an external process which affects the files in the folder that’s viewed in FaW panel (compiler or similar), I can see a brief flicker as it creates then deletes temporary files… but I’ve never seen it show multiple copies of the same file in the FaW list.

    However, Code::Blocks is more than a compiler; from what I remember when I played around with it a few years ago, it’s an IDE (editor+debugger) which references a compiler (and you can actually choose between different compilers at installation time or through configurations or something). But as an IDE with powerful editor features, maybe something that it is doing is interfering with the way that Notepad++ tries to monitor the folder. I’m not sure how well you’re going to be able to mix NPP and C::B.

    But it might be that some of the Settings > Preferences > MISC page will help – specifically, the File Status Auto-Detection. But folder contents aren’t the same as file contents, so maybe those settings won’t affect it.

  • ctrl+shift+f & macro

    4
    0 Votes
    4 Posts
    312 Views
    nick klausN

    @neil-schipper thanks for the reply.
    many files [actually .m3u music playlists]
    I’m removing tracks I no longer own from .m3u history lists.

    yes I mean 1000’s of strings.
    They should be windows paths in 99% of cases but can’t rule out something being not strictly windows.

    Your method sounds solid, I made a AHK style c++ app to do the job, it’s slow but this is a once a year bit of house keeping so no need to be fast.

    I’ll keep your method in mind for similar smaller projects. Thanks again.

  • REGEX: Global replace column name with instance of alias in SQL

    3
    0 Votes
    3 Posts
    614 Views
    Neil SchipperN

    @wg992 I achieved the transformation of your sample data using a macro I recorded which carried out conventional editing, searching and copy/paste operations. The macro acted on a single pair of corresponding D1. rows. I then ran the macro as many times as needed.

    Note that within a macro, all of these operations are fully supported: selecting text, launching a search on that text via Ctl-F3, search again with F3, and, fresh clipboard copy/paste operations.

    Care is needed in regard to the cursor position before launching the macro, and, where the macro leaves the cursor.

    There are caveats, and your actual files may contain features that prevent this approach from being a desirable “all in one go” solution.

    For instance if a file contains a large number of separate outer level SELECT {} structures, using the simple macro I used (which worked on the first try) will be cumbersome in that you’ll have to manually position the cursor between batches of macro runs. However, a more devious macro which incorporates a regex search (for the 1st instance of D1\d\. AS following SELECT) could be devised to overcome that.

  • Not all files visible in "Folder as Workspace"

    2
    0 Votes
    2 Posts
    649 Views
    Terry RT

    @james-frake said in Not all files visible in "Folder as Workspace":

    Is there a filter for different types of files shown/hidden, and if so, why only on some .h files?

    I’ve just replicated the “code” folder you have with all the files you show (albeit empty) and my “open folder as workspace” shows all of the files, including the parser.output, which your image also shows to be missing. See my image below:

    7e6ce7d0-53f8-476d-9653-c3e91c4db928-image.png

    So the next question is what version of Notepad++ are you using. Use the ? menu, then Debug info and copy/paste that here in reply. My version is:
    Notepad++ v8.1.9 (64-bit)
    Build time : Oct 21 2021 - 23:37:53
    Path : C:\Program Files\Notepad++\notepad++.exe
    Command Line :
    Admin mode : OFF
    Local Conf mode : OFF
    Cloud Config : OFF
    OS Name : Windows 10 Enterprise (64-bit)
    OS Version : 1909
    OS Build : 18363.1854
    Current ANSI codepage : 1252
    Plugins : DSpellCheck.dll mimeTools.dll NppConverter.dll NppExec.dll NppExport.dll PythonScript.dll

    Terry

  • How to view the current file full path on top of the screen

    4
    0 Votes
    4 Posts
    485 Views
    arishyA

    @alan-kilborn
    Thanks Alan for your remark. Very enlightening.
    So, Any app in windows , is actually using MS windows object.
    So to customize it , you go to the “source”

  • Delete characters in URLs

    3
    0 Votes
    3 Posts
    714 Views
    Romain BernhardR

    @peterjones Great work. Thank you very much for your quick reply. I will save a lot of time thanks to you. You are a true genius. Many thanks again.

  • thumbnail preview option in windows

    2
    0 Votes
    2 Posts
    1k Views
    PeterJonesP

    @anybody-007 ,

    I cannot imagine that the developers would really want to spend the time writing that interface for previews… but if you wanted to ask them to, the Please Read Before Posting directs you to the actual location for feature requests.

    I’m not sure if it’s possible to tell Windows to associate with one application, but use another for generating the preview, but if it were possible, that might be a workaround – either long term, or at least until the developers implement it (if they ever did).

  • Marckdown Styling

    2
    0 Votes
    2 Posts
    195 Views
    PeterJonesP

    @luke-m ,

    The pre-installed markdown UDL is using the comment-style for titles, so that wouldn’t allow separate coloring. If you turn that off, so it’s not a comment, and instead used N of the Delimiter boxes for your N levels of title, you could get N different colors for title… but that would reduce the number of delimiters available for the other syntax. Like the other delimiters n the pre-installed md, you would use ((EOL)) as the closing text for each title line; and you would have to define the largest number of title-#'s in the lowest numbered delimiter box (so delimiter 1 = ######, 2 = #####, … – though, unless you frequently go beyond level 3 or four, I might just assign three levels: ###, ##, and # – and thus level 3 or beyond would all be same color, which might be an acceptible compromise)

    Right now, the > is defined as an operator. If you were to change it to a delimiter, you could get the whole line.

    b7e42857-ccd2-422d-872b-af4c5c502ed4-image.png

    Alternately, you could add extra highlighting to any builtin lexer or User Defined Language (UDL) using regexes via the PythonScript plugin in conjunction with the script EnhanceAnyLexer.py that @Ekopalypse shares in his github repo

  • How to find missing element from a XML

    2
    0 Votes
    2 Posts
    2k Views
    PeterJonesP

    @ajith-k

    <Net>Seomthing</Net> <Clinician>Something</Clinician> <Net>Here</Net> <OrderingClinician>There</OrderingClinician> <Clinician>Everywhere</Clinician> FIND = (?s)</Net>\K((?!<OrderingClinician).)*?(?=(\s*)<Clinician>) REPLACE = $1$2<OrderingClinician>Was Missing</OrderingClinician> SEARCH MODE = regular expression <Net>Seomthing</Net> <OrderingClinician>Was Missing</OrderingClinician> <Clinician>Something</Clinician> <Net>Here</Net> <OrderingClinician>There</OrderingClinician> <Clinician>Everywhere</Clinician>

    This will insert the OrderingClinician between the Net and Clinician if it’s missing, and indent the same amount as the Clinician.

    ----

    Useful References Please Read Before Posting Template for Search/Replace Questions FAQ: Where to find regular expressions (regex) documentation Notepad++ Online User Manual: Searching/Regex
  • Can we make saved macros visible/hidden for file types

    2
    0 Votes
    2 Posts
    435 Views
    Alan KilbornA

    @bandusiri-kadinappulige

    It’s not currently possible, but if you’d like you could make a feature request for it, details for doing so are HERE. I doubt it would be implemented, though…just a personal feeling.

    Maybe much better would be allowing submenus under the Macro menu; then macros could be organized in various ways, including roughly what you’re asking for (although having the same macros appear in more than one submenu – for multiple file types – would be problematic).

    After some research, I found a request for submenus in existence already HERE.

  • Search and Insert new line and Increment if line is missing

    5
    1 Votes
    5 Posts
    671 Views
    Alan KilbornA

    @harry-harris

    If you need help getting started with PythonScript, you can find a bit of a quick-start HERE.

  • hex number begining with '0' and ends with 'h' style

    3
    0 Votes
    3 Posts
    234 Views
    Josip JosipovicJ

    Yes, thank you .

  • Replace when inserting

    5
    0 Votes
    5 Posts
    4k Views
    Alan KilbornA

    @vic3dexe said in Replace when inserting:

    found the bug tracker.

    It is good forum etiquette to post a link to any issue you open, that you’ve also discussed here. I will do it for you this time:

    https://github.com/notepad-plus-plus/notepad-plus-plus/issues/10769

    Also, this thread may interest you:

    https://community.notepad-plus-plus.org/topic/18715

  • Font size in menu bar

    11
    0 Votes
    11 Posts
    9k Views
    EkopalypseE

    @ai-aramchek

    thank you for sharing this with us. Does this also work under Linux derivatives with wine? And I add @Jago-Jago, as OP you are probably more interested in the matter than I am ;-)

  • Regex: Find that words that have html, but doesn't have .dot before html.

    6
    0 Votes
    6 Posts
    316 Views
    Robin CruiseR

    ok, try this solution, very good for all your example and for the 6’ case:

    SEARCH: ^(?=.*https://)(?:(?!\.html).)+$

  • Botimus p

    2
    0 Votes
    2 Posts
    169 Views
    Alan KilbornA

    @paul-horn said in Botimus p:

    rudementary level stuff but ya thanks in advance

    I don’t know what is even being asked here, but regardless it doesn’t sound like it is about Notepad++, the subject of this forum.

    So, I’m going to say that this statement you made is correct:

    so i am sure its going to sound stupid