• NPP 8.6 multi-edit preference not shown?

    13
    0 Votes
    13 Posts
    2k Views
    mkupperM

    @Alan-Kilborn said in NPP 8.6 multi-edit preference not shown?:

    Or is it just a matter of getting used to a new and potentially better capability, if you keep an open mind about new and better things?

    We pounded rocks the same way for about 1.5 million years. About 50,000 years ago was the start of an explosion of developing and accepting new techniques. I have long been fascinated by this as I suspect that early humans from even a million years ago were about as intelligent as today’s humans but they seemed to either not try or to not accept variations in how rocks should be pounded. See https://www.history.com/news/hunter-gatherer-tools-breakthroughs for a timeline that lead to Notepad++.

    I’m still in my cave, resisting Notepad++ v8.6’s automatic multi-carets…

  • how to reset the left margin 'changes tracking' color

    2
    1 Votes
    2 Posts
    209 Views
    PeterJonesP

    @Stephen-Williams ,

    After a save, File > Reload from Disk (The resetting of the change history is documented in a bullet point in the “Reload from Disk” section of the manual)

  • Missing custom disabled icons for "synchronize scrolling"

    4
    0 Votes
    4 Posts
    434 Views
    PeterJonesP

    @Manu-el ,

    Sorry, I misunderstood your question originally (because I didn’t remember that the sync functions had buttons on the toolbar, so my mind immediately went to the CustomizeToolbar plugin, instead of thinking of the built-in toolbarIcons feature).

    In v8.4.2-v8.4.9, Notepad++ was not correctly tracking whether horizontal/vertical synchronization was possible, so it wasn’t changing those icons, and thus, it always used your custom sync-vertical.ico and sync-horizontal.ico

    However, in v8.5, Notepad++ fixed that tracking and started using an enabled and disabled version of the builtin icon, but the developer apparently didn’t think about adding the ability to have sync-vertical_disabled.ico and sync-horizontal_disabled.ico – so when the sync are enabled, they use your custom icon, but when sync is disabled, it defaults to using the builtin icon.

    In order for it to be implemented to look for sync-vertical_disabled.ico and sync-horizontal_disabled.ico when the sync is disabled, someone would have to create an official feature request (as described in our FAQ), and then the developer or one of the other volunteers would have to implement that feature. If you do submit such a request, please paste a link to the request in a reply here, so that other interested people can follow the status of the request.

  • NPP v.8.6 bug

    7
    1 Votes
    7 Posts
    761 Views
    сергей кобяковС

    @rdipardo
    Thanks, this solution helped

  • Infinite loop when hitting save as

    8
    0 Votes
    8 Posts
    1k Views
    Ciaran McNamaraC

    This happened to me as well. It’s not an infinite loop, though. While Ctrl+Shift+A is bound to “Save As” in many applications, it’s bound to “Save All” in Notepad++, which causes this surprising behaviour that can seem like an infinite loop, if you have very many files open. To solve it, I simply rebound Ctrl+Shift+A to “Save As”.

  • How to preserve whitespace in xsd validation

    2
    1 Votes
    2 Posts
    308 Views
    Mark OlsonM

    @Enrico-Fiorini
    This feels to me more like a question about XSD (which I know nothing about, just linked the best-seeming link I could find) than about Notepad++.

    On the other hand, if you found an example of where XMLTools (or whatever plugin you’re using, IDK) was giving an error where it shouldn’t be, that is more of a Notepad++ - related question.

  • multiple edits with keyboard

    6
    0 Votes
    6 Posts
    742 Views
    Nick KatN

    @mkupper thanks for the suggestion )
    Unfortunately, not every instance has to be replaced. Depends on whether the phrase is said by other personage

  • Execute N++ "Find in Files" via cmdline/script?

    7
    0 Votes
    7 Posts
    4k Views
    Alan KilbornA

    This is a real necropost at roughly 6.5 years later, but I wanted to post an updated version of the earlier script made by @Scott-Sumner ; one that just feels a bit less hackish (sorry).

    I call this variation SearchResultPanelGetText.py:

    # -*- coding: utf-8 -*- from __future__ import print_function ######################################### # # SearchResultPanelGetText (SRPGT) # ######################################### # references: # https://community.notepad-plus-plus.org/topic/14181 # for newbie info on PythonScripts, see https://community.notepad-plus-plus.org/topic/23039/faq-desk-how-to-install-and-run-a-script-in-pythonscript #------------------------------------------------------------------------------- from ctypes import ( create_unicode_buffer, WinDLL, WINFUNCTYPE, ) from ctypes.wintypes import ( BOOL, HWND, LPARAM, ) import re user32 = WinDLL('user32') #------------------------------------------------------------------------------- class SRPGT(object): def __init__(self): self.search_results_hwnd = None WNDENUMPROC = WINFUNCTYPE(BOOL, HWND, LPARAM) user32.EnumChildWindows(user32.FindWindowW(u'Notepad++', None), WNDENUMPROC(self.foreach_child_window), 0) def foreach_child_window(self, hwnd, __): length = user32.GetWindowTextLengthW(hwnd) if length > 0: buff = create_unicode_buffer(length + 1) user32.GetWindowTextW(hwnd, buff, length + 1) if re.match(r'(?:Search) ".*?" \(\d+ hits? in \d+ files? of \d+ searched', buff.value): self.search_results_hwnd = hwnd return False # stop searching windows return True # continue searching windows def get_text(self): search_results_complete_text = '' if self.search_results_hwnd is not None: length = user32.GetWindowTextLengthW(self.search_results_hwnd) if length > 0: buff = create_unicode_buffer(length + 1) user32.GetWindowTextW(self.search_results_hwnd, buff, length + 1) search_results_complete_text = buff.value return search_results_complete_text def get_most_recent_search_result_text(self): recent_text = '' m = re.match(r'(?s)(?:Search) ".*?" \(\d+ hits? in \d+ files? of \d+ searched.*?(?=^Search|\Z)', self.get_text()) if m: recent_text = m.group(0) return recent_text #------------------------------------------------------------------------------- if __name__ == '__main__': print(SRPGT().get_text()) # demo
  • Can font size be changed to be smaller in newer version of notepad++?

    3
    0 Votes
    3 Posts
    304 Views
    rdipardoR

    @ImSpecial said in Can font size be changed to be smaller in newer version of notepad++?:

    If this is a bug, could someone who knows more about what’s going on look into this?

    What you are noticing is the effect of these changes and these changes, introduced in version 8.5.4 (see "14. Several GUI Enhancements ").

    As N++'s maintainer remarked at the time:

    The reduced tab font size is a little bit larger than before.
    Let’s see the reaction of users in the next release.

    Obviously, he accepted the larger sizes into the source tree anyway.

    If you disagree with these design choices, you can post your criticism to the GitHub issue tracker. Be sure to mention these items for context:

    Doc Switcher window icons have problems when Tab Bar ‘Reduce’ setting changed NPP RTL: tabs Close button is cut off [GUI] Plugins Admin dlg key accelerators [GUI] Find in Finder key accelerator [v8.5.3] Apply to C0, C1 Unicode EOL is cut off in some localizations [GUI/Code] Go to Line dlg [GUI] Column Editor inconsistency [L]ocalization “&” character bug [GUI] About, Debug & Save dlgs [GUI] Tabbar size inconsistencies GUIEnhancement: Tabbar (sic) [GUI] Docking container font GUI Enhancement: Tabbar part 2
  • 0 Votes
    2 Posts
    304 Views
    Alan KilbornA

    There is a text file it looks like this Macintosh encoding
    mortification
    honey
    micropattern
    cash

    This text was copied from another text file which has normal Russian language without ¤ symbols

    I take it and replace ¤ with I Encode the text in UTF 8 and then save it in ensi, restart the text file and again the same words with the symbols ¤ and Macintosh encoding

  • can no emails formattad

    5
    1 Votes
    5 Posts
    352 Views
    guy038G

    Hello, @dj.michael-beil.-de-omt24-corp, @coises, @mkupper and All,

    Yes,… Indeed, just a typo :-((

    So, regarding my first regex search expression, the right syntax is the @mkupper’s one !

    BR

    guy038

  • 1 Votes
    4 Posts
    2k Views
    xomxX

    The new NppShell is cleverly designed to work in both the new Win11 menu and at the same time in the old classic one. Implementation details:
    https://github.com/notepad-plus-plus/nppShell/commit/8f26080a71594f4f24de43d06ee1c906a8bc0b1d

    I can use both in my Win11 after the usual installation. No need for additional Registry hacks.

  • Tabs not showing on startup

    7
    1 Votes
    7 Posts
    1k Views
    mkupperM

    I created a new issue on github as the tab bar should not have appeared like that.

  • Notepad++ 8.6 Bug???

    3
    1 Votes
    3 Posts
    586 Views
    rdipardoR

    @Dave-D said in Notepad++ 8.6 Bug???:

    19ce7d1b-907a-4e64-b7d5-f077c321c1ae-image.png

    Versions of HTML Tag before 1.2.3 have trouble detecting “point zero” (.0) release numbers like 8.6: https://community.notepad-plus-plus.org/post/76001

    You just need to upgrade the plugin. The installer at Plugins > Plugins Admin should be offering 1.4.1. After that, open the About menu and click on “Bugs” if you have more to report.

  • How do I remove lots of empty space when scrolling to end of file?

    3
    1 Votes
    3 Posts
    456 Views
    mahajuM

    Wow that was it thanks a lot
    I didn’t expect this to have such a simple solution

  • 1 Votes
    5 Posts
    968 Views
    mkupperM

    @Chris I should add that Notepad++ has a couple of command line options that may be helpful.

    -noPlugin can be used to establish a baseline of how quickly npp starts with whatever your configuration settings are but with no plugins at all.

    -loadingTime - the documentation for this is vague and I don’t know what this measures. When I tried it, I always get a popup with either Loading time : 0 seconds or Loading time : 1 seconds. Maybe with your configuration and/or 24 plugins it’s a more useful metric.

    As with all of Notepad++'s command line parameters, they are case-sensitive.

  • Re: Notepad++ v8.6 Release: 20th-Year Anniversary

    3
    9 Votes
    3 Posts
    505 Views
    Lycan ThropeL

    @Michael-Vincent ,
    And on that note, wishing all of you a Happy Thanksgiving, should you be celebrating it. :-)
    Also to Notepad++'s Anniversary and another 20 years…if @donho is up to it. :-)

  • Notepad++ 8.6 download problem

    3
    0 Votes
    3 Posts
    535 Views
    Murray Sobol 1M

    Thanks Peter, I waited 30 minutes or so and then retried the download.
    Everything works as expected.

    Thanks

  • How to convert Encode64 to pdf file using Notepad++?

    6
    0 Votes
    6 Posts
    6k Views
    PeterJonesP

    @Olivier-De-Groef ,

    The script you are replying to, from four years ago, has nothing to do with Notepad++.

    It appears it might be javascript intended to be run in the browser, but I wouldn’t run it without fully understanding the code. (I tried to base64-decode the string that the script supplied, for example, but it doesn’t end up starting with the bytes %PDF, so I am pretty sure it doesn’t decode into a PDF file like it purported to doing; as such, I really wouldn’t trust anything in that script.)

    The right answer to the 2019 question is the one Alan gave in 2019: “you don’t”.

    PDF is a binary format, not a text format, and Notepad++ is a text editor.

    => FAQ

  • Default File Types On Installation

    4
    0 Votes
    4 Posts
    2k Views
    PeterJonesP

    @John-Furby said in Default File Types On Installation:

    My question wasn’t so much, “How can I make it default?” but rather why isn’t this an installation option?

    It’s called a “design decision”. The designers of every application in existence make them. As a user, you disagree with some and agree with others. If what you like about an application’s design decisions outweigh what you don’t like, then you continue to use the product, otherwise you find something else that’s more to your taste. Since you paid nothing for this software, the only thing you need to lose is your time.

    “Why” can actually be a strange question to ask w/r/t design decisions, because sometimes it really was just a preference or even an arbitrary choice by the designer at some moment in time.
     
    But since you asked: my guess as to the “why”: the Settings > Preferences > File Association was the developer’s answer to the request to be able to easily associate file types with Notepad++. Because why stop at just .txt ? or just .txt and .xml? or txt and xml and HTML and c/c++/h and py and … And what about the people who want .txt associated with something else but .npp associated with Notepad++?

    In other words: the designer probably felt that the user interface already in the app was better suited to handle all the exceptions that people would want, rather than during the installation process ask for the 217 extensions across the ~90 languages that are known during initial installation, most of which the user wouldn’t care about (when the designer could not know which would be the important extensions to a given user; for some, TXT and XML are the important ones; for others, they never edit those, and only touch C/CPP/H; for others, some other combination – making any choice to favor one set of extensions above another would be bound to annoy a not-insignificant subset of users as much as the current situation annoys you.)

    If you want a one-stop location to change the associations, which will ask for the “major” extensions (whatever that means) plus allow you to add your own extensions, the Settings > Preferences > File Association was designed to do exactly that.

    I’m a bit surprised it is not highly requested feature.

    I’m not. (The following is my interpretation of events as I understand them.)

    For years, Windows made it easy for applications to set the default associations. And for years, new applications would hijack filetypes without permission. And even those that did play nice and ask would still mess with things in an annoying way (for example, once you associated .txt and .xml with Notepad++, it would show up as “Notepad++ Text File” for all of them, rather than keeping the individual identities of “Text Document”, “XML Document”, and the like).

    As such, MS got a lot of complaints about how annoying that system was, and how hard it was for users to change the defaults if the app didn’t play nice (or if they didn’t remember where each app buried their un-associate ability).

    So MS started giving users the “Open With” possibility, to make it easy for the user rather than the application/installer to change the default app for a filetype, and simultaneously made it harder for (non-Microsoft) applications to actually get the default-app status when they asked for it. Many users find this a win, not a loss (except that MS apps don’t follow their own guidelines of not hijacking file types).

    Most Notepad++ users only have a few filetypes, so it’s not onerous for them to change their Open With for that handful of filetypes. Especially because, for non-associated file types, **Right Click > Edit With Notepad++ ** still works to open them quickly in Notepad++.

    For those who have more filetypes which they’d like to associate, the Settings > Preferences > File Association is usually the next best action.

    If that’s not sufficient, the Online User Manual has a section on Notepad Replacement which uses a Registry hack to make it so that any time that Windows tries to run notepad.exe, it really runs notepad++.exe instead).

    And for the remaining users who have more than a handful of types, but who do not wish to go so drastic as to try to trick the OS, they generally know how to dig into the registry and change their associations more powerfully than any installer or Open With could.

    But I, like you, am just a user of Notepad++, and my opinion only matters as much as yours, not any more and not any less. You can discuss new features here in the Community Forum all you want, but it’s not the official feature request location (see our FAQ), so this discussion will not result in any official decision.