• I need to filter out certain strings from a large file.

    Locked
    2
    2 Votes
    2 Posts
    799 Views
    Scott SumnerS

    @Magnus-Arlebrink

    It’s tough to say without seeing examples of this “other text”…

    Another idea is to approach it differently. You say you have no problems matching the text you need to keep while searching, so a possible option would be to “simply” copy that text to another file. If isn’t extremely simple because Notepad++ can’t do that natively, but if you redmark your text you can copy it to the clipboard with a script; see here.

  • Disable autocomplete on a per file (tab/window) basis and with shortcut

    Locked
    8
    2 Votes
    8 Posts
    2k Views
    Claudia FrankC

    @perlsmith

    Install PytonScript Plugin using PluginManager Plugins->Python Script->New Script and give it a meaningful name copy and paste the script
    (don’t modify if you don’t know python and make sure that the layout
    is exactly the same as posted, because python needs this indention to
    identify its code blocks) save it Plugins->Python Script->Configuration and add it to the Menu Optional: in same window change Initialisation from LAZY to ATSTARTUP Restart npp

    Now you should see that under Plugins->Python Script your script is shown.
    As it is now in the menu section you can add/modify a shortcut in the normal way
    by using menu Run->Modify Shortcut/Delete Command and search in the Plugins Command
    tab for your script.

    Cheers
    Claudia

  • Building a multi-line RegEx

    Locked
    2
    1 Votes
    2 Posts
    2k Views
    guy038G

    Hello, @glennfromiowa and All,

    I’m totally sorry for my very late reply ! I’ve just missed that post :-((

    You’re perfectly right on that matter. Indeed, it’s a Boost regex library bug ! Refer to these two links for explanations :

    https://svn.boost.org/trac10/ticket/12960

    https://github.com/boostorg/regex/commit/a32e0cc9d39f8c0886fe5576022c7bf0c9efc265

    And, probably, this issue was fixed since the regex library 5.1.3, of the Boost C++ libraries v1.66.0 ( or v1.67.0 )

    Of course, we’ll have to live with that tiny bug… as N++ is using the regex component of Boost library v1.55.0 !

    However, we just have to be aware of that fact and, IF using the (?x) modifier, simply replace any \R syntax with the sequence \r\n ( or possibly \n ), in the search regex !

    Cheers,

    guy038

    P.S. :

    After some tests, I don’t think that other regex syntaxes become bugged, when using the free-spacing mode ( (?x) ) !

  • AutoCompletion startFunc

    Locked
    10
    1 Votes
    10 Posts
    2k Views
    PeterJonesP

    Also, assuming @Finn-McCarthy (original poster) is the same person as the second user @Finn-Mac: you will have to be logged in as @Finn-McCarthy to mark @Finn-McCarthy’s Topic as solved.

  • Submitting Documentation Proposal - How to Build Notepad++ from Source

    Locked
    1
    2 Votes
    1 Posts
    622 Views
    No one has replied
  • Windows 10 Subsystem: bash.exe not found.

    Locked
    3
    0 Votes
    3 Posts
    3k Views
    Halley SouzaH

    Hi Peter,

    Indeed I was running 32bit.I just updated it to 64bit and NPP now find the bash.exe on the dir %WINDIR%\System32 with no problem.

    Thank you for the help.

    Halley

  • Search / Replace folders and subfolders

    Locked
    2
    0 Votes
    2 Posts
    880 Views
  • Remove this type of "prefix"

    Locked
    4
    0 Votes
    4 Posts
    2k Views
    Scott SumnerS

    @Shyvering-Barhard

    (?-s) -> prevent any following. usage from matching end-of-line characters
    ^ -> only allow match at start-of-line
    .+ -> (from start of line), match one or more characters of any type (except end-of-line)
    : -> match a literal :
    \x20 -> match a space (could have just used a space but it is hard to see on this site, also, in this case could have used \s or \h)

    Check out this posting! : https://notepad-plus-plus.org/community/topic/15765/faq-desk-where-to-find-regex-documentation

  • 1 Votes
    1 Posts
    722 Views
    No one has replied
  • 1 Votes
    6 Posts
    1k Views
    Shyvering BarhardS

    Forget about that before, I found the solution @scott-summer

  • Macro failed to playback in BLOCK EDIT MODE

    Locked
    3
    1 Votes
    3 Posts
    1k Views
    guy038G

    Hello @daidaiworm, and All,

    I could not post anything for a while, due to some “Guru meditation...” ! In the meantime, You’ve got, from @Scott-sumner, the right solution :-)) I exactly thought about the same regex S/R. Here is my initial post, which was ready… to be moved on line !

    I didn’t test the column mode feature, while building macros, but I would use, instead, a macro based on a search/replacement operation.

    So, if you replace your macro block, in the shortcuts.xml file, with the following block :

    <Macro name="nppMacro_eric" Ctrl="no" Alt="no" Shift="no" Key="0"> <Action type="3" message="1700" wParam="0" lParam="0" sParam="" /> <Action type="3" message="1601" wParam="0" lParam="0" sParam="(?-s).+" /> <Action type="3" message="1625" wParam="0" lParam="2" sParam="" /> <Action type="3" message="1602" wParam="0" lParam="0" sParam="\($0\)" /> <Action type="3" message="1702" wParam="0" lParam="768" sParam="" /> <Action type="3" message="1701" wParam="0" lParam="1609" sParam="" /> </Macro>

    you should obtain a reliable macro and expected results :-))

    Notes :

    The 1601 message initialize the search/replacement operation

    The search regex (?-s).+ is inserted at the end of the 1601 message and search for the greatest range of standard characters so all line contents, without its line-break

    The number 2, in message 1625, means that search is performed, in regular expression mode

    The replacement regex \($0\) is inserted at the end of the 1602 message and rewrites a literal ( symbol, then all the search match ( $0 ) and, finally, the literal ) symbol

    The flag number 768, in message 1702, represents the sum 512 ( Down direction) + 256 ( Wrap around )

    The command number 1609, in message 1701, stands for a hit on the Replace All button

    Best Regards,

    guy038

    P.S. :

    For a complete list of the search /replace encoding, in the shortcuts.xml file, refer to the link, below :

    http://docs.notepad-plus-plus.org/index.php/Editing_Configuration_Files#Search_.2F_Replace_encoding

    Note that the flag value 512 means Search goes downwards ( and not upwards ! )

    Be aware that when you use the command value 1614 ( Count ), the Find dialog must have been previously opened !

  • What RegEx Engine/Flavor?

    Locked
    17
    2 Votes
    17 Posts
    8k Views
    guy038G

    Hi, @claudia-frank, @peterjones, @scott-sumner, @dail, @mapje71, @jim-dailey,

    Done ! It was easier, than I first thought, to move these FAQ Desk: posts in the new FAQ section. A move topic command was available ! So, no need to save contents and re-create these posts ;-))

    I also, verified that your previous links to any FAQ Desk: post, has been preserved by the “move”. So, everything is fine !

    We just have, now, to go on filling up that new FAQ section, with pertinent posts !

    Best Regards,

    guy038

  • Blank Lines and Whole Words in UDL 2.1

    Locked
    3
    0 Votes
    3 Posts
    1k Views
    FrontMan08F

    @Claudia-Frank

    Thanks for the feedback. I had a feeling I was running up against the edge of UDL’s capabilities. I’ll have to explore the python scripting approach or some other workarounds for now.

  • Hidden </p>

    Locked
    2
    0 Votes
    2 Posts
    674 Views
    Claudia FrankC

    @Bruce-Coyne

    without additional infos I assume this is caused by a plugin.
    Could you post some screenshots/gifs?

    Cheers
    Claudia

  • 0 Votes
    2 Posts
    795 Views
    Claudia FrankC

    @Vishal-Sehgal

    I don’t really understand what you are trying to achieve.
    Do you want to post some examples with before and after comparison
    like, I do have

    line with number 517189292 and some text another line with different number 1189292 and some text again a line with number 517189292 and some text and another line with different number 1189292 and some text

    and I want to have a result like this

    another line with different number 1189292 and some text and another line with different number 1189292 and some text

    Does this makes sense to you?

    Cheers
    Claudia

  • Finding and deleting entire paragraphs.

    Locked
    5
    0 Votes
    5 Posts
    2k Views
    byron blackmoreB

    That works. Thank you very much!

  • Import xlsx list

    Locked
    3
    1 Votes
    3 Posts
    2k Views
    Magnus BrodinM

    You are an angel :-) My mistake is that I tried to copy from Excel instead of making a new document i Notepad++ and that resulted in many very strange things. Now everything is ok. Thank you!

    Best regards Magnus

  • Notepad++ Cannot Backup Text files - Windows 10

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Claudia FrankC

    @Mark-Warbinek

    I assume you hit the MAX_PATH (260 characters) limit, which means
    the amount of characters in the full path is not allowed to exceed 260 chars, might this be?
    If so and because you are on windows 10 there MIGHT be a solution.
    Stop npp and edit the registry

    HKLM\SYSTEM\CurrentControlSet\Control\FileSystem

    add a REG_DWORD variable called

    LongPathsEnabled

    and give it a value of

    1

    See here for the explanation of this.

    Note, I don’t have any experience with this key but rumors on the web say
    that 32bit applications might have issues when having set this key and using
    api calls which do respect that key.

    Cheers
    Claudia

  • 1 Votes
    5 Posts
    10k Views
    Meta ChuhM

    @kichi-po
    @Scott-Sumner

    looking at the message from outer space and this:
    https://www.google.com/search?q=ascii+art&safe=off&source=lnms&tbm=isch&sa=X&ved=0ahUKEwiY_Oe-0vvaAhWG2SwKHUqfB78Q_AUICigB&biw=1653&bih=918

    it would be a funny thing if someone creates a image to ascii art converter plugin for np++ ;-)

  • When closing a large file, NPP takes several seconds unresponsive

    Locked
    2
    1 Votes
    2 Posts
    799 Views
    Meta ChuhM

    @Alexandre-Machado

    thanks for the key information (local ssd, ntfs compression)
    i can not reproduce this delay on my ssd (non compressed folder, appx. 50mb file) using a 32 bit version of np++ 7.5.6.

    could you try to temporarily adjust some np++ settings to try out if it makes any difference ?

    settings > preferences > backup >>>
    disable following options:
    remember current session for next launch
    enable session snapshot and periodic backup
    backup on save > none