• MIME Tools does not url encode commas?

    3
    0 Votes
    3 Posts
    622 Views
    guy038G

    Hello, @michael-levy, @peterjones and All,

    Some other characters are not %-encoded when using the The Plugins > MIME Tools > URL Encode option

    So, here is a simple regex S/R which will encode the remaining ASCII characters !

    SEARCH (!)|(\$)|(')|(\()|(\))|(\*)|(\+)|(,)|(-)|(\.)|(_)

    REPLACE (?1%21)(?2%24)(?3%27)(?4%28)(?5%29)(?6%2A)(?7%2B)(?8%2C)(?9%2D)(?10%2E)(?11%5F)

    If you do NOT want to encode the _ char, use this S/R :

    SEARCH (!)|(\$)|(')|(\()|(\))|(\*)|(\+)|(,)|(-)|(\.)

    REPLACE (?1%21)(?2%24)(?3%27)(?4%28)(?5%29)(?6%2A)(?7%2B)(?8%2C)(?9%2D)(?10%2E)

    Best Regards,

    guy038

  • 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
    435 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
    762 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
    309 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
    744 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
    305 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
    354 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
    587 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
    969 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
    539 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