• Find & Replace Enhancement Suggestion

    2
    0 Votes
    2 Posts
    378 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
    694 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
    971 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
    207 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
    416 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
    421 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
    553 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 <<<.

  • Bug when using "themes" - font setting ignored on program launch.

    4
    0 Votes
    4 Posts
    375 Views
    EkopalypseE

    That’s really weird.
    Do you use installed npp or portable version?
    Depending on your installation I would give it a try to rename
    config.xml and see if recreation fixes this issue.
    Or if you use installed version, give a portable version a try.
    Just unzip it and run it.

  • shortcut for html tags

    10
    0 Votes
    10 Posts
    9k Views
    DatamerisD

    Please Install the Emmet plugin.

  • Notepad++ portable without plugin_manager

    2
    0 Votes
    2 Posts
    368 Views
    PeterJonesP

    Notepad++ v7.6 was the first of the transitional versions, moving away from the old dll-based Plugin Manager to the builtin Plugins Admin. However, it wasn’t until v7.6.3 that the new structure stabilized, and if you want a 7.6.x, I’d go with v7.6.6.

    The most recent, however, is v7.8, with improvement s to the editor component. I’d probably recommend that version, unless you are in a minority situation involving outdated plugins.

  • Is there an option to unlock a forum thread?

    9
    1 Votes
    9 Posts
    1k Views
    guy038G

    Hi, @peterjones,

    OK, I just updated the link !

    BR

    guy038

  • Find Replace .. what happened .. is it being sabotaged ?

    8
    0 Votes
    8 Posts
    558 Views
    Alan KilbornA

    @PeterJones said in Find Replace .. what happened .. is it being sabotaged ?:

    that’s something that could be clarified a bit more in the docs.

    The grouping box has always been very obvious to me, but if it is not to everyone (and apparently it isn’t) then I agree it is a documentation-worthy thing.

  • How to change timestamp to hh:mm:ss.mss format

    6
    0 Votes
    6 Posts
    1k Views
    PeterJonesP

    For further info, see my boilerplate below.

    For specifics of this, I’ll give a brief description:

    The T and Z are literals, in both the search and replace expressions. The (...) makes a group#1 which contains whatever matches inside. \d matches any digit (0-9, and some other unicode “digit” characters from other languages). \d\d thus matches two consecutive digits; \d{1,2} matches 1 or 2 digits. : matches the literal :. Thus, T(\d\d:\d\d:\d\d)Z matches the hh:mm:ss in between a T and a Z, and stores it in group#1. For the replace, ${1} is the contents of group#1, and everything else is a literal so, “replace it with a T, followed by the contents of group#1 from the find-match, followed by .000 and finally a Z”.

    -----

    Please Read And Understand This

    FYI: I often add this to my response in regex threads, unless I am sure the original poster has seen it before. Here is some helpful information for finding out more about regular expressions, and for formatting posts in this forum (especially quoting data) so that we can fully understand what you’re trying to ask:

    If you have further search-and-replace (“matching”, “marking”, “bookmarking”, regular expression, “regex”) needs, study the official Notepad++ searching using regular-expressions docs, as well as this forum’s FAQ and the documentation it points to. Before asking a new regex question, understand that for future requests, many of us will expect you to show what data you have (exactly), what data you want (exactly), what regex you already tried (to show that you’re showing effort), why you thought that regex would work (to prove it wasn’t just something randomly typed), and what data you’re getting with an explanation of why that result is wrong. When you show that effort, you’ll see us bend over backward to get things working for you. If you need help formatting, see the paragraph above.

    Please note that for all regex and related queries, it is best if you are explicit about what needs to match, and what shouldn’t match, and have multiple examples of both in your example dataset. Often, what shouldn’t match helps define the regular expression as much or more than what should match.