• regex - search and replace - "remember"?

    9
    0 Votes
    9 Posts
    2k Views
    Alan KilbornA

    @Adam-Yik said in regex - search and replace - "remember"?:

    it is very similar to Directory-based system such as windows 10. However, up to 9 files and folders can exist in a directory, and

    There is no such limitation in Windows, and it doesn’t have anything to do with regular expression processing. Please don’t spread misinformation.

  • Help with Regex Search and Replace

    3
    0 Votes
    3 Posts
    794 Views
    rderekpR

    You are my hero! It looks like this fixed my problem, thank you!

  • User defined language - recognize date and time stamp

    6
    0 Votes
    6 Posts
    1k Views
    EkopalypseE

    @Ninon_1977

    first you have to install PythonScript plugin from PluginAdmin.
    Then click Plugins->PythonScript->New Script
    give it a meaningful name and copy the content into the newly created document.

    Then follow the instructions in the script.
    Change the lexername and the regexes in the configuration area.
    Lexername must be exactly the same as shown in the language menu
    and use the regex from @PeterJones

    Something like this

    regexes[(0, (79, 175, 239))] = (r'\d{4}-\d{2}-\d{2} \d{2}:', 0)

    all other regexes from the example can be commented.

    (79, 175, 239) <-- this is the rgb color

    Execute the script via Plugins->Python Script->Scripts->YOUR_SCRIPT
    (needs to be done once per npp start only)

  • Delay when typing

    6
    0 Votes
    6 Posts
    410 Views
    Alan KilbornA

    @Donniel-Collera

    I think maybe @gurikbal-singh is trying to ask you to provide your Debug Info.

    That would be found by going to the ? menu and choosing Debug Info… and then in the resulting box clicking on the link that says “Copy debug info into clipboard”.

  • Autoindent missing?

    14
    1 Votes
    14 Posts
    1k Views
    Jane WhittakerJ

    @PeterJones
    Many thanks for this!

  • 0 Votes
    1 Posts
    163 Views
    No one has replied
  • Encoding says file is UTF8 but it's not

    5
    0 Votes
    5 Posts
    4k Views
    asbyonejjA

    @guy038 said in Encoding says file is UTF8 but it's not:

    UN-tick the option Apply to opened ANSI files in Settings > Preferences… > New Document > Encoding, if the UTF-8 option is ticked

    This was my case. I didn’t know this option. Thank you.

  • How to create Shortcut to open a specific file only?

    6
    0 Votes
    6 Posts
    4k Views
    reemaS inrakluKR

    @Alan-Kilborn Thanks for your reply. Leaving the file open has been my workaround so far. Yes, its my go to file and I would be lost without it :-)

    I will keep in mind your suggestions & tricks and will definitely come in handy.

  • Run MIME tools decoder on multiple files

    7
    0 Votes
    7 Posts
    3k Views
    trespdaT

    @PeterJones My test against a few dozen open files went well. I still got problems with certain characters, but the script run fine. Thanks again.

  • Remove useless Language Folders

    10
    0 Votes
    10 Posts
    3k Views
    PeterJonesP

    @PeterJones said in Remove useless Language Folders:

    It’s exactly what it means, and it’s exactly the opposite of what it means.

    I have issued doc PR#77, which among other things, clarifies the “Make Language menu compact” so it’s understood that combing that option with disabled languages might cause there to be empty-letter menus.

  • Replace string

    14
    0 Votes
    14 Posts
    723 Views
    astrosofistaA

    @Paolo-Serpi, @Alan-Kilborn

    I see. Let’s make sure that the Python plugin is correctly installed. I suppose you installed it with the Plugins > Plugins Admin... menu.

    Now we are going to see if it is working properly. Please click Plugins > Python Script > Show Console. On the bottom of the console there is a text box, please type in the following code

    notepad.new()

    and press Run. A new document should be opened. Got it?

    If it worked, check again Preferences > Editing > Multi-Editing Settings > Enable (Ctrl+Mouse click/selection).

    Try once more time to run the Python script, as described in previous posts.

    Other than these ones, I am running out of ideas.

  • Error!!! Conversão de formato NÃO é salva (PT-br)

    2
    0 Votes
    2 Posts
    626 Views
    EkopalypseE

    Se eu definir o OEM850 como a codificação padrão, após a reinicialização 850, será mostrado, então isso está funcionando para mim.
    Qual versão do Npp você está usando?
    Pode ser encontrado em? menu - é chamado de informações de depuração.

    If I set OEM850 as the default encoding then after restart 850 is shown, so this is working for me.
    Which Npp version are you using?
    Can be found from ? menu - it is called debug-info.

  • Multi-cursor editing

    53
    0 Votes
    53 Posts
    8k Views
    dailD

    @Michael-Vincent

    Personally I haven’t used DoxyIt in years. I wouldnt say it’s not supported, just my interest is quite lacking.

    In light of recent circumstances I find myself with copious amounts of free time currently, so I will make it a point to take a look at your PR soon.

  • aligning tabs on the screen

    17
    0 Votes
    17 Posts
    21k Views
    Mubashir 2018M

    Hiii
    is there anyone to help me
    i have some notepad datas, i need to arrange this data into excel with the help of notepad++
    i attached the source file and final files of screenshots,
    please help me, i lost couple of months for doing this manually.

    please help me…

    [EDIT]
    Screenshots deleted because they contained private data of a bunch of individuals.
    @Mubashir-2018 Please anonymize your sample data.
    [/EDIT]

  • regular expression - why don't the last words change their order?

    14
    0 Votes
    14 Posts
    607 Views
    EkopalypseE

    @Robin-Cruise

    View->Show Symbol->Show All Characters

    But as @Terry-R wrote, it seems that you are changing your requirements and this is something that does not work well with regexes.

    If there is a language barrier here, try using an online translator and posting in your native language and the translated English version.

    What I have written here was translated with DeepL.com

  • How to copy strings?

    8
    0 Votes
    8 Posts
    888 Views
    astrosofistaA

    @Alan-Kilborn said in How to copy strings?:

    I suppose my posted script has “extensibility” going for it, as opposed to the macro solution, that to me seems difficult to extend to even single quotes.

    Yes, though my regex solves OP’s problem, lack of extensibility is one of its drawbacks - Regarding this issue, for the moment I run out of ideas, but don’t give up.

    Also, compared with your PS, my regex has another drawback, as it couldn’t preserve the original position of the caret. What a shame! ha ha

    Have fun!

  • 0 Votes
    9 Posts
    3k Views
    guy038G

    Hello, @carverof-canyons and All,

    Thank you so much for your appreciation. No, I’m not a paid staff member, at all ! Just a volunteer, who loves N++ and be happy to help people when I guess a possible solution ;-))

    And, anyway, I am confined at home, in France, like everywhere else, in the world. So, presently, I have plenty of time to think about some problems !

    Cheers,

    guy038

  • Duplicate lines that included same strings after / film /

    7
    0 Votes
    7 Posts
    278 Views
    guy038G

    Hi, @kaveh-202 @alan-kilborn and All,

    Let suppose, to begin with, to focus on the first 10 chars, after the string /film/

    Then, from your example :

    http://dl3/film/Daylights.End.3******************* http://dl4/film/The.Phenom.2016******************* http://dl45/film/The.Wild.Life.720*************** http://dl58/film/Pele.Birth.Of.A******************* http://dl4/film/Sultan.2016.720******************* http://dl3pw/film/The.Guvnor.2016******************* http://dl3.pw/film/The.Wild.Life.2******************* http://dl3.f/film/An.Almost.Perfe******************* http://dl3.ftk.pw/film/Scooby.Doo.And.******************* http://d2/film/A.Conspiracy.Of******************* http://dl45/film/Daylights.End.2*******************

    With the simple regex S/R, below :

    SEARCH (?-s)^.+/film/(.{10})

    REPLACE \1\t$0

    We get the text :

    Daylights. http://dl3/film/Daylights.End.3******************* The.Phenom http://dl4/film/The.Phenom.2016******************* The.Wild.L http://dl45/film/The.Wild.Life.720*************** Pele.Birth http://dl58/film/Pele.Birth.Of.A******************* Sultan.201 http://dl4/film/Sultan.2016.720******************* The.Guvnor http://dl3pw/film/The.Guvnor.2016******************* The.Wild.L http://dl3.pw/film/The.Wild.Life.2******************* An.Almost. http://dl3.f/film/An.Almost.Perfe******************* Scooby.Doo http://dl3.ftk.pw/film/Scooby.Doo.And.******************* A.Conspira http://d2/film/A.Conspiracy.Of******************* Daylights. http://dl45/film/Daylights.End.2*******************

    Then, it’s obvious that the first and last line are duplicates ( Daylights. ) , as well as lines 3 and 5 ( The.Wild.L )

    Now, what do you want to do regarding lines 1 and 11 and lines 3 and 5 ?

    Presently, it’s quite easy to build a regex which would delete all duplicates lines, keeping only the last one found !

    Two other questions :

    Do you mind if a sort process is used, which, of course, would alter the initial order of lines ?

    How many duplicates lines may have a line ? Only 1 duplicate or more ?

    BR

    guy038

  • File Search not working for files in long paths

    3
    1 Votes
    3 Posts
    422 Views
    Tom_Cox001T

    I suggest you Long Path Tool will let you easily

    delete, copy or rename long path files, you can try it

    for better service.

  • Open long path/ file name error since 7.5.9

    10
    0 Votes
    10 Posts
    5k Views
    Tom_Cox001T

    I suggest you try Long path tool is the very good

    program for easily delete, copy & rename long path

    files, error, unlock solution.
    Try it and solve your problem.