• JSFunctionViewer Plugin Release

    1
    1 Votes
    1 Posts
    496 Views
    No one has replied
  • [C#] Find Text In File

    7
    0 Votes
    7 Posts
    1k Views
    PeterJonesP

    @sover-david said in [C#] Find Text In File:

    I know you can use the Find in Files dialog with NPPM_LAUNCHFINDINFILESDLG but can you use the regular find?

    NPPM_MENUCOMMAND will run any builtin menu with lParam providing the command ID: in this case, IDM_SEARCH_FIND to run Search > Find to launch the FIND dialog.

    // open the FIND dialog SendMessage( npp_hWnd, NPPM_MENUCOMMAND, 0, IDM_SEARCH_FIND);

    Once inside the dialog, you should be able to search controls. If I understand things correctly, FindReplaceDlg_rc.h defines the control ID’s for each of the entries and buttons: in this case, I think you want IDFINDWHAT for the “Find What” text box.

    I am starting to get out of my element, because for Win32 stuff, I am usually using a wrapper libary in Perl rather than truly programming in Win32 API code, so it sometimes provides wrapper functions that don’t map directly to Win32 API calls. But I think you would want to get the hWnd for the FIND dialog and maybe the edit control, then use WM_SETTEXT to the IDFINDWHAT entry:

    find_dlg_hWnd = GetActiveWindow(); // or GetForegroundWindow(); // https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getactivewindow find_box_hWnd = GetDlgItem( find_dlg_hWnd , IDFINDWHAT ); // https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getdlgitem SendMessage( find_box_hWnd, WM_SETTEXT, 0, "search text");

    or maybe instead of getting the extra hwnd, just

    SetDlgItemText( find_dlg_hWnd, IDFINDWHAT, "search text"); // https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setdlgitemtexta

    Then somehow, you would have to press the “FIND NEXT” button (but I wasn’t able to find the raw API equivalent of Perl’s Win32::GuiTest::PushChildButton or PushChildById, so I cannot link you to the right API command for pusing the button, sorry).

    But if the SendText/SendWait is working for you, that’s probably sufficient.

    For other reference, the NPP User Manual’s Searching Actions When Recorded As Macros seem to be using the control IDs as the parameters of the macro commands, so that might give you insight into the control IDs needed for other actions in the FIND family of dialogs … though I’m not sure they always line up with teh FindReplaceDlg_rc.h constants, so I’m not sure.

  • [C#] Dockable Dialog Write Text

    5
    0 Votes
    5 Posts
    456 Views
    Sover theS

    @sover-david Alright I managed to find it out, for anyone in the future trying to find the answer, dockable dialogs are made with the Windows Form Designer, you can open it by double-clicking the frmMyDlg.cs file in the Forms folder (should be simple to look up a tutorial on it)

  • Run Compare v2 in cmd

    5
    0 Votes
    5 Posts
    3k Views
    bobbywazB

    Has there been any update in this? I too and trying to script compares for my clients but the compare.exe is still missing. Is there an effort to get the program back in the new release?

  • Unreadable lines when comparing in dark mode

    3
    0 Votes
    3 Posts
    2k Views
    Javier MartinezJ

    @peterjones Thank you!

  • Installing outdated plugin...

    10
    0 Votes
    10 Posts
    815 Views
    artie-finkelsteinA

    @alan-kilborn said in Installing outdated plugin...:

    Or is that just something TextFX will do?

    TextFX only inserts an eight digit line number at the beginning of each line in the currently (stream) marked area. No spaces, no separators, no choices.

    FWIW: My daily use of TextFX is the Add Up Numbers command. Don and the other developers have thankfully implemented code for most of the truly text oriented commands in the Edit menu.

  • Autosave plugin

    11
    0 Votes
    11 Posts
    6k Views
    Ross McMillanR

    @robk-blue A good argument for using Ninite or similar to update your software!

  • Request: default filename is first line of file

    6
    0 Votes
    6 Posts
    2k Views
    PeterJonesP

    @doug-rogers said in Request: default filename is first line of file:

    I’m trying to figure out how to create a shortcut to run this script because it takes a lot of mousing to get to it

    First, you have to tell PythonScript to add it to the menu: Plugins > PythonScript > Configuration…, then select the script and click the left Add button. Then restart Notepad++, and you will see that your chosen script is now at the Plugins > PythonScript > scriptname level instead of buried deeper. Once that’s true, then Notepad++'s Preferences > Shortcut Mapper > Plugin Commands will list your script (you can filter by PythonScript to find it faster), and you can assign a shortcut that way.

  • Add gradient color option

    2
    0 Votes
    2 Posts
    579 Views
    PeterJonesP

    @mudzaky-hilmy ,

    I cannot imagine actually using or desiring such a thing. You are free to ask for new features – but, as the Read Before Posting and FAQ sections thoroughly explain, feature requests in this Community will do no good, and will not be seen by the developer.

    If you do make an official feature request as described in the FAQ, I doubt it will be implemented. And I’d personally prefer that the developer spends time on some of the persistent bugs or feature requests that have been around for years on features that people use every day, rather than on cosmetic things like “gradient backgrounds”. But my preferences don’t decide what actually gets worked on, so who knows what might happen.

  • User-defined language sharing

    3
    1 Votes
    3 Posts
    793 Views
    webketjeW

    @marc-wilson FWIW I bundled 2 with my theme (Dockerfile, markdown): https://github.com/webketje/notepad-plus-plus-duotone-dark-theme/tree/master/userDefineLangs. Other technique for some formats is to re-use existing definitions. E.g. env reg prettierrc eslintrc gitmodules gitattributes dotfiles use a variant of INI file format

  • Easier Way To Add Files In Notepad++

    3
    0 Votes
    3 Posts
    897 Views
    artie-finkelsteinA

    @hyper-ds said in Easier Way To Add Files In Notepad++:

    to make a file

    What about ‘File > New’ followed immediately by ‘File > Save As’?
    It will let you use the folder navigation and creation parts of the Windows file dialog and you can choose the file name when you’ve reached it’s new home. There are also the file tab (right-click) context menu choices to use either an Explorer or cmd session.

    Otherwise, I have to agree with @Ekopalypse that I’m not sure what you’re trying to accomplish.

  • Additional Npp messages needed

    6
    3 Votes
    6 Posts
    436 Views
    pnedevP

    @ekopalypse ,

    I’ve never used Projects or FaW in my workflow and thus I don’t have any experience with them so I cannot be of help here, sorry.
    The suggestions/feedback by others seem reasonable though and having the additional plugins API is a good thing in my opinion for use cases like yours.

  • Dark mode and plug-in with a custom lexer and xml styler

    11
    2 Votes
    11 Posts
    999 Views
    artie-finkelsteinA

    @artie-finkelstein
    I had to delete the URLs as they were flagged as spam. DuckDuckGo is your friend.

  • Compare Plugin

    2
    0 Votes
    2 Posts
    3k Views
    PeterJonesP

    @ubaldo-p ,

    Apparently no one else has that error (at least none of the 63-or-so views of your post have resulted in anyone willing to admit to the problem). I have used the Compare plugin successfully with v8.1.9 without difficulty.

    But I didn’t have to install it, because Compare plugin already was installed when I upgraded to v8.1.9.

    So today, since you hadn’t gotten a response, I took a fresh Notepad++ v8.1.9 portable unzip, and used Plugins Admin to install the plugin, and there was no difficulty.

    The things I would check if I were you:

    make sure you have write permission in the C:\Program Files\Notepad++\plugins directory (or the equivalent for your installation) – or you could temporarily run Notepad++ as Admin in order to install the plugin, if your normal user doesn’t have necessary privileges. make sure you have the proxy settings (?-menu, Set Updater Proxy) correctly defined in Notepad++ if your machine requires a proxy for internet connections.
  • 0 Votes
    7 Posts
    910 Views
    PeterJonesP

    @mykola-biloshytskyi ,

    So you completely ignored everything I told you – you did not use the template I gave you, you did not use the formatting buttons, you did not response to all three questions.

    However, it doesn’t matter. The command-line data that you showed proves that the problem is not with Notepad++ or with the plugin NppExec. The problem is with the syntax you are using on the command line – because you are getting the same error there that you did in NppExec. Your question is thus a Java question, not a Notepad++ or NppExec question.

    You are going to have to find a Java forum and ask your question there.

  • NppCrypt Authentification failed

    4
    0 Votes
    4 Posts
    428 Views
    PeterJonesP

    @desmond-frobisher ,

    When asking for help, it’s often better to err on the side of giving more, detailed, explicit information, rather than vague assertions.

    Please share ?-menu Debug Info from both devices Please share the Plugins > NppCrypt > About entry (or equivalent) for both Please check the NppCrypt settings on both, to make sure they match (sharing screenshots would help convince us) Please make sure nothing changed in the file during the “copy”. If it went over an FTP transfer, the line endings may have been corrupted. If it went via email attachment or what have you, maybe something got corrupted during the encoding/decoding/attach/extract process. Check the file sizes on both machines to make sure it’s the same number of bytes, etc.

    Without detailed information, our best guess is “operator error” (that is: “you are doing something wrong”), which isn’t helpful to you. If you want help, you have to help us help you.

  • Feature Request: Reopen the last Closed file

    3
    0 Votes
    3 Posts
    295 Views
    PeterJonesP

    Try Ctrl+Shift+t

    Also known as File > Restore Recent Closed File.

    And see also the related File > Open All Recent Files, which re-opens the full list shown in the recent-files-history.

  • Style Token text coloring issue

    7
    0 Votes
    7 Posts
    654 Views
    Tomáš KocourekT

    @Alan-Kilborn said in Style Token text coloring issue:

    @Tomáš-Kocourek

    It works.
    Read the release note and/or the manual when you move to a newer version of Notepad++ than the one you are used to, because…THINGS CHANGE.

    Here’s a hint, though:

    ea328cac-7dee-48f7-ad83-1460c38446f9-image.png

    @PeterJones FAQ this one?

    Thanks, this helped :-)

  • Plugin: Compare / Line Numbers

    2
    0 Votes
    2 Posts
    452 Views
    PeterJonesP

    @Ronald-Koons ,

    Sorry, I don’t believe it does.

    However, if another Compare Plugin user knows differently and can show us how, great!

  • Plugin: Compare / Set as first compare

    2
    0 Votes
    2 Posts
    2k Views
    PeterJonesP

    @Ronald-Koons ,

    I never have found the need for using “First to Compare” button. When I start my comparison, I just put my “old” file on the left and “new” file on the right, and click the “compare” button, and it works exactly as I expect it to.

    Okay, with a little experimenting: if I have all my files in the same view (so multiple tabs, none on the right), then if I click “First to Compare” in the “old” file, then “Compare” in the “new” file, it puts the one marked “first” on the left and the one where you clicked “Compare” on the right. And when i ended that compare, the “new” file moved back to the only active view with all the others. So the “First To Compare” button appears to be used only for marking the order of comparison when both files are starting from the same view.

    FYI: If you still want a change in behavior (I don’t think you need one), the author of the Compare Plugin has an issues page where such requests should be made. However, the author of the Compare plugin is no longer working on that incarnation of the plugin, and is instead working on a “ComparePlus” plugin to replace it. There has been no timeframe given for the newly-named plugin. However, the author does have issues for the Compare Plugin that are marked for ComparePlus v1, so if you put in your request through the compare plugin issues page, they might be included in the replacement plugin.