• Font used in combobox find dialog

    3
    0 Votes
    3 Posts
    511 Views
    guy038G

    Hello, @simone-fusi, @prahlad-makwana4145, @dinkumoil and All,

    May be, @prahlad-makwana4145, it would have been fair to mention that your method was, first, described by @dinkumoil , in that post, below :

    https://community.notepad-plus-plus.org/post/37160

    Unfortunately, this nice work-around does not seem to work anymore, with new N++ versions. Indeed, I do get a bigger Find dialog window, with all text enlarged but the font and size, inside the 4 zones Find what :, Replace with :, Filters : and Directory : are unchanged :-((

    Note that I currently use an old laptop, with Win XP SP3 operating system, which could explain why I got no success !

    Best Regards,

    guy038

  • 0 Votes
    2 Posts
    219 Views
    dinkumoilD

    @Ittipan-Langkulanon said:

    Could someone bring this feature on Notepad++ too?

    Yes, you can do it by yourself. Remap the keyboard shortcuts for Move Up Current Line and Move Down Current Line using Shortcut Mapper ((menu) Settings -> Shortcut Mapper -> (register) Main menu).

  • 0 Votes
    3 Posts
    483 Views
    guy038G

    Hello, @jakang-chen and All,

    Seemingly, you need to search for any range of consecutive lowercase letters a, embedded between the uppercase letters A and B and replace each of them with the lowercase letter c

    Here is a possible solution :

    So, given this sample text, below :

    aaa AB CB AC BC AB aaa aaa AaB CaB AaC BaC AaB aaa aaa AaaB CaaB AaaC BaaC AaaB aaa aaa AaaaB CaaaB AaaaC BaaaC AaaaB aaa aaa AaaaaB CaaaaB AaaaaC BaaaaC AaaaaB aaa aaa AaaaaaB CaaaaaB AaaaaaC BaaaaaC AaaaaaB aaa aaa AaaaaaaB CaaaaaaB AaaaaaaC BaaaaaaC AaaaaaaB aaa aaa AaaaaaaaB CaaaaaaaB AaaaaaaaC BaaaaaaaC AaaaaaaaB aaa aaa AaaaaaaaaB CaaaaaaaaB AaaaaaaaaC BaaaaaaaaC AaaaaaaaaB aaa aaa AaaaaaaaaaB CaaaaaaaaaB AaaaaaaaaaC BaaaaaaaaaC AaaaaaaaaaB aaa aaa AaaaaaaaaaaB CaaaaaaaaaaB AaaaaaaaaaaC BaaaaaaaaaaC AaaaaaaaaaaB aaa

    If you run this regex S/R :

    SEARCH (?-si)(A\K|\G)a(?=\w*?B)

    REPLACE c

    You should get your expected text :

    aaa AB CB AC BC AB aaa aaa AcB CaB AaC BaC AcB aaa aaa AccB CaaB AaaC BaaC AccB aaa aaa AcccB CaaaB AaaaC BaaaC AcccB aaa aaa AccccB CaaaaB AaaaaC BaaaaC AccccB aaa aaa AcccccB CaaaaaB AaaaaaC BaaaaaC AcccccB aaa aaa AccccccB CaaaaaaB AaaaaaaC BaaaaaaC AccccccB aaa aaa AcccccccB CaaaaaaaB AaaaaaaaC BaaaaaaaC AcccccccB aaa aaa AccccccccB CaaaaaaaaB AaaaaaaaaC BaaaaaaaaC AccccccccB aaa aaa AcccccccccB CaaaaaaaaaB AaaaaaaaaaC BaaaaaaaaaC AcccccccccB aaa aaa AccccccccccB CaaaaaaaaaaB AaaaaaaaaaaC BaaaaaaaaaaC AccccccccccB aaa

    It’s easy to verify that contents have changed, only between the individual ranges A............B

    Notes :

    The in-line modifier (?-i) ensures that the search will be processed in a NON-insentive way

    The in-line modifier (?-s) forces the regex engine to consider any dot ( . ) as representing a single standard character ( and not an EOL char )

    The A obvioulsy matches the litteral uppercase letter A

    Then the \K syntax immediately cancels any previous match and resets the regex engine working position

    If a letter A is not found, the second part of the alternative, \G, which represents the zero-length location right after the previous match, is invoked

    Now, the regex engine tries to match the lower-case letter a, but ONLY IF  the positive look-ahead (?=\w*?B) is true, i.e this letter is followed by any range, even null, of word characters, till an upper-case letter B

    If so, it is simply replaced with the lower-case letter c

    Best Regards,

    guy038

  • Online user manual is missing

    3
    1 Votes
    3 Posts
    262 Views
    PeterJonesP

    Various portions were down for at least a few hours earlier this weekend, and the whole site may have been down for at least part of it.

    https://github.com/notepad-plus-plus/npp-usermanual/issues/51

  • Scrolling

    12
    0 Votes
    12 Posts
    3k Views
    Michael VincentM

    @guy038
    Thanks! I should have mentioned that I figured the table was wrong also and had to experiment to get my script to work. I didn’t document like you did though … Bravo!

    Cheers.

  • How changing several similar HTML tags by RegEx?

    3
    0 Votes
    3 Posts
    339 Views
    bert maierB

    @PeterJones said in How changing several similar HTML tags by RegEx?:

    You are my hero, thanks very much, working!

  • Find & Replace Enhancement Suggestion

    2
    0 Votes
    2 Posts
    382 Views
    Alan KilbornA

    There is a resistance to adding new controls to the UI. Or at least their seems to be. I can understand it; they take screen real-estate, and anything that is added with text on it has to be made translatable into dozens of languages. Oh, and maybe “Get” doesn’t translate to something short-and-sweet in Italian, for example, so the button has to be a certain size (bigger!). So it all gets burdensome quickly.

    It might be cool to have a double-click on the Find-what label do your “get” functionality, but UI purists will bash me for endorsing such a hidden and easter-eggish thing. But, with that there would be no screen real estate consumed, and no variable-sized text to translate into many languages.

    But maybe I’m missing something about your scenario. If you have some selected text in your document, if you press ctrl+f then that selected text is transferred to the Find-what box in the Find window, automagically. There is no “close dialog, re-select text and re-open the dialog” steps needed. Or perhaps I misunderstand. If so, please enlighten me.

    There was a similar request recently for a button to swap the text of the Find-what and Replace-with boxes. I think it just had a symbol in it (nothing to translate) and the button itself was quite small. This request gained no traction.

  • Find UI inconsistent...

    8
    1 Votes
    8 Posts
    696 Views
    Alan KilbornA

    Why not spec out a complete redesign of the Find UI right here with mocked-up screenshots and text? That way you don’t have to program anything so the programming language isn’t an issue. Then, if someone that can program it agrees, they can try their hand at it?

    You seemed to do a lot of saying “this is bad… that is bad…” but to this point haven’t provided a lot of specifics on what changes should be made. To be fair, though, you have provided some general ideas. I’d like to see that turned into some really concrete specs for a redesign.

    Again, good discussion, thank you for that.

  • Opening multiple files???

    4
    0 Votes
    4 Posts
    3k Views
    Charles BillowC

    OK, thanks Peter.

  • Working on a Chinese Spam Guard Bot

    12
    1 Votes
    12 Posts
    975 Views
    michaellee8M

    @dinkumoil Actually that is not just an individual issue here, it is a generalized one. Every time pro-CCP nationalists found something they hate or being told to hate something, they attack it rudely, both physically and on the internet. I wouldn’t say it is good if we just sit there and don’t express out opinions if we are attacked and fear, rather I would found ways to beat it.

    I suggest the following mechanism for an anti-spam bot:

    For any second issue of the same user for the given period of time (e.g. 24 hrs), check for his/her activity log. If his/her activity log is empty/nearly empty (e.g. no contributions), issue permanent ban to it on our repo and all repo that uses this bot immediately, report it to GitHub, and then close/lock/delete all issues this user has ever made on our repo. If 5 issues has been opened by the same user in 24 hours, such user should receive a 24-hr cooldown, the repo owner will also be able to issue permanent ban to him on his repo.

    Could this method be good, it doesn’t do bans based on character recognization? Actually I knew a lot of forums/website is facing Chinese spams and I had thoughts of building a anti-spam mechanism for those.

  • 0 Votes
    2 Posts
    208 Views
  • Toggle Next/Previous Window?

    9
    0 Votes
    9 Posts
    8k Views
    John SchneiderJ

    Thanks again everyone. Using Ctl-Tab is perfect as that’s what I instinctively use in browsers.
    The more I use N++ the more I like it!!!

  • Regex for Searching <HEAD> Section

    3
    0 Votes
    3 Posts
    419 Views
    guy038G

    Hello, @aksarben, @alan-kilborn and All,

    Simply, use this regex S/R :

    SEARCH (?s)(.*?<head>|\G)((?!</head>).)*?\K\xAD

    REPLACE Any SINGLE character or STRING

    Notes :

    I assume, of course, that there only one section <head>........</head> per file

    The <head>........</head> section can be, either, in one line or splitted into several ones

    Any soft hyphen, found, above the starting tag <head> is ignored

    Any soft hyphen, between the starting and the ending tag is found, individually

    Any soft hyphen, found, under the ending tag </head> is ignored

    Preferably, when testing on a single file, tick the wrap around option, which forces to starts the S/R process from the very beginning of the file

    Best Regards,

    guy038

  • Spell Checker for Web Pags

    2
    0 Votes
    2 Posts
    180 Views
  • 1 Votes
    5 Posts
    1k Views
    PeterJonesP

    @Trey-Hunner ,

    BTW, in response to this comment:

    if EditorConfig was built-in to Notepad++, I wouldn’t need to do this. I’m hoping that Notepad++ will add built-in support for EditorConfig, …

    Some hints about the development philosophy of Notepad++:

    if it’s already implemented by a plugin, there is very little likelihood it will be implemented natively if it’s already configurable by the settings, then there’s little chance the default setting will be changed, because it just takes a change to the settings if you don’t like the default settings bundled with Notepad++, you can make a new bundle with the settings configured the way you like it; this can either be done by starting with the zipfile distribution, and you edit the files in the zip, and you distribute the modified zip having the users install from normal installer, and you just distribute the updated settings files furthermore, as I said a while ago, the default settings on this one did change, so the default settings now match what you want.

    … built-in support for EditorConfig, just as BBEdit, Komodo, Visual Studio, PyCharm, and other editors have done.

    FYI:

    bbedit: development paid for by buying the software komodo: has the financial power of ActiveState to pay for its development visual studio: has the financial power of Microsoft to pay for its development; not all versions are free PyCharm: that one looks like it might be truly free, developed by volunteers rather than paid employees

    So you’ve listed one common example of a comparable software that’s free (freely developed, freely maintained, freely downloaded), that has implemented the EditorConfig natively. My response to that: “That happens”. Different OpenSource software in the same space (like different text editors) gets developed because different teams have different goals for the important feature sets, and whether those features should be implemented natively or by plugins.

  • 0 Votes
    2 Posts
    423 Views
    PeterJonesP

    The list of file types in the SaveAs dialog aren’t necessarily configurable. And having a software developer go and add every possible extension that anyone of the untold thousands of users might use, or might invent for their own use-case, is not something that can be practically done.

    Besides, all you have to do to get the file extension you want is to type it yourself. Since you’re already typing the filename, it shouldn’t be that hard to type .txt+ as well… and probably easier than typing the filename without an extension, then dragging down the pulldown and hoping that Windows will apply the right extension based on that pulldown entry.

    It appears you are using the “old style” dialog by disabling the ☐ Use new style dialog (without file extension feature & Unix style path capacity) in Settings > Preferences > Default Directory. I say this because you seem to have an expectation that the pulldown will set your extension for you. In my experience, this only happens in the old-style dialog. If you are using the old-style dialog, be wary of that “feature” from Windows… because whatever happens to come first in the list of extensions for a given dropdown is what Windows will apply; hence, if you type blah and apply c++ source file, there’s a good chance that you’ll save blah.h rather than blah.cpp, which is probably not what you want. I always use the new-style, because the old-style was obsoleted by Windows’s new-style dialog half a decade ago or more, and (more importantly) because the new-style encourages you to take control of your destiny by controlling extension yourself rather than relying on Windows to fill in the extension for you, and (most importantly to me) because it enables the tree-view to the left rather than just having the four or five icons for windows-preferred locations, and making it more clicks to find the location you want.

    Also, assuming you installed Notepad++ normally, I thought there was usually a right-click menu on most files which allows you to choose “Open With Notepad++” or similar phrasing, even if it’s not directly associated with that file type. If not, you could use save the following as a .reg file,

    Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Classes\*\shell\Notepad++] @="Edit With Notepad++" "Icon"="\"C:\\Program Files\\notepad++\\notepad++.exe\"" [HKEY_CURRENT_USER\Software\Classes\*\shell\Notepad++\command] @="\"C:\\Program Files\\notepad++\\notepad++.exe\" \"%1\""

    (where you might need to use c:\\program files (x86)… instead, if you’re 32-bit)

    That way, you can use the default associated program whenever you want by the normal double-click, but use Notepad++ by using the right-click menu for any file type

  • Download site down - any mirrors? (30/10)

    5
    0 Votes
    5 Posts
    2k Views
    Jonathan HJ

    Thanks - download site is still down, but both those links above checkout for the SHA256 on the 32 bit installer.

    Thanks again

  • notepad++ will crash if file is in cloned view and f12 is pressed

    2
    0 Votes
    2 Posts
    557 Views
    PeterJonesP

    Doesn’t crash for me. If I have an unsaved file cloned to both views, and hit F12, it goes into post-it mode, like it’s supposed to, and my unsaved changes are all still there.

    Please provide enough information for us to replicate your problem. The biggest chunk of missing data would be supplied by giving us the output of the ? menu’s Debug Info entry, and clicking on Copy debug info into clipboard, and pasting the results here. Anything else you can tell us that might help us understand your problem better would be useful.

  • 3 Votes
    2 Posts
    2k Views
    dinkumoilD

    For those who don’t want to deal with scripting plugins: You can do the same using my ExtSettings plugin, it’s available via Plugins Admin. See also >>> here <<<.