• AutoComplete XML Problem

    Help wanted · · · – – – · · ·
    3
    1 Votes
    3 Posts
    178 Views
    S

    @PeterJones said in AutoComplete XML Problem:

    Thus, it does not see the # at the beginning as being part of a “word” when trying to auto-complete.

    I thought something like that might be the case but there was always a possibility of user error!

    You’d have to do #PB instead of #P before it would pop up
    Use Settings > Preferences > Delimiter’s

    By default the PureBasic IDE doesn’t show autocomplete before 3 characters anyway so I can’t see an issue there personally, but there’s a workaround for anyone who just can’t live with that.

    I am updating the wording of the user manual:

    Thank you for your amazing response! That’s just what I’m looking for.

  • 0 Votes
    7 Posts
    2k Views
    ?

    @PeterJones said in How dynamic-ID menu commands are executed and relation to macros:

    There is no “universally constant value” necessary for Notepad++ to store for it to be working the way it is.

    And creating a new identifier rather than using menuCmdID is not likely to happen (nor should it, IMO)

    That scheme (even if hypothetical) seems to work very well as long as it’s not a problem that the IDs change when you remove menu entries.
    But we do know that it is in fact a problem for recording macros.
    Here are 2 approaches I can think of (besides the “shut up and hack the XML files” one :) ) :

    A. Constant IDs version

    Still have a linked list to represent the structure of the (dynamic) menus, but whose contents are just the IDs of those commands. Can still be in same range as current IDs, if needed.
    Add a dictionary (hashmap) to map from those IDs to the respective actual commands, or in case of macros - list of actions , as you describe in your post above.
    Npp getting command 20001 for ex, involves looking up in the dictionary - most often a constant time operation.

    Deleting an menu entry involves deleting the respective entry in the linked list and also the ID-value pair in the dictionary.

    In addition to that, to ensure that generated IDs stay within a given range: Several schemes are possible, one of the simplest can be just generate a key in range and test that it is not present in the dictionary.

    B. Dynamic IDs, but synchronized in every saved macro

    Basically, keep the scheme as it is at present, but add a way to update, for each macro, every stored referenced menu command ID in an Action record:
    at every removal of a menu entry, compute how the rest of entries’ IDs would change (if located After those removed, the ID would decrease by one) and traverse the linked list of all macros and update that ID in every action that refers to a menu-command in the range of the dynamic-IDs types (Run, Plugin and Macro commands).
    Thus on Npp closing, the macros written in XML will also contain updated IDs.

    But don’t pretend the niche [for a more powerful macro system ] doesn’t already have a plethora of entries.

    I think there is plenty of room for a macro system to grow in power and STILL be much easier to do a lot of common tasks, than the same tasks in any scripting language.
    Because with macros you don’t have to learn and remember syntax.

  • 0 Votes
    2 Posts
    80 Views
    Mark OlsonM

    @tlt1970s
    The ComparePlus plugin is your best bet for this sort of task.
    I highly recommend this plugin for all Notepad++ users. I regard it as almost essential.

  • Fighting Malicious Ads on Download Pages

    Pinned Security
    41
    3 Votes
    41 Posts
    24k Views
    donhoD

    @MichellesCode

    The image that I am seeing. I wasnt able to get the URLs, apologies. I am based in US.

    If you happen to see them again, please send the link(s) to don.h@free.fr.

  • 0 Votes
    17 Posts
    3k Views
    Alan KilbornA

    @guy038 said:

    After some tests

    …of the version from the PR…

    "…in extended mode, I should add the \r\n at the end of each line for a correct search”

    Well… I think the answer to that is… don’t do it.

    It’s a matter of knowing what your data is. And, admittedly, this is difficult as real \r and \n are invisible in the Find what box. But this is true also if you select some multiline text and press Ctrl+f, it’s not peculiar to the proposed new code.

  • 0 Votes
    2 Posts
    109 Views
    Alan KilbornA

    @Bernard-Jouffrey

    Antivirus software in use?

  • Shouldn't be it the responsability of UN?

    Humour
    2
    0 Votes
    2 Posts
    2k Views
    Lycan ThropeL

    @donho ,
    I’m not sure this is humor for it’s own sake, or a veiled attempt at sarcasm. Either way, I don’t want govenment, especially the UN in anything, period. :-)

  • 0 Votes
    7 Posts
    167 Views
    ?

    :) you are not lucky, eh?

    It looks like the reason it works for me is that I’m using the LF EOL, not CR LF as typical in Windows.

    Cheers

    P.S. @Brent-Ficker if you’re not familiar at all with regex, the “Extended” mode setting would work for this particular problem too, to gently introduce you to such things.

  • 0 Votes
    5 Posts
    125 Views
    jabcreationsJ

    @PeterJones

    I had to reinstall to get the English Customizable file installed (C:\Notepad++\localization\english_customizable.xml). I made some recommended changes (name="Exit&°"), changed to English and then back to English Customizable and tested it and it did not exit as desired; thanks!

  • 0 Votes
    3 Posts
    2k Views
    ?

    @PeterJones
    The advantage of a specific category is that one can subscribe / watch that particular one. Or binge in reading many “solutions” in a row.
    “General” is general, almost anything goes there.
    “Blog” is for blogs… which IMO is something like long prose, chronological… doesn’t seem suitable (to me) for sharing a few random tips/ solutions one finds.

    Perhaps you’re right that tags are underutilized. Though in this case, I’m not sure that a single tag would fit the many kinds of tips/solutions one would like to share. Because there is no enforcing of a particular tag.

  • [New Plugin] NppOpenAI

    Notepad++ & Plugin Development
    47
    8 Votes
    47 Posts
    51k Views
    Richárd StockingerR

    @erik-neyman
    Hi,

    first of all, please hide/change your secret_key setting (or remove the image), as this is a public forum and others may misuse it. :(

    Unfortunately, there may be bugs in the latest NppOpenAI v0.5 update (updates/fixes can be found on the NppOpenAI development project page), so I suggest that instead of setting a route_chat_completions, you should specify the URL “all at once”, e.g.

    api_url=https://api.openai.com/v1/chat/completions

    Edit: You can leave the route_chat_completions setting unchanged.

    I apologise for the error!

  • XBrackets 2.0 is coming!

    Notepad++ & Plugin Development
    9
    4 Votes
    9 Posts
    3k Views
    Vitalii DovganV

    @Ekopalypse
    Wow, thank you!

  • 0 Votes
    5 Posts
    144 Views
    PeterJonesP

    Moderator Note: Please do not delete posts after the conversation has happened. It removes context.

    (Moderator restored deleted posts; topic being locked, because it appears the original poster is no longer interested, since the posts were deleted)

  • Marked text manipulation

    General Discussion
    54
    1 Votes
    54 Posts
    59k Views
    CoisesC

    @chk1 said in Marked text manipulation:

    Right now, with help of the script, I open the Marks search (Ctrl+M), enter my search term and press “Mark all”. Then I run the script to convert all marks to multi-edit selections. I want to reduce these extra steps if possible, i.e. in the best case: Ctrl+F, enter search word, hit Alt+Enter.

    It might not be worth it for your case, but the Search dialog in the Columns++ plugin has Select All as an option on the dropdown menu on the Count button.

    You can assign a shortcut to Columns++ | Search in Notepad++ shortcut mapper; but at present, there is no straightforward way to open the Count button menu using only the keyboard.

  • EV GLOBAL SIGN BROCKEN

    Help wanted · · · – – – · · ·
    2
    0 Votes
    2 Posts
    90 Views
    PeterJonesP

    @ilya-zabelin ,

    The certificate / signature is not broken – it is signed using a CA (Certificate Authority) Certificate that you don’t have. You just need to follow the instructions linked to as the self-signed-certificate link in the Release Announcement, which links to the official website instructions: https://notepad-plus-plus.org/news/v883-self-signed-certificate/ . Or the online user manual has an entire section on how to install the CA cert on your machine.

    (GlobalSign refused to let the developer get a certificate issued in the “Notepad++” name, so he made this new CA cert to “bridge the gap” until he is able to get some paperwork filed with his local government to register “Notepad++” as an organization, so that hopefully GlobalSign will be willing to use the “Notepad++” name on the certificate; government beaurocracy can be slow, so it might be a while, which is why the CA cert needs to be installed in the interim.)

  • h1's in function list for navigation

    General Discussion
    5
    0 Votes
    5 Posts
    2k Views
    MJKlodt747M

    @PeterJones, that works for me. Thanks!

  • Plugin request: insert relative path

    Notepad++ & Plugin Development
    10
    0 Votes
    10 Posts
    4k Views
    ?

    Has anyone here found how to open those relative path links from within the Notepad++ file, in their default app ?

    That would make the solutions listed here even more useful IMO; one could have for instance have the documentation of a project in simple text files.

    Opening the links at either double-click (better, & underlined) or some other action.
    I’ve requested the feature on github https://github.com/notepad-plus-plus/notepad-plus-plus/issues/16942

  • 0 Votes
    19 Posts
    3k Views
    Bob BridgesB

    @Patrick-909

    And keyboard shortcuts can be assigned to menu commands by choosing run > modify shortcut and switch to the Main Menu tab on the Shortcut Mapper.

    It would be good to have the Open in Default Browser be located in either the View or Run Menus, but creating a shortcut works for me.

  • 0 Votes
    28 Posts
    11k Views
    NebojshaN

    @xomx said in Unable to see Data in the Notepad++:

    I’d like to ask the affected users here, for which switching the DirectWrite OFF helped - what OS, graphics card and version of its drivers are they using?

    E.g. post: Windows 10, Nvidia GeForce xyz, 2/24/2023 30.0.14.7430

    (you can find such info e.g. by WinKey+R, type there devmgmt.msc -> OK, and check the Display Adapters > doubleclick on an adapter > Driver tab)

    Win 11, VMware SVGA 3D, 4/28/2023, 9.17.6.3
    Win 11, Microsoft Remote Display Adapter, 6/21/2006 10.0.26100.4484

    Accessing a VMware virtual machine via Remote Desktop Connection (RDP)

  • 0 Votes
    3 Posts
    121 Views
    PeterJonesP

    moderator fixed image in the original conversation; continue discussion there

    LOCKED THIS SECOND DISCUSSION