• delete part of text

    5
    0 Votes
    5 Posts
    1k Views
    pinuzzu99P

    tanks for your wonderful reply.
    and i have already see your link about reg-ex documentation…
    but there is always little time to do what you want to do!

  • UI artifact from Find 2-button mode enable/disable checkbox

    7
    0 Votes
    7 Posts
    492 Views
    dtoxic64D

    @Alan-Kilborn

    it was in focus i just did not use the keyboard to cycle trough options, i could no get the “artifact” using the mouse,and you are correct ,once you get to the “artifact” you can cycle it with “space bar” so not useless after all :D

  • Impossible to delete npp.7.8.4.Installer.x84.exe

    2
    0 Votes
    2 Posts
    252 Views
    Alain ChappuisA

    Hello
    problem solved with unlock last version!

    Sorry for the noise!

    Alain

  • line jumping

    4
    0 Votes
    4 Posts
    1k Views
    pinuzzu99P

    ok, tanxs for your post!
    Regards

  • remove duplicated line

    12
    0 Votes
    12 Posts
    886 Views
    pinuzzu99P

    tanxs guy038.
    I’m glad you went ski, even if the weather was not perfect… every now and then it is good to detach from the pc!
    tanxs for your reply, but not just for the answer itself, as for the spirit you put into it…
    thank you so much for your very appreciated answers.

  • 64Bit or 32bit

    3
    0 Votes
    3 Posts
    4k Views
    Michael VincentM

    @Zachery-S

    I’ve run both on Windows 10 64-bit. I migrated to exclusively use only N++ 64-bit about a year ago. It depends what plugins you want / use - not all are available on 64-bit. For me, the DBGp plugin is the only one I use(d) that I can’t get on 64-bit (32-bit only). I had an issue with MultiClipboard as well, but was introduced to Ditto on this forum and it’s way better than the MultiClipboard plugin.

  • Debugger redirect getting deleted

    9
    0 Votes
    9 Posts
    515 Views
    Rob SaundersR

    @Rob-Saunders said in Debugger redirect getting deleted:

    @ldlx I just updated to 1909 recently and discovered this same issue. I’m not using Sophos, so I’m pretty sure it’s a straight up Microsoft issue. I can’t even manually edit the registry key after giving myself every permission under the sun. It seems MS is hell bent on us not using this functionality anymore. :(

    Ok, nevermind. I just uninstalled my antivirus (I was using Bitdefender) and suddenly everything works fine.

  • Negate command line options (-openFoldersAsWorkspace)

    3
    3 Votes
    3 Posts
    316 Views
    dinkumoilD

    @Greg-Teater

    Both of your suggestions a) and b) would require some changes to the code base of Notepad++ (will not happen in the near future, if ever).

    Thus, my suggestion is to create a desktop shortcut to a script file that changes the config file of your Notepad++ installation before running notepad++.exe. The config file is in XML format, the script has to delete the /NotepadPlus/FileBrowser XML node.

    The following is a VBScript solution. Please note: You have to change lines 19 and 20 according to your needs.

    The location of the Notepad++ config file depends on the type of installation you are running, a portable one or created by the Npp installer.

    Installed by installer: %AppData%\Notepad++\config.xml
    Portable: <Npp-Directory>\config.xml

    Save the script for example as NppLauncher.vbs and create a desktop shortcut to it. Then open the properties of the shortcut and change its target to the following command:

    wscript.exe "<Path-To-The-Script-File>"

    The script forwards all received command line arguments to Notepad++.

    Option Explicit '------------------------------------------------------------------------------- 'Variables declarations '------------------------------------------------------------------------------- Dim objFSO, objXmlDoc Dim strNppPath, strNppExePath, strConfigPath, strCfgFilePath Dim strNodePath, colNodes, objNode Dim intCnt, strArguments '------------------------------------------------------------------------------- 'Create base objects '------------------------------------------------------------------------------- Set objFSO = CreateObject("Scripting.FileSystemObject") Set objXmlDoc = CreateObject("MSXml2.DOMDocument.6.0") strNppPath = "<Path-To-Npp-Installation-Directory>" strConfigPath = "<Path-To-Directory-With-Npp-Config-File>" strNppExePath = objFSO.BuildPath(strNppPath, "notepad++.exe") strCfgFilePath = objFSO.BuildPath(strConfigPath, "config.xml") strNodePath = "/NotepadPlus/FileBrowser" '------------------------------------------------------------------------------- 'Main script '------------------------------------------------------------------------------- 'Open Npp XML config file objXmlDoc.async = False objXmlDoc.validateOnParse = False objXmlDoc.preserveWhiteSpace = True objXmlDoc.load(strCfgFilePath) 'Delete XML node regarding "Folder as Workspace" feature Set colNodes = objXmlDoc.selectNodes(strNodePath) For Each objNode In colNodes Call objNode.parentNode.removeChild(objNode) Next 'Save Npp XML config file objXmlDoc.save(strCfgFilePath) 'Start Notepad++ with provided command line arguments strArguments = "" For intCnt = 0 To WScript.Arguments.Count - 1 strArguments = strArguments & " " & Quote(WScript.Arguments(intCnt)) Next Call Execute(strNppExePath, strArguments) '=============================================================================== ' Surround a string with double quotes '=============================================================================== Function Quote(ByRef strString) Quote = """" & strString & """" End Function '=============================================================================== ' Run application with provided arguments '=============================================================================== Function Execute(ByRef strApp, ByRef strArgs) Dim objWshShell Set objWshShell = CreateObject("WScript.Shell") Execute = objWshShell.Run(Quote(strNppExePath) & " " & strArguments, _ 1, _ False) End Function
  • 0 Votes
    4 Posts
    393 Views
    guy038G

    @guest-new, @peterjones and All,

    Once again, I would like to underline, like @guest-new, the quality of the answers provided by @peterjones. The overview exposed and the variety of solutions given is simply amazing !

    Best Regards,

    guy038

  • go to end or select from line to end

    9
    0 Votes
    9 Posts
    17k Views
    guy038G

    Hello @pinuzzu99, @peterjones and All,

    @peterjones, you said :

    some keyboards (like small laptops or ultra-compact mobile keyboards, like the one shown below) have no HOME or END keys!

    I did not know about it ! Personally, I would be very sorry to use such a keyboard. From time to time, I think, on the contrary, of buying myself a big keyboard, for on-line gaming enthusiasts, with a lot of extra function keys , fully configurable ;-))

    @@pinuzzu99, finally, thanks to the Shortcut Mapper, you’ve found a work-around ( Alt + Down Arrow ) Nice ;-))

    Best Regards,

    guy038

  • File association made easier

    2
    0 Votes
    2 Posts
    266 Views
    PeterJonesP

    Does this dialog not work for you? Or do you just not like it?

    fed0b337-26c1-4879-9f35-49d80390f5c5-image.png

    If you don’t like the way it’s implemented, feel free to write the code fixes yourself, and submit a pull request, and see whether it gets incorporated; or, if you don’t have the right coding skillset, then follow the FAQ to make a feature request – that’s the way open source software works.

    Whining and complaining in a community forum won’t do you much good (and won’t win you any brownie points with the people who might answer your question(s)).

  • Plugin Request: Markdown navigation panel

    2
    0 Votes
    2 Posts
    1k Views
    Michael VincentM

    N++ “has” that. It’s built-in and called the “Function List” (View => Function List). Of course, you’ll need to do a little work to get it to “work”.

    Discussion
    Solution

    Summary below:
    In your functionList.xml in the N++ install directory, in the “<associationMap>” section at the top, add:

    <association id="markdown" userDefinedLangName="Markdown"/> <association id="markdown" ext=".md"/>

    And then at the bottom, in the <parsers> section, add:

    <!-- ==================================================== [ Markdown ] --> <parser displayName="Markdown" id ="markdown" commentExpr="(?x) # free-spacing (see `RegEx - Pattern Modifiers`) (?ms: # Code block ^ # ...at start-of-line a (?'BLOCK'\x7E{3}(?!\x7E)|\x60{3}(?!\x60)) # block-start indicator \w*\h*$ # .*? # ...whatever, ^\x20{0,3} # ...optional indentation for a \k'BLOCK' # block-end indicator \h*$ # with trailing white-space only ) " > <function mainExpr="(?x) # free-spacing (see `RegEx - Pattern Modifiers`) (?m-s) # ^ and $ match at line-breaks, dot does not ^ # at start-of-line (?'NOCODE_INDENT' \x20{0,3}(?!\x20) # indent of 3 spaces max, otherwise it's code ) (?: # ATX-style heading (?'LEVEL'\x23{1,6}(?!\x23)) # nr. of hashes indicate level \h* # whitespace? ( use '+' instead of '*' for at least one white-space) \K # discard text matched so far (?: [^\r\n\x5C] | \x5C. # backslash escape sequence )+ (?: # closing sequence \h+ # ...starts w/ at least one white-space \x23+ # ...contains only hashes, amount arbitrary )? # ...is optional \h*$ # trailing white-space up till line-break | # Setext-style heading \K # discard text matched so far [^\r\n]+ # whatever, (?= # ...up till \h*(?:\r?\n|\n?\r) # ...any trailing white-space and a line-break, (?&amp;NOCODE_INDENT) # ...indent for header indicator (?:={3,}|-{3,}) # ...H1- or H2-header indicator resp., \h*$ # ...trailing white-space up till line-break ) ) " > <functionName> <nameExpr expr="(?x) (?| (?:\h+\x23+\h*$) [^\r\n]+ (?= \h+\x23 ) | .* ) " /> </functionName> </function> </parser>

    Cheers.

  • multiple txt to one new txt

    24
    0 Votes
    24 Posts
    3k Views
    pinuzzu99P

    thanks you so much, again! cheers

  • 1 Votes
    3 Posts
    352 Views
    Peter StambaughP

    I usually start working by right-clicking on a file in explorer and choosing to open with notepad++. Regardless though, I tested your suggestion, and it did not change things. Yes I got back the same files I
    opened after I closed/re-started Notepad++ with last remember current session enabled, but that didn’t really change anything in terms of default/current file location. The first save went to my documents folder, but subsequent ones went right back to system32. Likewise with opening files, which always defaulted to the Notpead++program directory.

    Either way, I still believe that Notepad++ should be able to remember my last directory between sessions whether or not the remember last session option is turned on. First because since they are separate options in separate areas of the preferences. Second, because that is the standard usage in most every windows app.

    Likewise, I still think the specific directory option should be a default for start of the session only, not for all saves. Within a session the saves and opens should default to the last used directory. At least optionally.

    BTW, In case it matters I am using the 64-bit version, and just updated to 7.8.3 before testing the suggested solution.

  • 0 Votes
    6 Posts
    2k Views
    Tư Mã Tần QuảngT

    @dinkumoil

    Thank alot!

  • Remember file type

    4
    0 Votes
    4 Posts
    305 Views
    Alan KilbornA

    @Shane-Goodman said in Remember file type:

    The asterisks in my original post seems to have changed some words to italic. This forum is a bit buggy.

    No, putting something inside a pair of asterisks means to italicize everything between. You seem to understand that in your second posting, where you italicized the word option. :-)

    …have the option to remember my setting. Productivity is important for me.

    That makes sense…but Notepad++ can’t do it in its current form. The proper method for asking for a feature is described here if you choose to pursue it.

  • Trouble saving files with .js extension:

    5
    0 Votes
    5 Posts
    2k Views
    Terrell MillerT

    thank you very much. I’ll probably take the lazy way out. But this is a relief that the new save procedure is a feature that changed that I did not pick up on.

  • It would be great to have multithreading search in files.

    2
    0 Votes
    2 Posts
    248 Views
    Alan KilbornA

    @Andrei-Iliushin

    Notepad++ doesn’t try to be a great searcher. Yes it provides some functionality, but if you really want advanced functionality, you should turn to other tools. Not the answer you wanted, I’m sure.

  • Setup for without msi or exe

    5
    0 Votes
    5 Posts
    671 Views
    PeterJonesP

    And even with accurate info, you are going to have to tell us more about your situation, because, as I said, there is no performance difference between installed and unzipped versions.

    Questions to think about: is Notepad++.exe on same drive as word.exe? Do you have a file in your MRU list in Notepad++ that is on a network drive, or a separate HDD/SSD? Does your admin have a process watcher that is scanning or throttling unapproved apps? Etc

  • Change Upper to Lower Case only at the beginning of each line

    6
    0 Votes
    6 Posts
    2k Views
    Alan KilbornA

    I suppose the much simpler search for (?-s)^. and replace with \L$0 also works fine…