• Find in files resulted in a frozen Npp

    1
    1 Votes
    1 Posts
    220 Views
    No one has replied
  • Find / Replace swap in 8.2.1

    1
    6 Votes
    1 Posts
    878 Views
    No one has replied
  • How can i put notepad++ as default editor on Windows 2016 ?

    2
    0 Votes
    2 Posts
    799 Views
    PeterJonesP

    @eric-bret ,

    The same way you do with any other Windows application: There are a plethora of ways; you can search the internet for “associate txt with another application”, since we cannot be expected to be experts in all versions of Windows and Windows Server, and what config options you are comfortable with. As a hint, I usually use Right Click > Open With and check make-default, and/or directly edit the registry; GPO might do it, but I’m not a GPO expert.

    Also, if you run Notepad++ as administrator, the Settings > Preferences > File Association dialog will allow you to try to set associations.

    You can search this forum for “association” to find more discussion on file association, including some gotchas and difficulties with various methods.

  • Right-Mouse Click to Line/Sort

    3
    0 Votes
    3 Posts
    378 Views
    jose isaias cabreraJ

    @alan-kilborn Thank you, sire. This is what I was looking for. I appreciate your effort.

    josé

  • Enhance UDL lexer

    41
    4 Votes
    41 Posts
    11k Views
    EkopalypseE

    @c-siebester

    The only pitfall I see at the moment might be that your UDL name is not ml but something else.
    When you run the script, do you see any errors in the console?
    I assume you copied the whole script and not just the part you mentioned here, right?
    If you click on the script from the Python script menu while holding down the CTRL key, will the expected script open in Npp?

  • New instance of NPP starts with NppFTP window hidden

    1
    0 Votes
    1 Posts
    454 Views
    No one has replied
  • feature request: search with "accent match" (without Regular expression)

    8
    0 Votes
    8 Posts
    544 Views
    conky77C

    @alan-kilborn
    I inserted the Issue #11028

  • How can a user browser for the Run menu be configured?

    2
    0 Votes
    2 Posts
    492 Views
    PeterJonesP

    @michael-albry ,

    What ancient version of Notepad++ are you using? View > Current File in > Edge has existed for years now – it was added in v7.6.5 in September 2019. It was only versions before that in which you used the Run > Launch In XXX entries.

    And if you still need to add some other browser, then yes, you can add any external application you want, as long as you know the command line; it’s really easy: Run > Run…, type the path of the application to run (and maybe use the variables described in the Config Files > User Defined Commands section of the user manual, like using c:\path\to\otherbrowser.exe "$(FULL_CURRENT_PATH)" to run the currently-active file in otherbrowser – then Save that user-defined command.

    (Those Run > Launch In entries were removed a little earlier than the alternative was developed, in v7.6.3. This was part of the EU-FOSSA effort to avoid security compromise vectors from being distributed by default.)

  • Please make a Mac version available !

    2
    0 Votes
    2 Posts
    322 Views
    PeterJonesP

    @bryn-parrott ,

    Please read the posts in that thread you linked, especially https://community.notepad-plus-plus.org/post/64865 … Unless you can overcome the technical challenges mentioned there, there’s not anything that can be done

  • Convenience technique when organizing PythonScripts into folders

    6
    4 Votes
    6 Posts
    740 Views
    PeterJonesP

    I used to have all of my scripts in a private repo at some svn-based competitor to github that allowed free private repos. I would just check out that repo as my user scripts folder on any machine I’m working on, and automatically get all my scripts wherever I go.

    As I started sharing more of my scripts, I played a bit with gists, but didn’t like that i had two copies of some scripts – one in the private repo and one in the gist.

    I realized that I didn’t have any proprietary/private scripts (and if I did, I could put them in my system scripts folder instead), so I moved the repo to my github, so I can share any of them.

    So it’s not Alan’s collection, but my collection is at https://github.com/pryrt/nppStuff/tree/main/pythonScripts … and the nppCommunity subdirectory is the ones I’ve developed for or snagged from this forum, mostly organized by topic-ID.

  • How can I search a specific numbers in between two numbers?

    Locked
    2
    0 Votes
    2 Posts
    344 Views
    Alan KilbornA

    @rab_road

    Why did you post the same thing in two different threads??
    Please don’t do that

    Here’s the other: https://community.notepad-plus-plus.org/topic/22315

    Anyone thinking of replying to THIS thread, please see existing replies in the linked thread first, and, if you want to post, do so THERE, not HERE.

  • Display a file in hexadecimal.

    3
    0 Votes
    3 Posts
    15k Views
    artie-finkelsteinA

    @josé-antonio-da-silva

    There is a HexEditor plugin. Of the many flavors available, I’ve found the version listed in Plugins Admin NPP_HexEdit to be the least unstable. (Note: I’ve never put the time into tracking down the cause of the occasional unstable behavior on my system, as I rely on HxD for my hex editing needs.)

  • What is backup (in Notepad++ context)? ... let the flames raise high

    12
    6 Votes
    12 Posts
    2k Views
    UsefulBackupU

    @artie-finkelstein said in What is backup (in Notepad++ context)? ... let the flames raise high:

    Programs are tools. Tools are force magnifiers. It’s my responsibility to use my tools correctly. Sometimes, this means I have to read a manual, sometimes it means I have make a test run to prove a particular tool function works correctly before I start a critical task, but that’s actually still part of MY responsibility.
    As the aphorism goes: It’s a poor worker that blames their tools.

    Let’s take the safety features off of manufacturing machines that can turn a person into spaghetti then(I’ve seen a video).

    As if there’s been no advancement to tools throughout history to make them easier, more accurate and safer to use. Anyone who uses that aphorism must exist nowhere other than in lines of code and doesn’t work in the real world… Hey, why do you use NotePad++ and not Windows NotePad?

    @gstavi said in What is backup (in Notepad++ context)? ... let the flames raise high:

    I think that improving verbose backup could make it a reasonable enabled-by-default backup system.
    It could backup files into some folder at %APPDATA% but will need some auto-limit-and-cleanup on the amount of backup (a few MB) to prevent a user from finding after 2 years, 200,000 files (from 200,000 save operations) consuming 4GB of storage he did not explicitly requested. Such auto-limit is not trivial to define but could be fine tuned. For example, I would not backup at all files over some threshold (e.g. 300KB) which are unlikely to be “hand written”.

    This is the only reasonable, rational, logical thing said in this thread.

    This is how my other professional software works, I think the default .bak limit per projects is 10, but the user can set it to whatever they want. The .baks are stored with/in the project folder where the working master file is saved.

    It’s really not a big deal, at all.

  • Useless Backup System

    34
    0 Votes
    34 Posts
    4k Views
    UsefulBackupU

    @pnedev said in Useless Backup System:

    It is becoming rather a philosophical discussion now but the other perspective is how often people will find the behavior of the editor awkward.

    For all the time Notepad++ has been out there AFAIK @Resonant-Mind is the first to ask for that backup by default (not trying to be disrespectful here, just stating the facts).
    I think what @Alan-Kilborn is kind of worried about is that since the change there are already several (two AFAIK) help requests in this forum asking why the .bak files appear and how to stop that. Those are coming from not power users obviously. And since @Alan-Kilborn and a few other folks here are the guys that are actually spending time and effort answering such queries and trying to help it is normal for them to measure the pros. and cons. of such change from the perspective of “How much confusion it will bring and how much maintenance effort”.

    I understand both views and since we have prioritized the security and stability here (.bak ON by default) maybe it is worth creating post in the FAQ section describing how one can stop that default behavior.
    @Alan-Kilborn , what do you think?

    A couple users coming in to ask how to disable it, is not the same thing as a couple forum Golems b!tching about the change and then proceeding to be bigger cry babies than the person that lost data.

    These elitist power users fail to recognize, that a lot of professional paid for / not free software out there have their own .bak system and is enabled by default.

    So, welcome to being a professional.

  • Notepad++ encoding auto-detect potential problems

    7
    3 Votes
    7 Posts
    4k Views
    Robert CarnegieR

    I see at Github that Notepad++ can have a preference setting stored not to “auto detect encoding”. The effect seems to be that a file is treated as “UTF-8 without BOM”, including your “test.txt” file.

    Also in https://npp-user-manual.org/docs/command-prompt/

    launch settings now exist to choose a different location of stored settings (allowing alternative settings,), to launch a second or third Notepad++ window when one is open already, which may or may not have independent settings, and to set a “language” (programming language) and “localization” (whose effect I don’t know). So you could perhaps run “normal” Notepad++ alongside “only UTF-8” Notepad++.

    Also, option: -qf=“D:\path to\file”
    “Launch ghost typing to display a file content”
    types the file into the open or “new 1” tab possibly treating any file as UTF-8 - it does not mutilate your “test.txt”. However, this is slow and it does not really solve any problem. The “Encoding” menu does not seem to help, either.

    And none of this means that there isn’t a bug. On the other hand… I expect it’s possible to create a text file which really can’t have its encoding auto detected. Strictly, without assuming an encoding first, you can’t interpret a file.

  • 2-byte characters recently broken? Or do I misremember?

    5
    0 Votes
    5 Posts
    1k Views
    Jay LiboveJ

    Thanks very much @Alan-Kilborn
    I’ll jump in to the other thread (levicki).
    -Jay

  • Seasons Greetings

    3
    6 Votes
    3 Posts
    250 Views
    EkopalypseE

    From me too, I wish you all a Merry Christmas, happy and relaxed holidays. Stay healthy!

  • 0 Votes
    7 Posts
    1k Views
    Alan KilbornA

    @alan-kilborn said in Reopen files that do not exist, next time. And please latest used, instead of latest opened.:

    So, it follows that, like the default session, if you do this and you are NOT logged into your network drive (according to the OP’s described situation) at the time, you will lose track of your network files. :-(

    I did try another test, where I made the session file read-only (per the file system). In this case, temporary unavailability of a file did NOT cause the file to be forgotten. So this could be a workaround, I suppose.

  • 3 Votes
    38 Posts
    9k Views
    EkopalypseE

    … but bear in mind that this is in an early alpha stage and that there is another plugin that already covers some pitfalls when it comes to implementing LSP for Npp and Scintilla.

  • Reduce Some Typos

    5
    1 Votes
    5 Posts
    471 Views
    Alan KilbornA

    @eric-bloch

    There is perhaps an argument for additional functionality, specifically “Set Read Only Flag”, but I wouldn’t change or remove existing functionality if it were up to me.

    THIS THREAD may interest you, as it provides a means to add in the additional functionality.