• New API to fix eventual regression regarding SCN_MODIFIED for some plugins

    Pinned
    32
    2 Votes
    32 Posts
    5k Views
    ThosRTannerT

    Just a quick question - when will the plugintemplate repo be updated to include the new message?

    Thanks

  • Read This First

    Pinned Locked
    1
    5 Votes
    1 Posts
    2k Views
    No one has replied
  • Workspace with Monospaced Fonts

    2
    0 Votes
    2 Posts
    84 Views
    EkopalypseE

    @ptrstack

    How difficult is it to make the folder tree …

    depends on how complex you want your solution to be.
    I would probably just change the font in the resource file and use the WM_SETFONT call in WM_INITDIALOG after initializing the treeview component. Depending on the size, you may also need to call TVM_SETITEMHEIGHT. So this would be 3 lines of code, I guess.

  • AndroidLogger.v1.4.3.1 added super features welcome your tests!

    4
    0 Votes
    4 Posts
    172 Views
    glandonG

    @PeterJones Thank you for your suggestion!
    Absolutely, i try to get users clear, it’s more than android tools, now it can do better to execut cmds, and better than tail -f, quicky run anything, capture out to npp, but only need users add their cmds to the configure file.

  • Plugin; irregularities with inplace editors closure

    13
    0 Votes
    13 Posts
    258 Views
    K

    @PeterJones Peter, oh sorry - i hadn’t realized it this morning in the hurry, my bad!

  • This topic is deleted!

    0
    0 Votes
    0 Posts
    2 Views
    No one has replied
  • Feature Request: Insert Current Date and Time Like Excel

    2
    0 Votes
    2 Posts
    58 Views
    PeterJonesP

    @أحمد-حمدي-حمدين said in Feature Request: Insert Current Date and Time Like Excel:

    Hi Notepad++ Team,

    I’d like to request a simple yet useful feature:

    Feature already exists. No request needed. (If a request were needed, this isn’t the right place, as our FAQ makes clear)

    Currently, Notepad++ does not appear to have a built-in shortcut or menu option for this (the old “Edit → Time & Date (F5)” seems to be missing in newer versions).

    Edit > Insert > Date/Time (…) exists. It doesn’t default to any keystroke, but Shortcut Mapper can remedy that.

    User Manual:

    https://npp-user-manual.org/docs/editing/#edit-menu https://npp-user-manual.org/docs/preferences/#multi-instance-and-date

    By the way, you claimed,

    the old “Edit → Time & Date (F5)”

    That never existed in Notepad++. MS notepad.exe used that menu name and hotkey, but never Notepad++. Don’t believe everything that hallucinating AI tells you

  • Shortcut mappings are transferred to a plugin's activity

    10
    0 Votes
    10 Posts
    196 Views
    K

    @Coises : My thoughts about the topics:

    “IsDialogMessage” (“standard Windows way of separating messages that are directed to a non-modal dialog or any of its child controls from the normal flow through the message loop”) and “WM_GETDLGCODE” (“If keyboard focus is in a control, that control will decide which keys it wants and which keys should be processed as container navigation”):

    Basically the Lazarus component library (LCL) acts as a fully qualified message loop system that is able to react on nearly each message and notification within a windows message loop, nearly all WM_, eg. WM_KEY(down,press;up;…) can be detected and processed (*).
    Normally it’s hard to detect any lacks here imo. However i initially looked into that hierarchy, as here, like everywhere else in the programming world, some business rules might have been come into play for to negate a message (like eg. an app can do when it nulls out an Enter Key for to suppress a beep; Key := #0).

    (*) At least in the win32 “widgetset” as one within all those platforms: all-interfaces win32-interface
    It depends a bit on whether someone compiles “cross-platform” or for an OS-specific build, ie. “win32”):

    But - right, maybe that is it what matches your pointing! - there is no explicit call of “IsDialogMessage” itself within the LCL hierarchy (i grepped here)!
    But it is a function that is known and predefined in the free pascal compiler system (FPC) though. And, so, there really low-level based apps can be written (and do exist) without the LCL, using basic TranslateMessage, DispatchMessage etc. which are calling “IsDialogMessage” explicitely.
    “Matches your point” in so far as it makes understandable why without NPPM_MODELESSDIALOG (which calls “IsDialogMessage”) “most shortcut keys will be intercepted by Notepad++” - with other words, let NPP act as a gate-keeper for messages here.

    In sum, with your explanations it’s much more understandable now for me what’s going on (hope so).
    And why “RegisterForm” (-> the NPPM_MODELESSDIALOG-Send) in the docking formcreate now lets work again F2 (and Ctrl-c, Ctrl-v & co.) by the plugin. Otherwise the NPP gate-keeper would decide itself and won’t pass messages to the plugin that it claims for own usage, e.g as defined in the shortcut mapper.

    I hope I’m somehow on the right track here :-)
    I’d use this solution, it does indeed remove the issue :-)
    (i have to sort out a few subsequent flaws now, but those are assumingly outside the current thread)

  • 0 Votes
    6 Posts
    204 Views
    Bas de ReuverB

    Nice, thanks for fixing the issue 👍

  • AndroidLogger version 1.4.2.7: added search action!

    6
    0 Votes
    6 Posts
    221 Views
    glandonG

    截屏2025-05-06 07.10.16.png

  • 0 Votes
    13 Posts
    256 Views
    rdipardoR

    @ThosRTanner said in When is there going to be a release of NPP plugintemplate with a definition of NPPM_ADDSCNMODIFIEDFLAGS:

    @rdipardo Wouldn’t a better place to put the action be in the notepad++ repo so when a new version was released it’d do the updates to the template repo automatically?

    You make a good point.

    The workflow steps would essentially be the same, but in the opposite direction (clone the template repo, update the file tree, validate the build and push if successful). The main difference would be the trigger; ideally you would want to watch for tagged Notepad++ releases, e.g.,

    on: push: tags: - 'v*'

    This way new template versions can be explicitly tied to a Notepad++ release, e.g.,

    # 'refs/tags/vX.Y.Z' -> 'vX.Y.Z' echo "NPP_RELEASE=${env:GITHUB_REF}.Split('/')[2]" >> $env:GITHUB_ENV # ... git tag -a "${{ env.NPP_RELEASE }}" '@' -m "plugintemplate-for-Npp-${{ env.NPP_RELEASE}}" git push --tags --repo=https://github.com/npp-plugins/plugintemplate

    But it would be a problem if incompatible changes were made to the template. A failed build would cause a red X to appear beside the tagged Notepad++ commit, giving the false impression the release was a botch.

    I think the separation of concerns principle is best observed if the template project looks after its own updates. A little extra churn won’t be a great inconvenience. The majority of plugin authors are still copy-pasting the template files into their source tree, as shown by how many have “C” as their detected primary language, since the template files contain no unique C++ syntax or standard headers, which GitHub relies on to classify header files, unless you manually override the heuristics.

  • Slight issue with plugin's toolbar bitmap when switching light/dark mode

    8
    1 Votes
    8 Posts
    293 Views
    K

    And now - whilst i was a bit irritated why i should not have seen during my tests that indeed ‘LR_LOADMAP3DCOLORS or LR_LOADTRANSPARENT’ would remove the ‘looks like focusing’ effect too, i repeated the steps for a check. And what do i see? Hello again, the ‘focusing effect’ is back:
    marked_active.jpg

    Crazy & curious … and not severe, indeed. But not understandable neither …
    as i only became aware of this because this did NOT happen with other plugins, eg. the explorer plugin.
    But meanwhile i think it’s ‘normal’ for an active (loaded) plugin to show up with a kind of ‘active’ marker.
    Is it as such, and i simply was misleaded by, eg., the explorers bitmap rendering?
    At least others like JSONViewer or the HelloWorldPlugin itself use the active indicator too:
    HelloWorld_active.jpg
    So, maybe a simple misunderstanding … but is the marker done from the NPP core itself, or by a statement from a plugin?

    Btw: yes, NPPM_SETMENUITEMCHECK had been called indeed (in the plugin’s “FormDock” procedure).
    But it doesn’t make a difference if i either omit this call, or use ‘false’ for the “doCheck” parameter:

    SafeSendMessage(self.Npp.NppData.NppHandle, NPPM_SETMENUITEMCHECK, self.CmdID, 0);
  • JsonTools v5.5. is live!

    15
    7 Votes
    15 Posts
    7k Views
    Mark OlsonM

    JsonTools v8.4, which adds translation to several more languages and a few minor bugfixes, is live.

    It has been tested and appears to work well for versions of Notepad++ ranging from 7.3.3 to 8.8.1, both 32-bit and 64-bit.

  • Kotlin Language

    3
    0 Votes
    3 Posts
    3k Views
    Ako SajaiaA

    plzz add koltin guys , i love notepad ++ everything i’m writing in it , pluzz doit :3

  • WebServerNpp (Python Script plugin)

    8
    2 Votes
    8 Posts
    285 Views
    notdodgeballN

    Nice. It’s progressing fast.

    Now which will come first, https or authentication?

  • 0 Votes
    8 Posts
    307 Views
    ThosRTannerT

    @Chris-Fesko using vs 2022 doesn’t mean the code is using .net. My code certainly isn’t. It’s standard c++ throughout (though it is c++20 so i’m not sure how well that work with vc++ 6.0)

  • [New plugin] Linter++ - Linter plugin with message navigation.

    1
    2 Votes
    1 Posts
    63 Views
    No one has replied
  • 4 Votes
    67 Posts
    3k Views
    PeterJonesP

    @Coises,

    How do you go about testing the ARM64 version? I’ve left that out of all my plugin work so far, because I haven’t a clue how to verify that it works at all.

    I don’t. I’m following the time-honored tradition of releasing software untested, and hoping that any users will find edge cases for me. :-)

    Given that it works as 32b and 64b on Intel processors, and I’m not doing anything that is out-of-the-ordinary, I am hoping that there aren’t any ARM64-specific bugs

  • Single click to open file in workspace

    2
    0 Votes
    2 Posts
    126 Views
    PeterJonesP

    @Joe-Bruns-0 said in Single click to open file in workspace:

    Enhancement request.

    FAQ: Feature Requests aren’t tracked in the forum. If you want the developer to see your request, you’ll have to follow the instructions in the FAQ. But we can talk, and get ideas/feedback from other users here.

    Similar to single clicking on a file in document list panel to open it, can we do the same on folder as a workspace? It would appear that in folder as a workspace, a person has to double click on the file to open it.

    The two interfaces have a slightly different mindset, so, IMO, it would be a bad idea. In the Document List panel, you are dealing with files that are already open in Notepad++; in that mindset, then you’d want it to behave more like the tabbar, where a single click activates that already-open file. But in the Folder As Workspace (FaW) panel, the interface is much more like Windows Explorer: in Explorer and explorer-like interfaces, the user’s expectation is that single-clicking a file will select it, not launch it; and breaking that expectation in an explorer-like interface of the FaW panel will cause confusion on the part of many users, even though for some, it might be desired. If it were an option, I’d be okay with it; but unexpectedly forcing your preferred interface on everyone, especially on people who have been using Notpead++'s FaW for years (given how old the feature is, maybe even more than a decade) would be a bad experience for a large portion of the users.

  • Looking for a plugin that can mark "similar" lines in a text file.

    3
    0 Votes
    3 Posts
    146 Views
    LordP666L

    @Terry-R

    Fair enough. I thought I’d give it a shot.

    Thanks for your time and suggestions.