Community
    • Login
    1. Home
    2. Popular
    Log in to post
    • All Time
    • Day
    • Week
    • Month
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics
    • All categories
    • A

      File type associations not working

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      3
      0 Votes
      3 Posts
      24 Views
      PeterJonesP

      @as232 said in File type associations not working:

      I’ve used NPP for years and recently installed 8.9.1 on a new Win11 system. It appears that the File Association configuration under Setting does not take

      Windows has been trying to distance itself from the original “file association” technology for decades. They keep on making it harder and harder for the end user to implement something via that old technology. Through that preference section, Notepad++ tries its best to convince Windows to do things the old ways, but it needs to be running As Admin for it to even try, and it’s at the mercy of the OS as to whether the OS will propagate such settings to the user, or completely bypass them.

      Fortunately, you don’t need to use Notepad++'s “File Association” preferences to get file types associated with Notepad++, or to open them with Notepad++.

      If you did a normal installation of Notepad++, it will add an Edit with Notepad++ entry to the main right-click file menu (by registering the NppShell DLL when you install Notepad++), so you can open any file you want with Notepad++ by using that right-click entry.

      Further, if you want a file’s type to permanently default to Notepad++ (so double-click launches Notepad++ on that file), you just have to go to the Right Click menu’s Open With, and if Notepad++ isn’t already listed in that sub-menu, then Choose Another App and choose it there, clicking Always to make it stick; if it’s not even there, then click Choose an App on your PC and browse to c:\Program Files\Notepad++\notepad++.exe or your installation’s equivalent.

      If this doesn’t help you, then you’ll have to figure out how to copy/paste the image into your post (you can even drag and drop the image from your Explorer window into the post-editing panel while you are replying here, so you don’t even have to copy/paste, if you don’t want to), so that we can see what is uniquely happening for you.

    • Kjell RilbeK

      Regex not found in large file, known limitation or bug?

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      4
      0 Votes
      4 Posts
      89 Views
      guy038G

      Hello, @kjell-rilbe, @peterjones, @Coises and All,

      I was curious and I tried to reproduce exactly the @peterjones’s test on my laptop, with the two different lines 358660 and 382650 !

      Like Peter said, the @kjell-rilbe syntax worked correctly, even from the first line of the test file. However, this syntax also detect zero-length matches. Thus, I suppose that the combination of the regexes :

      ^[^;\r\n]*(?:(?:;[^;\r\n]*){1,11}|(?:;[^;\r\n]*){13,})$

      and

      ^[^;\r\n]+$

      would be a better solution.

      Now, as @peterjones mentioned, if the file contains only valid lines, oddly you get the error message The complexity of matching... ! And that’s why the @Coises syntax, using backtracking control verbs, is very useful.

      Indeed, this special syntax :

      Does return 0 match if current file contains correct lines ONLY

      Does return N matches if current file contains N incorrect lines

      I did not need to use the atomic forms *+ and I simply changed the * with a +, right before the $ sign, in order to avoid possible true empty lines.

      ^[^;\r\n]*(?:;[^;\r\n]*){12}$(*SKIP)(*F)|^.+$

      Best Regards,

      guy038

    • Pawan SharmaP

      Real-time search results

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      2
      0 Votes
      2 Posts
      38 Views
      Mark OlsonM

      @Pawan-Sharma
      If I had to guess, two words: race conditions (and an opposite-ish problem, deadlocks).
      Iteratively updating the results while searching seems like a great way to introduce endless difficult-to-reproduce bugs.

    • Rob PintoR

      Alternative for Notepad++ on Mac

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      37
      0 Votes
      37 Posts
      1m Views
      Chris RichardsonC

      Finally got this approved on the App Store. Any feedback would be welcome.

      https://apps.apple.com/gb/app/textpad/id6759194419?mt=12
      TextPad++

    • cmeriauxC

      survey: Incremental search usefulness

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      82
      1 Votes
      82 Posts
      47k Views
      William4565W

      @PeterJones sure.

    • Vasile CarausV

      How come I have two types of fonts in my sentences?

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      9
      0 Votes
      9 Posts
      2k Views
      William4565W

      You can use sites that can transform text, simply put you text and then transform it and place in your sentence, that is how you have two types of fonts