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

    2
    0 Votes
    2 Posts
    514 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
    337 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
    869 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
    470 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
    17k 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
    260 Views
    EkopalypseE

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

  • 0 Votes
    7 Posts
    2k 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
    10k 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
    493 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.

  • Increase Find Window Size

    5
    0 Votes
    5 Posts
    506 Views
    Alan KilbornA

    @alan-kilborn said in Increase Find Window Size:

    There is no real way to do this.

    Well, not a great way.
    But you may want to have a look HERE to find a similar discussion.

  • Ancient Greek 'digamma' (ϝ) character

    4
    0 Votes
    4 Posts
    441 Views
    Vasile StancuV

    Thank you for the explanations. I noticed that kind of discrepancy and I thought it might be useful to make it known because I thought it was related to the application, rather than the ‘internals’ of the font itself, because the same character is correctly displayed, with the same font, in other applications. (Hereby attached is a capture of the character map related to this font).

    Digamma-character_map_palatino_linotype.JPG

    But I have no problem myself; I can manage the work I am doing using some other fonts. Thanks again.

  • How to properly migrate/clone style settings from 1 PC to many others?

    7
    0 Votes
    7 Posts
    984 Views
    Alan KilbornA

    @peterjones

    Yea, what I was trying to get to the bottom of was: “Is there anything that Notepad++ itself needs that wouldn’t be copied over in your original technique?”

    The items in your four bullet points would NOT be a concern for that. If users wanted those things to carryover for the first 3 bullet points, it is on them because it is “data”, not part of N++ that is needed. The point about plugins is “meh” because if plugin developers choose to hardcode paths, that’s their development choice, and well, the N++ devs and the support people can’t be expected to save them from themselves (nor account for that kind of stuff for all possible plugins when answering a question such as the OP’s).

    But I did realize that just copying %AppData%\Notepad++ may miss a couple settings…

    Good info. And another argument for using the portable version.

  • Compiling the application

    2
    0 Votes
    2 Posts
    970 Views
    PeterJonesP

    @фулстек-разработчик ,

    Hello dear developers. I have been using the Notepad code editor for about 10 years.

    Hello dear Notepad++ user (note that the ++ is significant; “Notepad” without the ++ is the Microsoft Windows default application for editing text).

    The primary Notepad++ Developer does not hang out in this forum. This forum is a Community of fellow Notepad++ users, not developers.

    5 years of which I have been using this editor in an operating system with a Linux kernel. …
    Please compile this application for Linux kernel systems

    You have been using Notepad++ on Linux for 5 years? Great for you. Glad it’s worked. But during that time of using Linux, you must have come across the difference between Windows and Linux, and you must have heard that binaries aren’t compatible between the two.

    The reason you have needed to use Wine is because the WIN32 API (“Windows Messaging”) calls that Windows applications use a different calling structure than native Linux programs. The “Windows Messaging” around which Notepad++ and most other Windows applications are written is completely incompatible with Linux, and to run such a beast on Linux, there needs to be a compatibility layer (“Wine” provides that layer).

    “Now wait”, you might say, “I have seen applications that were written in such a way that they can be compiled on both Windows and Linux and run just fine, like XXXX and YYYY”. Yes, you have. There are plenty. But they are written from the ground up in the Linux style, with the Linux-style libraries, and UI modules like GTK or similar that have had their UI libraries ported to work on Windows as well. Notepad++ was not written that way, and cannot be compiled natively for Linux without being completely re-written, at which point it would cease to be Notepad++.

    But unfortunately it is still not possible to install this editor from the repository, there are no deb and rpm packages on the site to install.

    Notepad++ has never provided pre-built packages for Linux because Notepad++ is a Windows application, not a Linux application, and the developers do not support Linux, nor have ever claimed to. Pre-built packages are available on some Linux distros (I think Ubuntu is one I’ve heard does have a pre-built package, but I cannot be sure).

    According to Ubuntu’s help page for Wine, all you should need to do to install a Windows application in Wine that you don’t have a prebuilt package for is to download the application’s installer EXE (like Notepad++'s current version of https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v8.1.9.3/npp.8.1.9.3.Installer.x64.exe) and save to a directory on your Linux machine, then cd into that directory and run wine npp.8.1.9.3.Installer.x64.exe, which will run the installer under Wine; then it will be installed in Wine, and you can follow their instructions for how to run it under Wine. It looks simple enough.

  • Incognito note

    7
    0 Votes
    7 Posts
    1k Views
    Alan KilbornA

    @w1t3c

    than we need to guarantee , that this file will be always in same place

    Tabs don’t move on their own.
    First position is best.
    Just leave it there.

    You seem to be trying to find problems with the “solution” I provided, which is actually quite workable.

    I suggest you embrace the solution, because (IMO) you won’t ever see such a thing as your original idea in Notepad++.

  • Note Pad Private Message

    2
    0 Votes
    2 Posts
    984 Views
    PeterJonesP

    @anthony-delbaglivo ,

    Notepad++ does not have a chat feature. It is a text editor. It is not the right platform for a private/encrypted/secret chat, and if that’s what you’re thinking, it doesn’t make sense.

    The “Forum private message” post you linked to was talking about a direct-message feature for this forum (aka “chat” aka “private message”) – at the time of that discussion, there was no such feature in this forum, but it has since been added. But that feature is just for doing a quick message to someone in this forum, it’s not a generic chat application made for connecting random people; it’s a way for members of this forum to communicate outside of just posts. You should not be planning to use that feature of this Forum as a generic private/secret chat with someone else who isn’t part of the Notepad++ text-editor community. It is not guaranteed secure; it is not something for general users to sign up for just to use “private chat” with each other; it is not a competitor to WhatsApp and similar applications; it is a chat for members of this Forum, where a member of this forum is anyone who wants to publically discuss Notepad++ and/or help answer the many questions that are asked here; the direct-message feature is not the primary purpose of this forum, and if it starts getting abused, the host is likely to turn it off an not allow us to continue to use it. Please do not abuse this feature.

  • Deployment

    4
    0 Votes
    4 Posts
    476 Views
    A

    @peterjones Thanks that help me so much