• Find in files - find extensionless files

    4
    0 Votes
    4 Posts
    943 Views
    PeterJonesP

    @dada-a said in Find in files - find extensionless files:

    Is there a way to achieve exclude all files with extensions?

    What you want to exclude are all files that have at least one character after the extension. But *.* matches zero-or-more characters after the extension, so !*.* excludes all files, with or without extension.

    If you want to guarantee that it excludes only files with at least one character after the extension, use !*.?*, where the ? matches one character, and the * after it matches zero or more characters in the extension.

    So the full Filters setting of *.* !*.?* (or !*.?* if you’re on Notepad++ v7.8.7 or later) will only match files that have no extension.

    https://npp-user-manual.org/docs/searching/#find-in-files-tab
  • How to change default tab name

    5
    0 Votes
    5 Posts
    2k Views
    Richard NurseR

    Wonderful, thank you everyone! :)

    Kind Regards

  • Tabs are floating after upgrade to 7.9.5

    11
    0 Votes
    11 Posts
    2k Views
    Qamar4PQ

    Just hide it by resizing the editor window to the left, right, top, bottom. Exit and reopen it will remember the bigger window.

  • Saving rolled text

    2
    0 Votes
    2 Posts
    270 Views
    PeterJonesP

    @araders ,

    Notepad++ doesn’t store folding information when it exits, because it cannot guarantee that the file won’t have changed the next time it loads (which might be confusing or worse if it folded on the same line numbers as it did before).

    That said, back in this old discussion, I published a pair of scripts that will save the line numbers where folding occurs, and reload that folding on demand. it will only work if the file doesn’t change between the save and the load. To use that script, install the PythonScript plugin, then use that plugin to create two scripts, with the contents of the scripts from that other discussion; then run the individual scripts to save or load the folding from the CSV file.

  • How to delete "(....)" but only in certain lines

    13
    0 Votes
    13 Posts
    3k Views
    guy038G

    Hello, @peterjones,

    After further testing, I came to the conclusion to keep the present syntax (?\A). Refer to this post for some explanations :

    https://community.notepad-plus-plus.org/post/74937

    So, sorry for the noise. I’m going to reformat most of my notes, concerning this specific regex.

    Then I will send it to you by mail for checking before finding a final destination for it !

    Cheers,

    guy038

  • Replacing variable length file paths in a GEDCOM file

    44
    2 Votes
    44 Posts
    3k Views
    Web MasterW

    @paul-wormer The replacement string is constant so it’s a one-time entry into the expression the guys have devised for me.

  • how to add *cs before.xml

    6
    0 Votes
    6 Posts
    382 Views
    aff mA

    @alan-kilborn

    thank you. I followed your example and saved it .

  • Replacing different values with one value

    5
    0 Votes
    5 Posts
    1k Views
    2 mins Summary2

    @alan-kilborn I really appreciate it
    God bless you
    you made my day

  • How to replace multiple "variables" vs a template

    4
    0 Votes
    4 Posts
    3k Views
    Alan KilbornA

    @michael-vincent said in How to replace multiple "variables" vs a template:

    conf\nconf

    And you’d want to be careful about what type of “newlines” you put in; specifically on Windows you are likely to want \r\n instead of \n.

  • 0 Votes
    6 Posts
    2k Views
    dfs-D

    First question for me is, if the issue is created when saving or when opening the file(s).

    So does make changing the file in Notepad++ make it unreadable by Windows Notepad?

  • regexp help: lookahead and lookbehind with spaces

    12
    0 Votes
    12 Posts
    754 Views
    Neil SchipperN

    @patrickdrd said in regexp help: lookahead and lookbehind with spaces:

    why not match “accidental” carriage returns/ line feeds?

    I don’t know enough about your data or the intended purpose of the pair matching to say either way, but I will say that, since you are gathering up either ab or ba pairs, then, a small error can make every subsequent pair a different pair from what would have matched without the error.

    It’s up to you to think through whether this harms what you’re trying to accomplish, and if it does, to try to devise a strategy that could detect a malformed pair, and maybe skip it and then resync and pick up all subsequent pairs with desired grouping.

  • Notepad++ becomes unresponsive

    5
    0 Votes
    5 Posts
    652 Views
    Jon MayJ

    @terry-r
    Thanks for the reply.

    This is what I’ve done and so far all is working well.
    I’ll see how it goes today when I start using it properly, but so far so good.

    Thanks for the help :)

  • PythonScript and system Python

    15
  • Click on search results item prompts to save "new x" file

    5
    0 Votes
    5 Posts
    474 Views
    Terry RT

    @maverick-doe said in Click on search results item prompts to save "new x" file:

    This fixed it for now. If it happens again, I’ll download the latest as you suggested.

    Actually I wouldn’t necessarily suggest always upgrading to the very latest.

    In recent months there have been a lot of new versions released. Unfortunately in getting some enhanced features running (large files were one) there have been other errors/regressions (re)introduced.

    So often being at the front of the queue is not ideal. You take your chances with potential issues. The system referred to is on my work PC and unfortunately those who do the patching at work (upgrading) didn’t listen to me. Luckily I haven’t had a bad run but on my home PC I tend to run a few versions back from the front. I sort of use the approach that if it ain’t broke don’t fix it. So unless a newer version has something I’d really like to use I hold back. YMMV!

    Terry

    PS I did note you now had the 32-bit version and wondered why

  • Refresh "Folder as Workspace", is the folder is on the Network Drive.

    2
    0 Votes
    2 Posts
    986 Views
    PeterJonesP

    @gururaj-jois ,

    So, it depends on what you mean by “mapped”. If you mean what Windows means, then my experience is exactly the opposite of yours. If you mean "a network drive accessed directly by UNC, not by a Windows OS Z:-style alias, which WIndows calls a ‘map’ ", then I can confirm your results:

    My experiment:

    I have a directory on a remote machine available from \\machinename\path\ I use Windows “map” feature (right click on This PC, then click Map Network Drive, and map \\machinename\path\ to the drive Z:\ – this is a Windows map. In Notepad++, I use File > Open Folder As Workspace twice. The first time, I select Z:\, and I see it show me the whole hierarchy The second time, I select \\machinename\path\, and I see it show me the whole hierarchy In Windows, I add a new file to \\machinename\path\ Instantly, the Z: portion in Notepad++'s Folder as Workspace panel shows me the new file. However, the \\machinename\path\ portion in Notepad++'s Folder as Workspace panel does not update

    (I see the same behavior on both v8.2.1 and v8.3.2)

    If possible, I would recommend just using Windows to map the UNC path to a pseudo-drive-letter, like I did for Z:. If you don’t want to do that long term, then you can read the “feature request” FAQ which explains how and where to make an official feature request. If you do make a feature request, make sure you follow their template (especially include the Debug Info of your current Notepad++, by going to the ? menu and clicking Debug Info); also, make sure you use correct terminology: a mapped drive is a drive letter that points somewhere else (like my example Z: points to the remote machine); a UNC path is using the double-backslashed \\machinename\path\ to access the machine directly, without a Windows mapping. Finally, if you create that request, please paste a link to that request in reply to this topic, so future people who find your request here can find out if it’s been implemented yet or not.

    Good luck.

  • Need Explanation of a few Session.xml Parameters & Values

    8
    0 Votes
    8 Posts
    2k Views
    Daniel TomberlinD

    @PeterJones, thanks for clarifying. I got a sensible conversion from the online tool after entering the formula into Google to calculate an answer to provide it.

    So with this example, entering the calculated answer of 1.3201045e+17 into the online converter gave me Monday, April 29, 2019 8:56:40 PM, which is exactly what I needed.

    Thanks again @Alan-Kilborn and @PeterJones!

  • Selecting text between tags and saving to another document

    4
    0 Votes
    4 Posts
    6k Views
    Devlin DeaneD

    @terry-r

    This was exactly what I was looking for, I sure do thank you. Sorry, sometimes my head cannot figure out certain things.

  • ToolBucket Multiline Find & Replace won't open

    8
    0 Votes
    8 Posts
    2k Views
    Terrie HT

    @peterjones THANK YOU! I did what you said, which actually did not work, but it prompted me to uninstall Notepad++ completely and this time I opted to not keep custom settings, then reinstalled v. 8.2.1 and now it works! :)

  • How to Refresh Workspce folder after creating and adding a new file

    6
    0 Votes
    6 Posts
    2k Views
    Gururaj JoisG

    @andrecool-68 For folders on the network drive, this is not working. We have to close and open the notepad++.

  • Search for range of values

    7
    0 Votes
    7 Posts
    2k Views
    Thomas KlinghanT

    @alan-kilborn said in Search for range of values:

    \b69\d{2}.\d+\R

    ahhhh sorry for my misunderstanding.

    Thank you very much :-)