Community
    • Login
    1. Home
    2. Popular
    Log in to post
    • All Time
    • Day
    • Week
    • Month
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics

    • All categories
    • pellelinP

      How can I do a search that results including/highlights the file name, the folder and the HDD name?

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      11
      5
      0 Votes
      11 Posts
      257 Views
      guy038G
      Hi, @pellelin and All, Continuation and end of my post ! Now, open the Replace dialog ( Ctrl + H ) Uncheck all box options FIND (?-si)^(\u:.+)(?=(?s:.+?)^(\x5B WD-\d+ \x5D)$)|^\x5B WD-\d+ \x5D\R REPLACE ?2\2\t\1 ( Note that this present regex replacement is completely different, of course, from the solution given in this post https://community.notepad-plus-plus.org/post/105618 ! ) Check the Wrap around option Select the Regular expression search mode Click on the Replace All button Then, re-run the Edit > Line operations > Reverse line order option ( IMPORTANT ) Finally, save this new Total.txt file for future study within N++ or Excel ! Your new Total.txt file ( the expected OUTPUT text ) should be as below : [ WD-1 ] F:\ [ WD-1 ] F:\Animated.gif [ WD-1 ] F:\Example.txt [ WD-1 ] F:\This is a video from the countryside.mp4 [ WD-1 ] F:\--=[ Illustrator\Projects\2024 ~ ~\ [ WD-1 ] F:\--=[ Illustrator\Projects\2024 ~ ~\project four.ai [ WD-1 ] F:\--=[ Illustrator\Projects\2024 ~ ~\project one.ai [ WD-1 ] F:\--=[ Illustrator\Projects\2024 ~ ~\project three.ai [ WD-1 ] F:\--=[ Illustrator\Projects\2024 ~ ~\project two.ai [ WD-1 ] F:\--=[ Images\CRC is good for Contact Clean & Protect\ [ WD-1 ] F:\--=[ Images\CRC is good for Contact Clean & Protect\1754387contactcleanprotect250mlh600-rgb.jpg [ WD-1 ] F:\--=[ Images\CRC is good for Contact Clean & Protect\CRC is good for Contact Clean & Protect.png [ WD-1 ] F:\--=[ Images\Vacation\2025\Cities\ [ WD-1 ] F:\--=[ Images\Vacation\2025\Cities\another town.jpg [ WD-1 ] F:\--=[ Images\Vacation\2025\Cities\old town.jpg [ WD-1 ] F:\--=[ Images\Vacation\2025\Cities\ruins.jpg [ WD-1 ] F:\--=[ Images\Vacation\2025\Cities\this town.jpg [ WD-1 ] F:\--=[ Images\Vacation\2026\ [ WD-1 ] F:\--=[ Images\Vacation\2026\city.jpg [ WD-1 ] F:\--=[ Images\Vacation\2026\fields.jpg [ WD-1 ] F:\--=[ Images\Vacation\2026\stormy.sea.jpg [ WD-1 ] F:\--=[ Images\Vacation\2026\woodlands.jpg [ WD-1 ] F:\--=[ Images\WD-40 Multispray\ [ WD-1 ] F:\--=[ Images\WD-40 Multispray\WD-40 Multispray.jpg [ WD-1 ] F:\--=[ Photoshop\Projects\2024 ~ ~\PNG-transparent\ [ WD-1 ] F:\--=[ Photoshop\Projects\2024 ~ ~\PNG-transparent\printproject .png files.png [ WD-1 ] F:\--=[ Photoshop\Projects\2024 ~ ~\PSD\ [ WD-1 ] F:\--=[ Photoshop\Projects\2024 ~ ~\PSD\birthday-grandchildren print files.psd [ WD-1 ] F:\--=[ Photoshop\Projects\2024 ~ ~\PSD\print project .psd files - Copy.psd [ WD-1 ] F:\--=[ Text\Documents\Notepad++\ [ WD-1 ] F:\--=[ Text\Documents\Notepad++\[ WD-1 ].txt [ WD-1 ] F:\--=[ Text\Documents\Notepad++\[ WD-2 ].txt [ WD-1 ] F:\--=[ Text\Documents\Notepad++\[ WD-3 ].txt [ WD-1 ] F:\--=[ Text\Documents\Word\ [ WD-1 ] F:\--=[ Text\Documents\Word\ABC.docx [ WD-1 ] F:\--=[ Text\Documents\Word\DEF.docx [ WD-1 ] F:\--=[ Text\Documents\Word\GHI.docx [ WD-1 ] F:\--=[ Video\--=[ Hires\Vacation\1920x1080\ [ WD-1 ] F:\--=[ Video\--=[ Hires\Vacation\1920x1080\Berlin.mp4 [ WD-1 ] F:\--=[ Video\--=[ Lowres\Family\1080x720\ [ WD-1 ] F:\--=[ Video\--=[ Lowres\Family\1080x720\Paris.mp4 [ WD-2 ] G:\ [ WD-2 ] G:\Animated Dog.gif [ WD-2 ] G:\Example 2.txt [ WD-2 ] G:\This is a video from the lakeside.mp4 [ WD-2 ] G:\--=[ Illustrator\Projects\2024 ~ ~\ [ WD-2 ] G:\--=[ Illustrator\Projects\2024 ~ ~\project eight.ai [ WD-2 ] G:\--=[ Illustrator\Projects\2024 ~ ~\project five.ai [ WD-2 ] G:\--=[ Illustrator\Projects\2024 ~ ~\project seven.ai [ WD-2 ] G:\--=[ Illustrator\Projects\2024 ~ ~\project six.ai [ WD-2 ] G:\--=[ Images\CRC is good for Contact Clean & Protect\ [ WD-2 ] G:\--=[ Images\CRC is good for Contact Clean & Protect\contactcleanprotect250mlh600-rgb.jpg [ WD-2 ] G:\--=[ Images\CRC is good for Contact Clean & Protect\CRC.png [ WD-2 ] G:\--=[ Images\Vacation\2023\ [ WD-2 ] G:\--=[ Images\Vacation\2023\lakeside.jpg [ WD-2 ] G:\--=[ Images\Vacation\2023\london.jpg [ WD-2 ] G:\--=[ Images\Vacation\2023\new-york.jpg [ WD-2 ] G:\--=[ Images\Vacation\2023\the atlantic.jpg [ WD-2 ] G:\--=[ Images\Vacation\2024\Cities\ [ WD-2 ] G:\--=[ Images\Vacation\2024\Cities\Copenhagen.jpg [ WD-2 ] G:\--=[ Images\Vacation\2024\Cities\Helsingfors.jpg [ WD-2 ] G:\--=[ Images\Vacation\2024\Cities\Stockholm.jpg [ WD-2 ] G:\--=[ Images\Vacation\2024\Cities\Tokyo.jpg [ WD-2 ] G:\--=[ Images\WD-40 Multispray\ [ WD-2 ] G:\--=[ Images\WD-40 Multispray\WD-40.jpg [ WD-2 ] G:\--=[ Photoshop\Projects\2022 ~ ~\PNG-transparent\ [ WD-2 ] G:\--=[ Photoshop\Projects\2022 ~ ~\PNG-transparent\hoodie .png files.png [ WD-2 ] G:\--=[ Photoshop\Projects\2022 ~ ~\PSD\ [ WD-2 ] G:\--=[ Photoshop\Projects\2022 ~ ~\PSD\grandchildren-print files.psd [ WD-2 ] G:\--=[ Photoshop\Projects\2022 ~ ~\PSD\print project 2022.psd [ WD-2 ] G:\--=[ Text\Documents\Notepad++\ [ WD-2 ] G:\--=[ Text\Documents\Notepad++\[ WD-4 ].txt [ WD-2 ] G:\--=[ Text\Documents\Notepad++\[ WD-5 ].txt [ WD-2 ] G:\--=[ Text\Documents\Notepad++\[ WD-6 ].txt [ WD-2 ] G:\--=[ Text\Documents\Word\ [ WD-2 ] G:\--=[ Text\Documents\Word\JKL.docx [ WD-2 ] G:\--=[ Text\Documents\Word\MNO.docx [ WD-2 ] G:\--=[ Text\Documents\Word\PQR.docx [ WD-2 ] G:\--=[ Video\--=[ Hires\Vacation\1920x1080\ [ WD-2 ] G:\--=[ Video\--=[ Hires\Vacation\1920x1080\Göteborg.mp4 [ WD-2 ] G:\--=[ Video\--=[ Lowres\Family\1080x720\ [ WD-2 ] G:\--=[ Video\--=[ Lowres\Family\1080x720\Malmö.mp4 [ WD-3 ] H:\--=[ Photoshop\Projects\2000~ ~\PNG-transparent\ [ WD-3 ] H:\--=[ Photoshop\Projects\2001 ~ ~\PNG-transparent\horses.jpg [ WD-3 ] H:\--=[ Photoshop\Projects\2002 ~ ~\PSD\ [ WD-3 ] H:\--=[ Photoshop\Projects\2003 ~ ~\PSD\children-print files.psd [ WD-3 ] H:\--=[ Photoshop\Projects\2004 ~ ~\PSD\printchildren 2022.psd [ WD-4 ] I:\--=[ Photoshop\Projects\2005 ~ ~\PNG-transparent\ [ WD-4 ] I:\--=[ Photoshop\Projects\2006 ~ ~\PNG-transparent\hooligans.jpg [ WD-4 ] I:\--=[ Photoshop\Projects\2007 ~ ~\PSD\ [ WD-4 ] I:\--=[ Photoshop\Projects\2008 ~ ~\PSD\hooligans-print files.psd [ WD-4 ] I:\--=[ Photoshop\Projects\2009 ~ ~\PSD\print hooligans 2022.psd [ WD-5 ] J:\--=[ Photoshop\Projects\2012 ~ ~\PNG-transparent\ [ WD-5 ] J:\--=[ Photoshop\Projects\2013 ~ ~\PNG-transparent\hope.png [ WD-5 ] J:\--=[ Photoshop\Projects\2014 ~ ~\PSD\ [ WD-5 ] J:\--=[ Photoshop\Projects\2015 ~ ~\PSD\hope.psd [ WD-5 ] J:\--=[ Photoshop\Projects\2016 ~ ~\PSD\hopeproject 2016.psd This time, simply searching for the word Malmö would lead you to the line : [ WD-2 ] G:\--=[ Video\--=[ Lowres\Family\1080x720\Malmö.mp4 where the true drive [ WD-2 ] is clearly reported at beginning of line ! Of course, this is just a first draft ! Changes are certainly to be expected ! See you later Best Regards, guy038
    • tenchyUKT

      possible to delete almost duplicate lines?

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      3
      0 Votes
      3 Posts
      61 Views
      tenchyUKT
      @PeterJones Hi Peter, No there is only ever the 2 forms of the lines. I usually applut a lex sort then remove duplicate lines. So I would end up with: G7ODA,IO93WS, G7ODA,IO93WS,PE, P01AZ,IO55WS, P01AZ,IO55WS,XY, I can sort again after as that takes split second. Thanks for the suggestion, I shall try that.
    • deleeleeD

      Snippets won't stay pinned to any side other than default

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      1
      0 Votes
      1 Posts
      45 Views
      No one has replied
    • donhoD

      Notepad++ release 8.9.6.1

      Watching Ignoring Scheduled Pinned Locked Moved Announcements
      37
      1 Votes
      37 Posts
      4k Views
      fml2F
      @donho no I didn’t, but the last installations worked without problems and I have not done anything in the installation folder. Anyway, the program works now, and I’m apparently the only one who experienced the problem, so no need to investigate it further. Thank you for the time taken!
    • donhoD

      Having a Ferrari is cool, but without driving skill it's just a expensive chair

      Watching Ignoring Scheduled Pinned Locked Moved Humour
      1
      1
      3 Votes
      1 Posts
      46 Views
      No one has replied
    • guy038G

      New displaying of the "Search Results" panel

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      2
      1
      0 Votes
      2 Posts
      187 Views
      guy038G
      Hi, All, From the @pellelin’s post, here is an improvement of my previous post : I now added the complete path of each file , followed with a \ character and the file name ! Once any Search Results panel is displayed : Hit the Ctrl + A shortcut Hit the Ctrl + C shortcut Open a new tab ( Ctrl + N ) Paste the Search Results contents in this new tab ( Ctrl + V ) Run the option Edit > Line operations > Reverse line order ( IMPORTANT ) Now, open the Replace dialog ( Ctrl + H ) Uncheck all box options FIND (?-si)^\tLine\x20+(\d+)(?=(?s:.+?)^\x20\x20(\u:.*\\.+)(?=\x20\())|^\x20\x20\u.+\R REPLACE ?2\2\t\1\t Check the Wrap around option Select the Regular expression search mode Click on the Replace All button Now, re-run the Edit > Line operations > Reverse line order option ( IMPORTANT ) Finally, save this new tab for future study within N++ or Excel ! Now, @pellelin, if you don’t have already the Columns++ plugin installed in your configuration, I kindly advice you to install it ! After installation of this plugin, close and re-open Notepad++ First, run the Plugins > Columns++ > Elastic tabstops option Then run the Plugins > Columns++ > Convert tabs to spaces option Now, in order to right-aligned the line numbers, do the following regex replacement : FIND (\d+)(\x20*)(?=\x20:\x20) REPLACE \2\1 With the same parameters, in the Replace dialog, than above ! For example, I did a search of the word the, whatever its case, in Normal mode, on any .txt file of an USB key Search "the" (77312 hits in 507 files of 590 searched) [Normal] I got an INPUT file of 51,5544 lines for about 10,2 Mb And, after the above process : Reverse line order Regex Replacement Reverse line order Which took 82s, I got an OUTPUT file of 51,047 lines, for about 12,2 Mb, with Complete file path, Line number and Text, all aligned [image: 1780319031552-b25954ec-283c-4b15-9603-bf0d370d3c2d-image.jpeg] Best Regards, guy038 P.S. : In this version, I didn’t report the number of hits. If this information matters too, just ask me about it !