• Read This First

    Pinned Locked
    1
    5 Votes
    1 Posts
    6k Views
    No one has replied
  • New API to fix eventual regression regarding SCN_MODIFIED for some plugins

    Pinned
    32
    2 Votes
    32 Posts
    26k Views
    ThosRTannerT

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

    Thanks

  • Columns++ version 1.3: All Unicode, all the time

    9
    4 Votes
    9 Posts
    478 Views
    CoisesC

    @guy038 said in Columns++ version 1.3: All Unicode, all the time:

    As you can see, a lot of Format characters return an erroneous result of 3,240 occurrences. But we’re not going to bother about these wrong equivalence classes, as long as the similar collating names, with the [[.XXX.]] syntax, are totally correct !

    Luckily, all the other equivalence classes are also correct, except for [[=ls=]] which returns 2 matches \x{2028} and \x{FE47} ??

    Thank you for the observation. I will have to look into this more closely. I believe the Boost::regex engine uses the transform_primary member function of the character traits class to determine equivalence: if the sort key returned by that function for two characters is the same, then they are equivalent. I implemented transform_primary using LCMapStringEx, as that is normally how one does Unicode sorting. But how is sorting relevant to regular expressions?

    It could be — despite the documented requirement for the function — that what is needed from transform_primary isn’t a sort key, but rather a case folding followed by a compatibility decomposition.

    Again, thank you for all your testing, and for calling this to my attention.

  • "Run" add-on for Run in Browser

    2
    0 Votes
    2 Posts
    54 Views
    PeterJonesP

    @D-Kirkpatrick ,

    I know the “Shortcuts” XML is the file to edit and that there is also a copy of that in %appdata% but so far I cannot put in my changes.

    v8.9 still works with all my saved Run menu commands in %AppData%\Notepad++\shortcuts.xml, and I can still edit that file following the standard instructions for editing a Notepad++ config file found in the user manual

    If you look at the shortcuts.xml file’s properties in Windows Explorer, do you have write permission to the file (you should, and you need it)

    If that’s not it, you’ll have to say the exact steps you are using that aren’t working (and share your ?-menu’s Debug Info), otherwise it’s really hard for us to guess what’s going wrong for you.

    I’d also like to add in MS Edge

    No need: View > View Current File in > Edge has existed for years.

  • NppVim 1.8.0.0 Release

    1
    1 Votes
    1 Posts
    61 Views
    No one has replied
  • Writing a lexer plugin that has no menu items

    2
    1 Votes
    2 Posts
    135 Views
    EkopalypseE

    @xMRi

    As far as I know, no. Npp explicitly checks this and throws an exception if no function is defined. So I would say, use an “About” menu item.

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

    3
    2 Votes
    3 Posts
    5k Views
    ThosRTannerT

    Updated linter++ to v1.0.2

    This has mostly been concerned with changes to the dockable window with the results:

    You can click on a column header to sort by that column You can drag the column headers to reorder the columns You can configure the font used for display

    There’ve also been a few other minor improvements/fixes - see the Changes.md file

    Downloadable from https://github.com/ThosRTanner/notepad-pp-linter/releases if you can’t wait for the plugin list to be updated.

  • v8.8.9 and ConfigUpdater plugin

    6
    0 Votes
    6 Posts
    355 Views
    Snabel42S

    @donho said in v8.8.9 and ConfigUpdater plugin:

    @PeterJones

    It’s already fixed in the GitHub, but I didn’t make the plugin list cutoff deadline.

    Are you talking about it?
    https://github.com/notepad-plus-plus/nppPluginList/pull/999

    It’s in the current PluginList in RC normally.

    I ran:

    Plugins > ConfigUpdater > Reset Validators Plugins > ConfigUpdater > Update Config Files

    The open tab with ConfigUpdater.log no longer shows any errors

  • Does arm64 plugin build required to include?

    5
    0 Votes
    5 Posts
    281 Views
    EkopalypseE

    @h-jangra

    It could be, yes, because I downloaded it and ran setup_arm64.bat in a normal cmd shell, and it worked.
    But it could also be due to how you originally set up Rust. I also played around with this a bit, but couldn’t reproduce your problem.
    I had MSVC installed via the Visual Studio installer, and then I installed the Rust toolchain. Some weeks later I add the arm extensions for VS and added the target to Rust, and it works for me.

  • NppGoTemplate plugin template in golang

    1
    3 Votes
    1 Posts
    146 Views
    No one has replied
  • Which lang other then c/cpp to build plugins

    5
    0 Votes
    5 Posts
    242 Views
    h-jangraH

    @Ekopalypse I tried simple plugin now using go. It did worked, let see if I can improve. If its good then I should make template for it.

  • New NppESPHome plugin

    1
    1 Votes
    1 Posts
    139 Views
    No one has replied
  • Inline markdown preview & better note taking plugin idea

    5
    0 Votes
    5 Posts
    612 Views
    EkopalypseE

    @h-jangra

    I doubt that you can implement this in Scintilla in a reasonable way, but the other idea of having a preview is there, and there are at least two plugins, here and here that can give you some ideas.

  • possible to create a openfile dialog under jn-npp-plugin ?

    5
    0 Votes
    5 Posts
    613 Views
    C

    after a look at jn-npp-plugin on github it seems Win32 API is not available in win x64 and i didn’t find other way to use openfiledialog…
    i am looking at python plugin now .

    thanks for your help

  • Scripts to align text

    4
    4 Votes
    4 Posts
    3k Views
    sound-fxS

    The following code supports PythonScript 3.0.23 as well as earlier versions of PythonScript 3.x.

    #------------------------------------------------------------------------ # If the character specified in the current selection is a white space, # then prompt the user to enter the alignment character (or characters), # using this character as the initial default. #------------------------------------------------------------------------ default_align_char = ',' from enum import Enum class PaddingSide(Enum): LEFT = 0 RIGHT = 1 def align_selected_text(max_align_char_count = None, padding_side = PaddingSide.LEFT): """Insert padding into the lines in the selection, as needed, to align up to max_align_char_count instances of a specific character or string of characters The default is to align all instances of the specific character. At present, the alignment character is taken as the character at the top of the current selection. You can uncomment some code below to change this policy to instead take the alignment character from within the selection at whichever end has the cursor. Either way, if that character is white space, the user is prompted to type the character (or characters). If you really wish to align on a white space character, you can just click OK at the prompt. When prompted to type the alignment character, the user may enter a sequence of characters, e.g., "-->", in which case the alignment is on the instances of that entire character sequence. For example, if the user enters "-->" at the prompt, then instances of the "-" character get aligned only if they're followed immediately by the characters "->", while instances of, say, "-1" and "- " remain unaltered. If there is no current selection, then aligns all lines in the editor. If there is a current selection, then aligns only the lines that are at least partially included in the selection, and the selection is changed to the entire block of newly-padded lines. Parameters ---------- max_align_char_count : positive integer, optional The maximum number of instances to align of the specific character. For example, set to 1 to align only the first instance of the character on each line. The default is to align all instances of the specific character. """ from Npp import editor #---------------------------------------------------------------------------- # For the alignment character, take the character just inside the bounds of # the selection block (at either the start or the end, as determined below). #---------------------------------------------------------------------------- editor.targetFromSelection() selected_text = editor.getTargetText() # Use this code to get the align_char unconditionally from the start # of the selection. align_char = selected_text[0] # Optionally use this code to get the align_char from within the selection # at whichever end has the cursor. # (startByte, endByte) = editor.getUserCharSelection() # if startByte == editor.getCurrentPos(): # align_char = selected_text[0] # else: # align_char = selected_text[-1] # If the character from the selection seems implausible as the # align_char, then prompt the user for it. if align_char.isspace(): from Npp import notepad global default_align_char align_char = notepad.prompt('Align character:', 'Enter Alignment Character', default_align_char) if align_char is not None: default_align_char = align_char #---------------------------------------------------------------------------- #%% Get the lines of text within the selected alignment block #---------------------------------------------------------------------------- (startLine, endLine) = editor.getUserLineSelection() startPos = editor.positionFromLine(startLine) endPos = editor.getLineEndPosition(endLine) text_lines = editor.getTextRangeFull(startPos, endPos).splitlines(True) #---------------------------------------------------------------------------- # Remember whether there is a user-selected block, so we can restore a # corresponding selection after aligning the text. #---------------------------------------------------------------------------- restore_selection = editor.getSelectionStart() != editor.getSelectionEnd() #---------------------------------------------------------------------------- # Align all instances of align_char within the lines of text #---------------------------------------------------------------------------- if align_char is not None: # Enable the following to save the align_char, however it was determined, # to be the default_align_char when prompting for it next time. # default_align_char = align_char padding_side_offset = padding_side.value * len(align_char) if max_align_char_count is None: align_char_count = max(line.count(align_char) for line in text_lines) else: align_char_count = max_align_char_count start = 0 for instance in range(align_char_count): # Set the target column using the index of the align_char, ignoring # immediately preceding space, or the length of the line tgt_char_col = max(len(line[:line.find(align_char, start)].rstrip()) for line in text_lines) for (idx,line) in enumerate(text_lines): align_char_col = line.find(align_char, start) if align_char_col >= 0: text_lines[idx] = line[:align_char_col+padding_side_offset].rstrip().ljust(tgt_char_col) \ + line[align_char_col+padding_side_offset:] start = tgt_char_col + len(align_char) editor.setTarget(startPos, endPos) editor.replaceTarget(''.join(text_lines)) if restore_selection: startPos = editor.positionFromLine(startLine) endPos = editor.getLineEndPosition(endLine) editor.setSelectionStart(startPos) editor.setSelectionEnd(endPos) if __name__ == '__main__': align_selected_text()
  • NppVim 1.6.0.0 Release - what's next macros?

    1
    3 Votes
    1 Posts
    168 Views
    No one has replied
  • Support for Plugins Admin & NppPluginList

    74
    1 Votes
    74 Posts
    124k Views
    pbarneyP

    Would it be possible to add a column (or two) to the Plugins Admin? Created and Last Updated sortable columns to be able to find the most recent plugins.

    It would also be wonderful to have another column Description that just gives the first line of the longer description that is displayed in the lower box when you click on a plugin.

  • Compose for Notepad++ (another experimental plugin)

    16
    8 Votes
    16 Posts
    1k Views
    CoisesC

    In case anyone is interested, I’ve created a version of this that runs as a Windows application rather than as a Notepad++ plugin, so it works in all applications:

    Compose for Windows

    This should be considered experimental. Since it works everywhere, not just in Notepad++, it has more potential to mess things up if I’ve missed something.

    Since it has no connection to Notepad++ (other than being a spin-off of the plugin described in the original topic message):

    The convenience features for editing a user definitions file which I added in response to @PeterJones’ notes aren’t included.

    Further discussion will be off-topic here. Please raise questions and concerns in the Issues for the project.

    The actions to create GitHub pages are, for some reason and at least temporarily, not working on this repository, which affects the normal presentation of the help file. However, you can still read the help file here (though some links appear to be garbled).

  • Markdown preview plugin

    3
    0 Votes
    3 Posts
    961 Views
    PeterJonesP

    @notdodgeball said,

    If you are talking the MarkdownViewerPlusPlus plugin by nea, its indeed been dormant for many years, although I suspect it still works and you may have a problem on your end.

    I can confirm MarkdownViewer++ still works… in that I still semi-actively use it in Notepad++ v8.8.7-64bit (it’d been a few weeks since the last time, so in case I had misremembered and it was on v8.8.5 that I’d last used it, I double-checked today, and it can still display my Markdown)

    @Dragon-Red said,

    Do you plan to upgrade the DLL so that this plugin is usable again?

    In case you were curious, this Community Forum is the Community of Notepad++ users. Further, plugins are maintained by their respective authors or maintainers, not by the Notepad++ Developer, so even if you incorrectly thought this Community was the way to get in contact with the Notepad++ Developer, he’s not the right one to contact when you want an fix for a plugin. (And, as @notdodgeball told you, MarkdownViewer++ is effectively unmaintained at this point, unfortunately.)

  • Find results box - F7 to toggle vs. show only

    5
    0 Votes
    5 Posts
    580 Views
    PeterJonesP

    @Wes-Owens

    Here is the procedure, which is 100% reliable for me:

    Ctrl+F, enter search terms, FIND ALL IN CURRENT DOCUMENT Find Dialog closes. Search Results dialog is shown Hitting F7 will toggle between the Search Results and Editor having focus If Search Results has focus, it will have blue title bar If editor has focus, you will be able to type in editor If Search Results has focus, hitting ESC will close it

    See this animated screen grab:

    3ca2bc47-53e2-4871-b24b-80793ab27d1a-SearchResultsF7-ESC.gif

    edit: even if I have the setting that @Terry-R mentioned checkmarked: I see the Search Dialog after hitting the FIND ALL IN CURRENT DOCUMENT button, I still see that the Search Results window is given focus when I do (see the blue title bar for that panel):

    f034944b-732d-455c-a662-8c445c4d0573-image.png

    And when the Search Results have focus, the SINGLE KEY ESC is sufficient to close the panel.