• Search and replace not working properly ...

    9
    1 Votes
    9 Posts
    17k Views
    S
    @Vasile-Caraus Create a UTF-8 document with some “word” data in it. For example, copy-n-paste the content of this posting. Get to the Find dialog’s Replace tab: Find what: \w Replace with: \x20 Search mode: Regular expression Wrap around: checked Uncheck all other checkboxes on Replace tab. Press the Replace button one or more times. Each press replaces a word character with a single space character.
  • Create an account on the NP++wiki

    Locked wiki
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Launch in FIREFOX ?

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Regex: I want to modify something

    11
    0 Votes
    11 Posts
    5k Views
    S
    @Vasile-Caraus I can understand why \r would work in place of \R for non-Unix files in a FIND operation, but I would not use \r in place of \R in a REPLACE operation for Windows files. Truly, however, \R works fine in my extensive experience with it, and something else must be wrong in your situation. \W and \K have no relation at all, and if indeed it works somehow in your specific application, it is sheer coincidence. What troubles me is that you are making blanket statements such as you did, without any supporting information. So perhaps people read this thread in the future and they start mistrusting \R or \K unnecessarily. Can you post some understandable examples of real text where \R and \K do not work right? Just saying “this doesn’t work” without more information is not helpful. I know it takes work to find specific examples and then put them together into a clear, coherent post that really seems to demonstrate a problem…but I don’t see any way around that for this case. Let’s either prove that \R and \K have issues, or let’s disprove it.
  • 0 Votes
    2 Posts
    3k Views
    Claudia FrankC
    @Michel-DEVEL I think you should report this at github. Cheers Claudia
  • use plugin from macro

    7
    0 Votes
    7 Posts
    4k Views
    dailD
    @gfgtdf I never said it was perfect ;) You are welcome to make changes and submit a pull request.
  • Save as "All types (*.*)" default - 7.3.1 64bit

    5
    0 Votes
    5 Posts
    4k Views
    waukeerulesW
    @hianghokung Okay. I was unable to save the setting in Preferences > Default Directory > “Use new style save dialog (without file extension feature)” while using 7.3.1. When closing and opening Notepad++ the checkbox would reappear. Downgrading to 7.3.0 resolved this issue. As for being unable to open text files, this was an issue with Preferences > MISC. I had set the “session file ext.:”/“Workspace file ext.:” to “txt” while I was troubleshooting the issue. Thanks again for your help.
  • gpup.exe requires administrator privileges

    Locked
    5
    0 Votes
    5 Posts
    6k Views
    chcgC
    See https://htmlpreview.github.io/?https://github.com/bruderstein/nppPluginManager/blob/master/doc/index.html#install , unfortunately still version 1.3.5 is bundled with n++ 7.3.1 instead of current 1.4.3 of PM which causes some troubles.
  • Getting find in files to stop on first match

    6
    0 Votes
    6 Posts
    5k Views
    Ted LundqvistT
    Thank you for your excellent support! Your suggestions definitely solves my problem and there is no need to have this feature implemented in N++.
  • TLS 1.1 or later support?

    ssl tls virtualization
    6
    0 Votes
    6 Posts
    4k Views
    chcgC
    @Claudia-Frank That’s right, but before digging deeper I would like to get an answer from @Dan-Soper , what exactly he needs to know.
  • Jump or go to the nth element

    delimiter csv
    9
    0 Votes
    9 Posts
    8k Views
    Bruno Miguel PereiraB
    Hello, Just to thank you all :) It seems @Scott-Summer was right and the issue came from the install through plugin manager. I did it again manually and now the script is working. I will use it as a base and I will probably do some adjustments. Cheers, Bruno
  • make cursor more visible

    Locked
    3
    0 Votes
    3 Posts
    6k Views
    S
    @Alain-Torrens You might also want to turn on current-line highlighting. See Settings (menu) -> Preferences -> Editing -> Enable current-line highlighting. Even if your caret was hard to see after Claudia’s suggestion (which it won’t be), this would help narrow down its location. :-)
  • Last few versions, no more auto-indent?

    Locked auto-indent autoindent
    3
    0 Votes
    3 Posts
    2k Views
    T QT
    I guess it was a bug. I updated to the latest version today and its working again. All good now :)
  • 0 Votes
    7 Posts
    11k Views
    Claudia FrankC
    @minsikau that is url standard encoding. Spaces needs to be percent escaped. See https://tools.ietf.org/html/rfc3986#page-12 for more information. Cheers Claudia
  • Not able to see japanese characters

    6
    0 Votes
    6 Posts
    5k Views
    Claudia FrankC
    @pranjal-mathur Same result or different result but not solved. By any change - could you upload the xml for testing? Or create one which shows the behavior. Cheers Claudia
  • the compare function is failing. only a ctrl+f finds this exact duplicate

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Alan KilbornA
    @Dave-Lafontaine To obtain help here, you need to be able to write a coherent, understandable question. Yours makes little if any sense. If you work in the computer security realm, I hope you put more care into that work than you did with your post. I also hope you rephrase your inquiry, because there are people here that can and will help, if they can understand what you need.
  • Skip duplicate words at beginning of the line

    Locked duplicate words
    2
    0 Votes
    2 Posts
    2k Views
    guy038G
    Hello kreien, I was pretty sure that your sorted list could be modified with a regex S/R. Unfortunately, I was unable to perform what you want to, in one go :-(( Luckily, with two successive S/R, it’s quite OK ! First of all, add a dummy line, just before the first line of your list ( xxxx[TAB]xxxx ) We’ll also need a dummy character, not used yet, in your file, to identify specific lines. I chose the # symbol but any other symbol may be used. Just escape it if this symbol is a special regex character ! Two hypotheses : I supposed that each line of your sorted list are NOT preceded by some blank characters, which could be different, between two consecutive lines ! I supposed that you don’t care about the case of the text, before the first tabulation character So, we start, for instance, with the sorted example text, below : xxxx xxxx Garden following text garden following text Garden following text Garden following text Green following text House following text House following text house following text street following text Street following text Wall following text As you can see, the lines, beginning with House, are located after those beginning with the word Green. Better for a sorted list, isn’t it ? The first regex S/R, below, will add a # symbol at the end of, either , any single line and OR the last line of a group SEARCH (?i-s)^(.+?)\t.+\K\R(?!\1) REPLACE #$0 NOTES : The part (?i-s) forces the regex engine to consider the dot character, ., as a single standard character, only and that all the process is done, in an insensitive way ! Then, the part ^(.+?)\t represents, from beginning of line, the shortest range of standard characters, followed by a tabulation character. This range is stored as group 1, due to the surrounding round brackets The part .+, matches all the remaining standard characters, of the line, after the first tabulation The final part \R(?!\1) represents the End of Line character(s) of the current line, followed by a negative look-ahead, that is to say a condition which must be true for the regex engine considers the overall match. So, the beginning of the next line must be different from the beginning of the previous one ( \1 ) Finally, the syntax \K forces the regex engine to forget all text matched, before \K. So, this search regex just matches the End of line character(s) of the current line, if next line does NOT begin with the same string beginning the current one So, in replacement, these End of Line character(s) ( the whole regex $0 ) are re-written, preceded by a # symbol And we obtain the changed text, below : xxxx xxxx# Garden following text garden following text Garden following text Garden following text# Green following text# House following text House following text house following text# street following text Street following text# Wall following text# The second regex S/R, below, deletes any # symbol, as well as any text, till the first tabulation character, in all the lines whose the previous line does NOT end with a # symbol SEARCH (?-s)#|[^#\r\n]\R\K.+?(?=\t) REPLACE EMPTY NOTES : Refer above, for the (?-s) syntax The first part of the alternative, |, matches a possible # symbol, at the end of a line The second part of the alternative, [^#\r\n]\R, looks for a last standard character, different from a # symbol, followed by the End of Line character(s) Then the \K syntax, again, reset the regex engine search location, at beginning of the next line Finally, the part .+?(?=\t) just matches the shortest range of characters, which is followed by the first tabulation character, of the next line In replacement, either, the # symbol OR all the characters, before the first tabulation, when the previous line does NOT end with a # symbol, are, simply, deleted So, we get the final text : xxxx xxxx Garden following text following text following text following text Green following text House following text following text following text street following text following text Wall following text To end with, delete the dummy first line. Et voilà ! IMPORTANT : As we use the \K syntax, in the two S/R, you must click on the Replace All button, exclusively ! Don’t use the Replace button, ( step by step replacement ) for these S/R ! Best Regards, guy038
  • Sort order of tab bar

    Locked
    6
    0 Votes
    6 Posts
    8k Views
    Claudia FrankC
    If you start npp with the remember current session … setting (Settings->Preferences->Backup) but this doesn’t work if you open npp from the commandline with a wildcard flag. Or you could save this session and start npp from the command line with the -openSession filename parameter. Cheers Claudia
  • Find in Files - search only files with no extension

    6
    0 Votes
    6 Posts
    8k Views
    S
    @John-Bowman If you don’t mind the idea of creating some new commands (one-time-only) and executing TWO additional steps (every search), here is a workaround for Notepad++'s current inability to search in extensionless files. Your workflow will be slightly modified: Step 1: Run command “Rename *. to *.NOEXT” (defined below) on the Run menu to rename extensionless files to have extension “.NOEXT” (while you are editing any top-level file in the search tree that has a real extension) Step 2: Run your desired search; add *.NOEXT to list of filespecs to search Step 3: Run command “Rename *.NOEXT to *.” (defined below) on the Run menu to rename .NOEXT files back to being extensionless (again, while you are editing any top-level file in the search tree that has a real extension) Details of command “Rename *. to *.NOEXT”: One-time setup: In Notepad++'s Run menu, choose Run… Paste the following in “The Program to Run” box: cmd /c cd $(CURRENT_DIRECTORY) & For /R %G in (*.) do REN "%G" "%~nG.NOEXT" Press the Save button and name it something meaningful like “Rename *. to *.NOEXT” After accepting the name via the OK button in the “Shortcut” window, press the Cancel button in the “Run…” window (yes, seems like the wrong thing to do). Details of command “Rename *.NOEXT to *.”: One-time setup: In Notepad++'s Run menu, choose Run… Paste the following in “The Program to Run” box: cmd /c cd $(CURRENT_DIRECTORY) & For /R %G in (*.NOEXT) do REN "%G" "%~nG." Press the Save button and name it something meaningful like “Rename *.NOEXT to *.” After accepting the name via the OK button in the “Shortcut” window, press the Cancel button in the “Run…” window. Thanks to this website for some helpful info on renaming files: http://ss64.com/nt/ren.html
  • Unattended Installation (Auto Update Disabled)

    5
    0 Votes
    5 Posts
    17k Views
    Stephan MaucherS
    @fralbert Yeah! Would never have tested that. Thanks 1k!