• Worsened search in files with the encoding win-1251

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Bookmarking Lines Containing Values in Other File

    4
    0 Votes
    4 Posts
    6k Views
    guy038G

    Hello Joe Murphy,

    I’ve got a solution :-))

    So, let’s suppose that you have :

    A huge file, File A, with a lot of records, containing several fields, separated with comma

    A smaller file, File B with some records, having the same organisation. This File B may contain, either :

    Some records identical to those, in File A

    Some fields, numbered n, identical to those, in File A, with the same number n

    Just one hypothesis : Each record must NOT begin with a comma character

    So, two main cases may happen :

    You need to bookmark all the records, of File A, that have a same record in File B

    You need to bookmark all the records, of File A, whose Field n have a corresponding Field n, in a record of File B

    Follow the different steps, below :

    Open, first, your file File B, in Notepad++

    Select all the contents of File B ( CTRL + A )

    Save it, in the clipboard ( CTRL + C )

    Now, open your file File A

    Add, at the end of File A, a new line #####, which will determine the boundary, between the two files File A and File B !

    You must choose any character, NOT present in, both, File A and File B. It may be, either, a @, %, &,… character

    Then append the contents of the clipboard, at the end of File A, after the line ##### ( CTRL + V )

    Go back to very beginning of the present File A ( CTRL + Origin )

    Open the Find dialog ( CTRL + F )

    Select the Mark tab

    Check the Bookmark line option

    Select the Regular expression search mode

    Depending of case 1) or 2) chosen, type in the regex :

    SEARCH : (?-s)^(.+\R)(?=(?s).*#####.*?\1) for case 1)

    SEARCH : ^([^,\r\n]+?,){n-1}\K([^,\r\n]+)(?=(?s).*#####.*?\2) for case 2)

    IMPORTANT : In the second regex, just change the n-1 formula by the appropriate number, depending on number n of the concerned field )

    Click on the Mark All button

    Depending of case 1) or 2) chosen :

    => All the lines, of File A, with an identical line, located downwards, after the line #####, ( from File B ) are bookmarked

    => All the lines, of File A, with an identical Field n, located downwards, after the line #####, ( from File B ) are bookmarked

    Move to line #####

    Delete from that line ##### to the end of the file ( all the appended lines of File B )

    Finally, save, the new state of File A, with all the bookmarks

    Et voilà !

    Notes :

    If some lines/fields are identical in File A, without, at least, one corresponding line/field, in File B, they are NOT bookmarked, due to the ##### boundary !

    If some lines/fields are identical, in File B, it doesn’t matter, as long as there is, at least, one corresponding line/field, in File A, which will be, correctly, bookmarked

    Best Regards,

    guy038

    P.S.. :

    I forgot to tell you about the (?s) and (?-s) modifiers :

    Usually, when the . matches newline option, of the Find dialog is unchecked OR when you use the (?-s) form, any dot, in the regex, stands for a standard character, that is to say any character, part of the class [^\r\n\f]

    However, when the . matches newline option is checked OR when you use the (?s) form, in regexes, the dot stands for absolutely any character ( standard and/or End of Line characters ). For instance, if the cursor is at the very beginning of the current file, the simple regex (?s).* matches any character and is equivalent to a CTRL + A command !!

  • HEX Editor plugin is marked non-stable and is disabled on each update

    6
    0 Votes
    6 Posts
    4k Views
    Bryan BernsB

    I know that if the Notepad settings structure doesn’t exist in the user’s AppData area, the plugin will hang upon launch of Notepad++.

  • Is there option "Enable virtual spaces" like SharpDevelop and VStudio ?

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • 1 Votes
    4 Posts
    16k Views
    guy038G

    Hello , Tino and Peter,

    Congratulations to you, both ! Tino, for nicely exposing your wish and Peter for your full explanation, about the proposed regex :-)

    An other S/R, using the \K syntax, could be :

    Find what : ^.{20}\K.{10}

    Replace with : 0000000000

    Notes :

    As soon as the first twenty characters of the current line are matched, the \K feature forces the regex engine to forget anything previously matched and reset the regex engine position !

    So the final match is, only, the ten characters, located between the columns 21 and 30

    … which is, simply, changed into the 0000000000 string :-)

    Remark :

    You must use the Replace All button, only. The step by step replacement, with the Replace button, does NOT work, when the search regex contains a \K form !

    Best regards,

    guy038

  • Find in Text Doesnt Work

    2
    0 Votes
    2 Posts
    6k Views
    Michel SM

    ‘find in files ’ : SHIFT+CTRL+F or CTRL +F , use tab’find in files’
    Select directories , subfolders, filters
    I have no problems with 6.9.2. 1 Win10.

  • This ANSI plugin is not compatible with your Unicode Notepad++

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    dailD

    Most of those sound like some other type of DLL not meant to be loaded as a plugin.

    I assume these plugins are installed with the application

    Nope. It’s possible some other plugin (e.g. Wakatime.dll) installed them.

    Can I simply delete the offending .dll files?

    In theory yes. Unless for some reason Rainlexer.dll needs them.

  • I need to convert about 1500 files from ANSI to UFT8

    Locked
    2
    0 Votes
    2 Posts
    2k Views
  • 1 Votes
    5 Posts
    3k Views
    Ronan RedstoneR

    I ended up blowing away the install completely, and completely reinstalling, and re-adding the plugins. It now works.
    It’s possible that there is an issue with the upgrade process somewhere -I’ve been updating it for 4 years without removing it.

  • CTRL + H , replace with ALT key

    Locked
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • downloading issues!

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • NPP Unicode(?) rendering problems

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Change the look of folded code

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    dailD

    No it’s not possible.

  • 0 Votes
    4 Posts
    5k Views
    Daniel MercadoD

    Nope.

    “Final All in Current Document” is not in the list of items which can be mapped to a shortcut key sequence.

  • Auto indent

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    Mandar SantM

    @guy038 but how for html and css etc…

  • How are print margins set? Can rulers be set?

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Insertion of LineNumber

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Jim DaileyJ

    @Philippe-Giraud Not sure exactly what you want to do.

    If you just want to see line numbers, then use the menus: Settings–>Preferences–>Editing and check the Display line number checkbox.

    If you want to actually insert line numbers into a file, then you can do it using Edit–>Column Editor…. Begin by moving the cursor to the very beginning of the file, then press Alt-C (or use the menu entry Edit–>Column Editor…), select the Number to Insert button, then fill in the options as you desire. When you press OK, the numbers will be inserted into the file as text. That is, this:

    =============================================================================== TOPIC: HOTKEYS (INCLUDING MOUSE-RELATED): =============================================================================== Tagging: (needs TagsJump) Find Definition -- <Alt>+<Down Arrow> Return from Definition -- <Alt>+<Up Arrow> Generate tags file -- <Alt>+t

    will change to something like this:

    01=============================================================================== 02TOPIC: HOTKEYS (INCLUDING MOUSE-RELATED): 03=============================================================================== 04 05Tagging: (needs TagsJump) 06 07 Find Definition -- <Alt>+<Down Arrow> 08 Return from Definition -- <Alt>+<Up Arrow> 09 Generate tags file -- <Alt>+t

    Regards,
    Jim

  • Bug Opening TXT File on a Mapped Drive?

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Greg BoiceG

    Sorry… when I said Mapped Drive, I should have said this is done with the SUBST command and not a network mapping. Thanx.

  • We need smarter split screen!

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • A liittle problem

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied