• Find in File use entered path (case insensitive)

    9
    0 Votes
    9 Posts
    881 Views
    gstaviG

    @PeterJones
    Follow current directory is part of “be careful with your cases”. It seems to work, probably since Windows open file dialog fixes it. Not sure exactly what will happen over SAMBA share if there are actually case conflicts.

    RightClick > Current Dir Path to Clipboard - doesn’t work. If a file was opened as described, from Find-in-Files with bad path case, Notepad++ just copies the wrong-case path it registered for the file.

  • Unnecessary characters in text editing

    5
    0 Votes
    5 Posts
    361 Views
    Б НовостиБ

    The problem is solved! Thanks!
    in the plugin NppCalc - removed activation “Active Calc”

  • Manually merge results with "compare" plugin?

    2
    0 Votes
    2 Posts
    748 Views
    PeterJonesP

    @powerbananas ,

    The Compare plugin knows nothing about nicknames. So I’m not sure what you think currently works and what you are hoping it would do that it doesn’t seem to.

    Could you show some example data, and a screenshot of how the Compare currently functions, then describe how you’d like it to actually function?

  • Creating a User Defined Language in Notepad++ based HEAVILY off HTML

    3
    0 Votes
    3 Posts
    1k Views
    Michael833M

    @peterjones Thanks for all that great information!

  • 0 Votes
    6 Posts
    4k Views
    PeterJonesP

    @gstavi said in Can't save the file after change the Encoding from "Characters Sets" to UTF-8:

    I objected to someone who said “UTF8 without BOM is stupid”. It is not!

    I had either misremembered or misread that original anecdote. Sorry for misrepresenting what had been said previously.

    And still the right solution is for Notepad++ to rework its Encoding selection and let the user have more control. The default should be something like “always assume a file is UTF8 unless it violates UTF8 rules, only then autodetect”.

    👍💯👏

  • Not able to save the file

    6
    0 Votes
    6 Posts
    6k Views
    gstaviG

    @alan-kilborn
    Yes, I browsed this code a few months ago and thought it was only for the snapshot part of the ‘if’. But now I tested and I saw I get it as well. Wonder where it saves the temporary file. I hope it get deleted afterward.

  • How to replace a specific text in lines that contains a specific word.

    17
    0 Votes
    17 Posts
    3k Views
    Alan KilbornA

    @guy038 said in How to replace a specific text in lines that contains a specific word.:

    First of all, at this time of the year, I am rather involved in ski, which is a passion of mine !

    I’m not an excellent skier, but nothing sounds better to me right now than joining you on those slopes! :-)

  • Silent install does nothing

    2
    0 Votes
    2 Posts
    302 Views
    PeterJonesP

    @detlef-jockheck ,

    Unfortunately, I don’t think you’ve given people enough to go on.

    I personally don’t use the installer options, and I’m not currently at a location where I could use the installer to test it out, so I can’t give anything specific. But some general debugging questions:

    You say “sometimes”. Do you have any hints as to when those “sometimes” are? Are you doing this installation on multiple machines, and N% of those installations are doing nothing? Or are you running the installer multiple times on the same machine, expecting it to either install or uninstall, and N% of those attempts, it doesn’t do what you expect?

  • How to remove duplicate entries in each line

    6
    0 Votes
    6 Posts
    345 Views
    zcraberZ

    @alan-kilborn Thank you.

    Changes spec after solution is provided. :-(

    Sorry about that. Next time I’ll be more specific. :)

  • 0 Votes
    3 Posts
    1k Views
    Neil SchipperN

    @golden000

    The transformations are:

    (skip 3 lines and) delete line 4 F: \A(^.*\R){3}\K^.*\R R: (empty) (skip 1st 67 lines and) delete lines 68-77 F: \A(^.*\R){67}\K(^.*\R){10} R: (empty) (skip 4 lines and) replace line 5 F: \A(^.*\R){4}\K^.* R: This is the replacement for the removed line

    Modify the {numbers} to fit your needs.

    To see how they work on the active tab, in each case, bring up the Replace dialog (Ctl-h) and set Search Mode to Reg expr, leaving the box to its right unchecked. Fill in the Find & Replace texts. With (empty) ensure there are no invisible spaces. In each case even though you maybe doing a single F&R you must use ‘Replace All’ and not ‘Replace’ (a requirement imposed by use of \K).

    Although I haven’t tested it, they should also be fine using Find in Files (or Projects). Observe good backup practices.

    If you want actual batching, so that one big operation performs all transformations in one go, you’d need a scipting language solution (that drives a sequence of regex actions from a list). Probably someone else will have a concrete suggestion.

  • 2 Votes
    9 Posts
    2k Views
    DemetriusD

    @alan-kilborn said in Edit > Blank operations > Tab to space ~ works on whole file but not only on selected text.:

    @demetrius said in Edit > Blank operations > Tab to space ~ works on whole file but not only on selected text.:

    Replace \t to four spaces is not always leads to same results.

    Well, I guess all sorts of people do all sorts of wacky things.
    Personally I would not like to be in a situation like I think you’re describing.

    There is rare cases when I have to paste code to some forum that incorrectly works with tab sizes. So I turn them to spaces.

    If you’re happy with the suggested workaround of copying some data to a second tab and reformatting it there, I’d advocate going with that idea.

    Yes, I know about this workaround. Even before I posted here.

  • How to see hex color on hover?

    15
    0 Votes
    15 Posts
    4k Views
    Michael VincentM

    @ric12g said in How to see hex color on hover?:

    Where is 8.8.2?

    Assuming you mean 8.2.2 - it’s in release candidate testing with a “breaking change” (for many plugins) that will allow >2Gb file editing. I thought that’s what this was all about?

    I don’t think any of the solutions mentioned in the referenced thread “crash” 8.2.1 or lower Notepad++, they only affect Notepad 8.2.2 (upcoming) thus the scramble to “fix” them.

    NppQCP will potentially be fixed and when that’s done I’ll merge the changes into my QuickColorPicker which doesn’t exhibit the 8.2.2 crash behavior now, but may not be capable of dealing with >2Gb files (I’ve only tested on Notepad++ theme files and simple XML docs that have the various color representation schemes the plugin looks for).

    I apologize for sounding harsh in my previous comments. I didn’t think in the 15 minutes between @Alan-Kilborn 's first post to the previous thread and your first reply about “None of them works in 2022” there was sufficient time to read, explore and test any or all of the solutions offered. Add to that we didn’t find out what version of Notepad++ you were using - I just assumed it to be the 8.2.2 RC since that’s been top of mind all this week and you’re comment about them not working. I’ve been in a scramble to update plugins that I’ve forked and de-facto maintain as they were abandoned. Unlike you, I’m not a programmer, I just can tinker with existing code and make some fixes here and there. If you are indeed offering to help:

    " thank you that’s a good idea…"

    I’d be happy to accept pull requests on my fork - likewise, I’m sure @chcg would accept PRs on the NppQCP repo.

    Cheers.

  • 0 Votes
    5 Posts
    494 Views
    Hellena CrainicuH

    @neil-schipper

    @hellena-crainicu This exact problem was recently solved here.

    SUPER ANSWER. Your solution is great:

    FIND: (?<=[^\r\n])\R(?=[^\r\n])

    Also, the one made by @guy038 is super:

    FIND: (?<!\n|\r)\R(?!\R)

  • lost word completion

    3
    0 Votes
    3 Posts
    721 Views
    Foulques NeraF

    @michael-vincent Yes, very good. Shift+Enter seems to works too. Strange, but thanks a lot.

  • Everything showing in one column

    3
    0 Votes
    3 Posts
    277 Views
    Alan KilbornA

    @ryano

    On a one time basis, you could do this.

    Take some data (since, pet peeve, you didn’t provide anything textually) that I made up:

    aaaaaaaaaaa=bbbbbbbbbbbbbbbb aaaaaaaaaaaaaaaa=bbbbbbbbb aaaa=bbbbbbbb aaaaaaaaaaaaaaaa=bbbbbbb a=b

    Replace = with = plus a “good quantity” of spaces to get:

    aaaaaaaaaaa= bbbbbbbbbbbbbbbb aaaaaaaaaaaaaaaa= bbbbbbbbb aaaa= bbbbbbbb aaaaaaaaaaaaaaaa= bbbbbbb a= b

    Make a column selection (using Ctrl+Shift+arrows) like this:

    7f7d1e4f-3710-4d7d-9ad8-a1e618b03b17-image.png

    Press Ctrl+Delete to obtain:

    aaaaaaaaaaa= bbbbbbbbbbbbbbbb aaaaaaaaaaaaaaaa= bbbbbbbbb aaaa= bbbbbbbb aaaaaaaaaaaaaaaa= bbbbbbb a= b
  • CTRL multi-select not functioning

    3
    0 Votes
    3 Posts
    2k Views
    SchneemandS

    @alan-kilborn Thank you, I didn’t. Fixed.

  • Save as .md default

    11
    0 Votes
    11 Posts
    5k Views
    Patrick DanileviciP

    @peterjones said in Save as .md default:

    @patrick-danilevici ,

    I previously said,

    hardcoded SaveAs menu.

    Good news: there is at least a workaround in the Save As menu. It turns out that wasn’t as hardcoded as I thought.

    If you go to %AppData%\Notepad++\langs.xml, and edit it (following config-file-editing recommendations), adding

    <Language name="Fake" ext="fak fake false"/>

    … then save and restart, then File > Save As gets a new entry:
    b460b6af-85bc-42d4-9302-6a53b3b677fd-image.png

    Excellent! Thanks a lot!

  • Help wanted for beginner

    20
    0 Votes
    20 Posts
    3k Views
    Khal RashidK

    @peterjones thank you for your response much appreciated.
    Yes I am a beginner at notepad++
    Regards
    Khalid 🙏🏾

  • Searching something for automatition

    4
    0 Votes
    4 Posts
    440 Views
    Holger HasenmüllerH

    @guy038 said in Searching something for automatition:

    guy038

    Hi guy038,

    that’s pretty cool.

    Thank you very much

  • can I just load first few lines using notepad++?

    2
    0 Votes
    2 Posts
    2k Views
    PeterJonesP

    @oa-klk ,

    Notepad++ is a text editor. It edits the whole text file.

    There is no linux command header. The actual command is head, and it only displays a part of a file, not edits the file. Notepad++ is for editing, not just for displaying to the console.

    If all you want is to keep just the first 10 lines in your file, then delete everything else and save (!!!but then the original file will be overwritten with just the 10 lines, and nothing else!!!).

    If all you care about editing is in the first 10 lines, then just load the whole file and only edit those first 10 lines. If it really bothers you to see the other lines, you can select the lines you want to hide, and then hit View > Hide Lines (or Alt+H)