• How to add asterisk to a list of filenames and make it a line

    Locked
    3
    1 Votes
    3 Posts
    2k Views
    guy038G

    Hello @sunil-kumar and All,

    Not difficult with regular expressions ! So :

    Open the Replace dialog ( Ctrl + H )

    SEARCH (?-s)(.+)\R

    REPLACE *\1*\x20

    Select the Regular expression search mode

    Move your cursor to the beginning of your list of files

    Click several times on the Replace button or once, only, on the Replace All button

    Voilà !

    Notes :

    As usual, the (?-s) modifier means that the regex dot character ( . ) represents a single standard character

    Then, the part (.+) stands for any non-empty range of consecutive standard characters, which is stored as group1, as embedded in parentheses

    The last part, \R matches any kind of line-break ( \r\n, \n or \r )

    In replacement, we rewrite an asterisk, followed by the filename ( group1 ), followed, again, with an asterisk and, finally, with a space character ( \x20 )

    Best Regards,

    guy038

    P.S. :

    A small drawback is that the last file, of the unique line, is, of course, followed with a space char, too !

  • Menu has disappeared in Notepad++

    4
    0 Votes
    4 Posts
    9k Views
    mycophagistM

    I guess it was deleting the %AppData%\Notepad++ that did it. After reinstalling, my menu is back. Thanks!

  • 0 Votes
    1 Posts
    454 Views
    No one has replied
  • Switch to already open file instead of opening a new instance???

    Locked
    6
    0 Votes
    6 Posts
    2k Views
    guy038G

    Hello, @alx-fs and All,

    Assuming that, in Settings > Preferences... > MISC. dialog, the options Enable and Enable MRU behaviour, of the Document Switcher(Ctrl+TAB) part, are set, then, if several tabs exist in a single instance of Notepad++, you can switch between the last two accessed tabs, with the Ctrl + Tab shortcut, … in a similar way you would use Alt + Tab to switch between two instances of N++ !

    Best Regards,

    guy038

  • Persist Last Active Tab

    3
    1 Votes
    3 Posts
    897 Views
    Karen XavierK

    @Scott-Sumner Thank-you for the Windows 7 data point. Confirmed the 7.5.7 tab behavior change across all of our Windows 10 systems–versions 1607 and 1803. We are not experiencing any issues with 7.5.6 and will simply postpone our application upgrade.

  • Wrapping the line at X characters (N++ 7.5.7)

    Locked
    2
    2 Votes
    2 Posts
    925 Views
    Scott SumnerS

    @randomeer said:

    Search mode is set at extended.

    You want Regular expression search mode for this technique, not Extended.

  • Help converting Notepad++ format to Pythonscript

    16
    0 Votes
    16 Posts
    3k Views
    guy038G

    Hi, @andrew-clark, @scott-sumner, @claudia-frank and All

    Ah :-(( I should have tested my idea of changing (?-s) into (?s), before posting. Actually, in case of multi-lines range of characters, between parentheses, the suitable regex S/R is , rather :

    SEARCH (\([^()]+?\))|\x20

    REPLACE \1

    Hope it’s the right one, this time :-D

    Cheers

    guy038

  • 1 Votes
    3 Posts
    1k Views
    Scott SumnerS

    @Ramiro-Tell

    If I’m interpreting your request correctly, then putting the line below in contextMenu.xml will do what you want for ONE of the blank operations. Not sure if there is a way to get them ALL at once with a single line… anyway, easy enough to add n lines like this for the n functions you frequently use from blank-operations:

    <Item MenuEntryName = "Edit" MenuItemName = "Trim Trailing Space" FolderName = "Blank Ops -->" ItemNameAs = "NUKE Trailing spaces" />

    Yields the following in the right-click context menu:

    Imgur

  • 0 Votes
    2 Posts
    2k Views
    Scott SumnerS

    @Vismund-Cygnus

    How about closing any open clipboard file first before running your “function that saves clipboard text to a file”? Seems like a lot of your problem would then not exist?

  • Bug: Find in Files opens new copy

    4
    2 Votes
    4 Posts
    1k Views
    Sarah NorthwayS

    Confirm I see the issue you’re describing in 7.5.7 (unsaved changes cause clones to de-link). This is definitely part of my problem.

    But I just realized my issue with find-in-files opening a new de-linked copy is due to windows junctions. I’d somehow opened the files with the actual location then was searching via the junction folder. Notepad++ probably has no way of knowing it’s a symbolic link to the same file. Symlinks are trouble. :/

  • symlink. error in syntax

    Locked
    2
    0 Votes
    2 Posts
    774 Views
    Claudia FrankC

    @Andrey-Evgrafov

    it’s been a while since using windows but I’m in doubt that you can create a
    link from np.exe to notepad++.exe with additional parameters provided to
    notepad++ exe, can’t you?

    mklink c:\windows\system32\np.exe “c:\program files (x86)\Notepad++\notepad++.exe”

    should work as long as np.exe is not the internal MS notepad because as far as I’m aware MS protects it default application since Windows 10.
    But as already said, I’m not up to date anymore - maybe it is working again.
    Hopefully enough info to get your problem solved.

    Cheers
    Claudia

  • last notepadpp version that supports textfx

    Locked
    2
    0 Votes
    2 Posts
    776 Views
    Scott SumnerS

    @Rodrigez-Yaves

    All 32-bit versions of Notepad++ support TextFX AFAIK. Maybe you are running 64-bit N++, in which case I don’t think TextFX exists?

  • Learning REGEX,, New

    Locked
    5
    0 Votes
    5 Posts
    1k Views
    Jeff RaymondJ

    Thanks @Terry R

    Example

    Jeff(1234)
    Jeff(JeffIsJeff)
    Jeff(JeffIsntJEff)
    Jeff
    Jeffrey

    I wanted the first three removed. Your example worked.

    And Scott, thanks for the advice. I am a long time user, but I really had no idea how powerful this tool is! I will read your link. Thanks!

  • Multiple words in one line to separate lines

    Locked
    3
    0 Votes
    3 Posts
    852 Views
    dedsec24D

    @Claudia-Frank
    Thanks a lot
    It works.

  • can someone please help me with Parent, root node making

    Locked
    2
    0 Votes
    2 Posts
    753 Views
  • parsing data with various case

    4
    0 Votes
    4 Posts
    1k Views
    Jeff RaymondJ

    Scott, that worked. I am not a developer but Ive used REGEX in old school REXX

    THANKS!

  • Copy/Paste issue into Excel

    3
    0 Votes
    3 Posts
    2k Views
    Jeff HaasJ

    Thanks for the suggestion. After the usual searching Google and finding useless answers, screaming, throwing the computer out the window, etc, I rebooted Windows. Problem mysteriously went away. Arrggh!

  • Russian does not work with xml from APIs folder

    Locked
    1
    0 Votes
    1 Posts
    482 Views
    No one has replied
  • Cannot "save as type" in user defined language

    3
    1 Votes
    3 Posts
    908 Views
    René ScheibeR

    Seems as I was even more clueless than I thought. I totally forgot about adding the ending to the file by hand. It has worked now. Thanks a lot

  • File association and language association

    2
    0 Votes
    2 Posts
    4k Views
    YvesMPY

    Hi,
    menu and choice name will not be accurate in my answer because I’m not on an English installation, but I guess it will be close enough
    to open all files with a given extension with Notepad++ by double click, right click on such a file in the file explorer, choose properties, and select Notepad++ as the application for opening (you might need to give the full path to the binary).
    To tell Notepad++ to apply a language to an extension, go to menu list Parameters, choose Syntax coloration, select the target language in the panel, and type your extension in the fields on the bottom (on my install only two choices). And then of course save and apply.