• Cannot open a file from WSL2 share with Notepad++

    7
    0 Votes
    7 Posts
    1k Views
    WinterSilenceW

    @Michael-Vincent i found problem - i open NPP before add disc and it’s not displayed

  • Npp8.1.4 How to enable automatic line wrapping?

    6
    0 Votes
    6 Posts
    16k Views
    Alan KilbornA

    I think @Поп-Расстрига needs to clarify what exactly he wants noting that Notepad++ is NOT a word processor so comparing features to MS Word is not the best way to explain things.

    Probably this is true.

    I’m leaning toward the OP wants hard line-endings inserted, and this may be a good thing, because that’s probably an easier task than soft wrappings at a specific column. :-)

  • FunctionList omits the first Letter of the functionname sometimes

    3
    0 Votes
    3 Posts
    224 Views
    Michael VincentM

    @Ivan-Lippens said in FunctionList omits the first Letter of the functionname sometimes:

    A function named ‘Formula’ becames ‘ormula’ in the FunctionList, iFoto becames Foto, etc.
    In fact, every functionname starting with ‘if’, ‘for’ or ‘where’, loses its first letter in the FunctionList.

    It’s most likely the function definition of the language you’re using - the file in Notepad++/functionList/ .

    What language are you using? Is it a custom-defined function list XML file?

    Cheers.

  • Coding help to correct timestamps on caption file.

    9
    0 Votes
    9 Posts
    557 Views
    MaximillianMM

    @Terry-R Thanks for your help Terry!

  • 0 Votes
    3 Posts
    245 Views
    stresslevel99S

    It would take too long to type out out all the things I tried, so I’ll just get the end. There are two versions of Notepad++ installed on the system, both exhibit the problem. Both are not regular installations, but AppV. Downloaded same portable versions - works fine. Latest version - fine…

  • not saved in managed folders

    2
    0 Votes
    2 Posts
    156 Views
    EkopalypseE

    @Alkuilv7

    If you still have this problem, may I ask you to provide more details so we can better understand what you are doing?

  • 0 Votes
    3 Posts
    1k Views
    Daniel BriceñoD

    @Alan-Kilborn Gracia.

  • question

    8
    0 Votes
    8 Posts
    451 Views
    PeterJonesP

    @garrett-carey said in question:

    So I don’t need it anymore? And yea i’m on 64 bit

    Correct. You do not require TextFX Plugin to do alphabetic sorting of lines, because the sorting feature has been built into Notepad++ for years now. If follow the image that @Alan-Kilborn posted, you can see that you can go to the
    Edit menu, Line Operations submenu, Sort Lines … entries, and those will sort lines the lines in the active file. You do not need a plugin to do that; it has been in all versions of Notepad++ for years now.

    The official Usermanual has a page with a description of each entry in the Edit menu, which describes the differences in all the sorting commands: https://npp-user-manual.org/docs/editing/#edit-menu

  • 0 Votes
    8 Posts
    2k Views
    guy038G

    Hello @acme1235, @terry-r, @alan-kilborn and All,

    My bad ! I just paste the literal @terry-r’s text to test my regexes. So, I could’nt get the Search Results context options. Of course, Alan, your N++ solution is just the more simple and the best one ;-))

    Anyway, I suppose that @acme1235 should be pleased with the many ways to display results !

    BR

    guy038

  • Adding text from string

    3
    0 Votes
    3 Posts
    201 Views
    Francesco FerrariF

    @guy038 said in Adding text from string:

    $0<plugin_name>\1</plugin_name>\r\n

    WOW!!! You are just the best!!! :))))

    It worked first atemption!!!

    Thank you very much for your help!!!

    Best regards

    Franthesco

  • 0 Votes
    5 Posts
    280 Views
    franKENstinF

    @PeterJones said in Old document replaces current document after accidently unplugging usb flash drive that documents are stored on. ???:

    @franKENstin ,

    Notepad++'s unsaved-files backup location is not in the same folder as the file, it’s in the AppData hierarchy. (So if you want to use recovery software, try it there instead of where your old file was located)

    It is not an auto-save feature like you seem to think it is; for that, you need the AutoSave plugin (you must configure it). more on periodic-backup vs auto-save in our FAQ on the subject.

    If you hadn’t manually saved your file in over a year, then Notepad++ would never have written it to the main document folder – it would just keep happily doing the periodic backup in AppData, assuming you were able to save to a named file whenever you thought it was necessary.

    edited for clarity

    Well I could not find it there. I used many recovery app’s.
    But the odd thing is I found a version of it that was only a few days if no day’s old in a way deferent folder that some of my other documents are stored in…

  • Replace backslash and new line

    17
    0 Votes
    17 Posts
    4k Views
    Darren BrownD

    @Alan-Kilborn Will do, thanks :-)

  • How Do I "Shortcut" Using Back Button to Recover Deleted Text?

    4
    0 Votes
    4 Posts
    5k Views
    Troglo37T

    I’m done, it worked! I was able to retrieve the ton of entries that were deleted! Thanks again!

    P.S. I don’t drink coffee LOL! I would probably never go to sleep!

  • SessionManagerPlugin: Save sessions together with their files?

    2
    0 Votes
    2 Posts
    1k Views
    PeterJonesP

    @Kardo-Rostam ,

    Sorry, I’m not a SessionManager plugin user… but I downloaded a copy in a portable NPP and played around a bit. I do not think that SessionManager has the feature you describe . I can think of two good reasons why it wouldn’t, off the top of my head:

    a session often contains more than one file, and those files can come from a variety of locations – even across different drives / filesystems – so where is “with the file it’s connected with” be?

    from a practical standpoint, do you want the SessionManager Plugin to have to search your whole hard drive for every time it wants to populate the list of available sessions?

    It has to build that list from somewhere; when it only has to look in the single directory defined in Plugins > Session Manager > Settings, it’s really easy to build the list of sessions. If it didn’t have that, it would have to scan your whole computer to try to find all the sessions. I guess in theory, the plugin source code could be re-written so it has a master list of session files in one known location, but that the individual files can be stored anywhere; then, as long as you never moved those session files with Windows Explorer or other outside tools, it could work. Unfortunately, per the plugin’s official homepage, the original author has stopped development on the plugin; chcg made a 64 bit release a few years later, but it’s been 3 years since even that one was updated.

    Alternative: Notepad++'s builtin Sessions feature has the default session.xml stored in %AppData%\notepad++\ … but it has the File menu’s Save Session and Load Session – and that kind of session can be stored anywhere, as long as you know where the session file is. With that feature, you could store the session file with the file(s) it opens.

  • Notepad++ python , remove the path from the text file

    3
    0 Votes
    3 Posts
    284 Views
    Valdisnei SouzaV

    Perfect, it works. This is to replace strings in my sourcepawn template.

    import time import os Filename = notepad.getCurrentFilename() FilenameEnd = Filename.rsplit(os.sep, 1)[-1] timeStr = time.strftime( '%I:%M %p' + ' - ' + '%d-%m-%Y' ) editor.rereplace(r"TM_FILEDATE", ( timeStr )) editor.rereplace(r"TM_FILENAME", ( FilenameEnd ))

    Thanks!!

  • another replacement request for help

    40
    1 Votes
    40 Posts
    3k Views
    Carlos J. Segnini R.C

    Hello friends
    So one year later I had to do the same replacements, and found that the original script did not work anymore (Same error as reported by @guy038 ). Something must have changed in Notepad++, Python or somewhere else, because the first time it worked fine.

    Anyway, I updated the code as suggested by @Alan-Kilborn and it worked correctly.
    Cheers everyone

  • Line break before every UPPERCASE word

    4
    0 Votes
    4 Posts
    420 Views
    guy038G

    Hello @floyddebarber, @peterjones and All,

    An alternative solution would be :

    SEARCH (?-i)(?<=\.)\h*(?=\u\u)

    REPLACE \r\n

    So, for instance, from this INPUT text :

    MÜLLER 6 - Blahblah. SMITH 5 - Asdds. Asdsd.DI CARLO 8,5 - And. Maybe even. Multiple. Sentences here.

    you would get the OUTPUT text :

    MÜLLER 6 - Blahblah. SMITH 5 - Asdds. Asdsd. DI CARLO 8,5 - And. Maybe even. Multiple. Sentences here.

    Notes :

    This regex searches a range of horizontal blank chars ( \x20, \x09 or \x85 ), possibly null, but ONLY IF :

    It is preceded with a literal full period due to the positive look-behind (?<=\.)

    It is followed with two upper-case letters, accentuated or not, due to the positive look-around (?=\u\u)

    And, in replacement, this range is just replaced by a Windows line-break ( \r\n ) ( Use \n only if working on Unix files )

    Best Regards,

    guy038

  • Not having the same session depending on how I open notepad++

    5
    0 Votes
    5 Posts
    259 Views
    Terry RT

    @Ailothaen said in Not having the same session depending on how I open notepad++:

    It looks I have two different installations on my PC:

    The second “installation” running from the D: drive is very likely a “portable” version. This is not actually installed, rather just unzipped into any folder of choice. You might want to consider leaving it, although “upgrading” it to a later portable version might be preferable as quite a few enhancements and bug fixes since the 7.6 version.

    Often the seasoned forum members will have multiple versions installed. Reasons are:

    Identifying whether a recent enhancement introduced a bug Helping out a poster with their issue, this means not changing an already highly customised installed version just for a test Being able to separately customise the second version for different tasking possibly many other reasons as well

    If you do consider keeping an installed version AND the portable version then code the shortcuts with additional text so you know which version you are using. Also look at having different visual settings such as colourisation of text, font differences, etc.

    Terry

  • How do I get the icons to have colors again?

    2
    0 Votes
    2 Posts
    909 Views
    PeterJonesP

    @david-union

    Settings > Preferences > General > Toolbar = Standard Icons: small

    https://npp-user-manual.org/docs/preferences/#general

  • Regex: How can I split lines from text at every 31 words

    8
    0 Votes
    8 Posts
    2k Views
    Neculai I. FantanaruN

    @PeterJones said in Regex: How can I split lines from text at every 31 words:

    [\w’’]+\W+

    THANKS. super, so I update my answer:

    FIND: ([\w'’"]+\W+){31}
    REPLACE BY: $0\r\n

    OR

    FIND: ([\w'’"]+\W+){31}\K
    REPLACE BY: \r\n