• 1 Votes
    6 Posts
    2k 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
    9k 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
    735 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
    874 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
    890 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

  • Issues while open txt files through mounted drive on ubuntu

    Locked
    4
    0 Votes
    4 Posts
    4k Views
    熊适之

    Thanks for help.
    I found an option named “permissions” in ubuntu software configure just beside the option “remove”.
    Turn on “Read/write files on removable storage devices” works well.

  • How to read my document

    Locked
    2
    0 Votes
    2 Posts
    885 Views
    Claudia FrankC

    @Johnny-Shizzle

    might be but is/was this a plain text file at all?
    What is the file extension?

    Cheers
    Claudia

  • How do I strip rogue tags:

    Locked
    2
    0 Votes
    2 Posts
    819 Views
    PeterJonesP

    It’s because you’ve assumed the “convert” was in NPP, but really it’s in WordPress.

    When you copy a selection from Excel and paste into a textual context, every line ends with a newline character (so if you only select one column, every CELL ends with a newline character), and multiple columns are separated by TABs. When you paste that text into WordPress, it appears to be converting the newline into a <br />. But when you paste it into NPP, it just interprets it as an end-of-line.

    I don’t have WordPress convenient right now, but my next debugging steps would be:

    What happens if you paste into NPP, then re-copy from NPP and paste into WordPress? What happens if you paste into NPP, then use column-select (alt+drag selection), copy, then paste into WordPress?
  • 0 Votes
    2 Posts
    778 Views
    PeterJonesP

    Search > Replace dialog

    Find what : ^\R Replace with : (empty) Search Mode : ☑ Regular Expression Hit Replace All
  • How to move Doc Switcher to left column?

    Locked
    4
    0 Votes
    4 Posts
    2k Views
    Claudia FrankC

    @Scott-Sumner

    You are right, if multiple panels are in one group it is different, also freeing the panel
    doesn’t work if you click on windows title instead one needs to double click the tab field.

    And it seems behaving awkward, to be honest - at least on linux it draws only half
    of the panel first and then once updated the rest. (??)

    Cheers
    Claudia

  • Save as .csv Extension

    Locked
    4
    0 Votes
    4 Posts
    61k Views
    Ca HolmesC

    The problem was solved once I showed the file extensions in Windows. Not sure how that fixed it but it now is saving the modified file with the .csv ext instead of defaulting to .txt which happened before even when selected All Files .. Thank you!

  • Compare plugin x64

    Locked
    3
    0 Votes
    3 Posts
    360k Views
    Mariano CrellesM

    Thanks Meta Chuch.
    It works. The name of version I’d dowloaded has the suffix x64, but obviously it wasn’t the right file.

  • Override existing keyboard macros

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    PeterJonesP

    Apply the shortcut you want to the feature you want. Then go to the conflicting function, and either change or delete its shortcut.

  • Auto expand in Folder as Workspace Section.

    Locked
    2
    1 Votes
    2 Posts
    958 Views
    Claudia FrankC

    @Sagor

    sorry, afaik there is no such setting available.

    Cheers
    Claudia