• PythonScript CSV Sort Help

    17
    0 Votes
    17 Posts
    915 Views
    John Doe 1J

    @chcg I would say it is pretty far from usable currently, and I have plans to add some libraries to it (including pandas) in the near future, thanks for the suggestion though : - )

  • Make External Lexer Plugin work with v8.4

    1
    3 Votes
    1 Posts
    6k Views
    No one has replied
  • NppExec v0.8.1 has been released!

    1
    6 Votes
    1 Posts
    297 Views
    No one has replied
  • Lokking for a line filter plugin

    2
    0 Votes
    2 Posts
    929 Views
    Alan KilbornA

    @richard-devenezia

    One word: Analyse (plugin)

  • Where to begin

    3
    0 Votes
    3 Posts
    352 Views
    Derek BrownD

    I believe you could use the NPPN_FILEOPENED notification and check the filename to see if it’s a new file (it will have no path and just a name like “new 1”). Then run your code to have the user select a template and insert text.

    Alternatively, you could just create a menu command for your plugin that lets the user select a template, then create a new file with that template text. Also note that the user can bind shortcut keys to plugin menu items.

  • NppExec Console not recognizing block pasting of input into it.

    7
    0 Votes
    7 Posts
    696 Views
  • Adding Libraries to PythonScript Plugin

    40
    0 Votes
    40 Posts
    7k Views
    Alan KilbornA

    @john-doe-1 said in Adding Libraries to PythonScript Plugin:

    point me to a more specific forum for Pandas

    Hmm, can’t say I’ve ever used one.
    I searched it up; apparently a “more important” pandas is a medical condition. And of course the cute bears…

    But I did find this one, no idea of its quality: https://community.developers.refinitiv.com/tags/pandas.html

    I’m sure some more intensive searching will provide others.

  • Icons in Menus.

    4
    0 Votes
    4 Posts
    366 Views
    Alan KilbornA

    @alan-kilborn said in Icons in Menus.:

    Issue created

    When I said this, I was meaning an issue requesting the native support.

  • Is there a way to use the CustomFileDialog from a plugin?

    2
    0 Votes
    2 Posts
    285 Views
    PeterJonesP

    @martin-honnen ,

    I do not believe that you can have access from the plugin to the custom file dialog already compiled into Notepad++.exe – at least, it doesn’t seem to be exposed by any of the API commands, and I don’t know of a way for a DLL to access a function from the parent EXE.

    That said, rather than fully implementing your own version, you might just be able to copy the source code for the CustomFileDialog, and compile it as part of your plugin’s DLL. I know, it has downsides (if they changed the source code, you would have to change your source code, rather than just calling their function), but it might be easier than completely re-implementing.

    Or you could just use a win32api-standard file-selection dialog, like GetOpenFileName or GetSaveFileName rather than NPP’s customized version.

    Caveat: I am not a plugin-authoring expert, though I have dealt heavily with the NPP messaging API, and know a tiny bit about generic win32 coding.

  • Anyone used the new v8.3.3 API calls yet?

    16
    3 Votes
    16 Posts
    778 Views
    PeterJonesP

    @alan-kilborn & @Ekopalypse ,

    After getting back from the coast, I confirmed that

    import ctypes notepad.hwnd = ctypes.windll.user32.FindWindowW(u'Notepad++', None) nppv = ctypes.windll.user32.SendMessageW(notepad.hwnd, 1024+1000+50,0,0) console.write("NPP v{}.{}\n".format(nppv>>16, nppv&0xFFFF)) ctypes.windll.user32.SendMessageW(notepad.hwnd, 1024+1000+104, u'GEDCOM', 2) mode = ctypes.c_ssize_t(0) ctypes.windll.user32.SendMessageW(notepad.hwnd, 1024+1000+103, u'GEDCOM', ctypes.pointer(mode)) mode.value

    did what I wanted in old PythonScript, so it was a matter of the missing unicode marker. Which probably means that the reason my compiled version failed was probably that it wasn’t in UTF-16-LE like it should have been. But it gives me a lead, and I know in my PerlScript source code what I need to do to make sure that I send the string as UTF-16-LE.


    c4847b06-4ba8-4e99-a958-78dcbcbfe77f-image.png
    (A few minutes before the moon set behind the clouds this morning. Twas a nice few days… but now, back to reality.)

  • I need auto sort tabs plugin (I will pay)

    3
    0 Votes
    3 Posts
    277 Views
    Maxitrol - MatM

    I am asking if anyone can write such a plugin for payment.

  • Plugin Feature needed

    21
    1 Votes
    21 Posts
    2k Views
    EkopalypseE

    @dail

    In general I agree, but in this particular case, which is all about search, I can’t see a race condition.
    But keep in mind, that I am a overconfident hobby programmer who may not see the big picture :-).

  • XML Tools Error

    3
    0 Votes
    3 Posts
    2k Views
    cahedralC

    @lycan-thrope said in XML Tools Error:

    notepad++.exe -noPlugin

    Thanks,

    My Steps:

    Start npp with -noplugin Install xmltool 3.1.1.10 Install ok restart npp and all plugins and xmltools ok.
  • need help with xml plugin

    8
    0 Votes
    8 Posts
    3k Views
    Michael VincentM

    @michael-vincent said in need help with xml plugin:

    Report your bug on the XML Tools plugins issue page

    Done - https://github.com/morbac/xmltools/issues/148

    Cheers.

  • NppCalc for 64bit Notepad++

    5
    0 Votes
    5 Posts
    3k Views
    B

    @rdipardo Thank you for the detailed analysis. I have no experience in Delphi , I will continue to use 32bit NPP till a better calc plugin is available of 64bit NPP.

  • NppExec: npp command resulting in error message in scripts

    5
    0 Votes
    5 Posts
    483 Views
    Domi MD

    @vitalii-dovgan Yes, that was the issue, a whitespace-like character in the next line.

    Thank you!

  • XML Tools: Specifying the DTD

    3
    0 Votes
    3 Posts
    711 Views
  • Does an etl plugin exist?

    2
    0 Votes
    2 Posts
    540 Views
    Terry RT

    @a-kostenzer said in Does an etl plugin exist?:

    I would like to know what is in this file to solve the diagnosed problem.

    I went searching on Google and got an answer in less than 1 minute, you could have done the same.
    Try this website.

    It would seem these are diagnostic files generated by Windows which may help to sort out application issues. They appear to be shrunk, so they may be “binary” in nature (from the website … written to a log and stored in a compressed binary format in order to reduce the amount of space occupied). If so then Notepad++ is the wrong application to open them.

    Do some research on the Internet to establish what you should be using instead to read the content.

    Terry

  • NppCrypt Plugin Not Installing

    5
    0 Votes
    5 Posts
    769 Views
    chcgC

    @rdipardo Just downloaded the x86 plugin version and on windows with N++ tool I get 29a8804a88f96c8086a0b77f0181279524ce85d1ebaa4094d4a32453a3c39bf1 on Win10. Also the check on appveyor is running on windows + python script. Current appveyor checks show no issue there. So I guess something is broken by the download or strange with the local vs. cloud storage.

  • Auto sort tabs (real-time)

    49
    0 Votes
    49 Posts
    2k Views
    Daniel TomberlinD

    @peterjones, sorry… I tried my best to not hijack a thread with another issue, which is why I approached it this way since I had 3 different questions to hash out. I don’t see this happening in the future and will just make a new post with my need and only focus on questions related to other posts without expanding outside of the scope… Btw, I couldn’t update that typo because of the 3 minute rule, but since the shared code was correct, I figured it would be figured out.