• Update CLI command

    Help wanted · · · – – – · · ·
    4
    0 Votes
    4 Posts
    5k Views
    D

    All the gup.exe does is to check if there is a newer version than specified by the string input parameter is available. It does not handle the update itself. You would have to code it for yourself.

    For example like this in Powershell 5.1 for the 64bit version of Notepad++.

    [string]$ScriptFolder = $PSCommandPath | Split-Path -Parent $Notepad = Get-ItemProperty -LiteralPath 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\Notepad++' $InstalledVersion = $Notepad.DisplayVersion $UpdateCheck = Invoke-WebRequest -Uri "https://notepad-plus-plus.org/update/getDownloadUrl.php?version=$InstalledVersion" $UpdateCheckAnswer = ([xml]$UpdateCheck.Content).GUP if ($UpdateCheckAnswer.NeedToBeUpdated -eq 'yes') { $Filename = $UpdateCheckAnswer.Location.Split('/')[-1] Invoke-WebRequest -Uri $UpdateCheckAnswer.Location -OutFile "$ScriptFolder\$Filename" & "$ScriptFolder\$Filename" '/S /closeRunningNpp' }
  • Notepad++ 8.8.8 release candidate

    Pinned Announcements
    1
    4 Votes
    1 Posts
    157 Views
    No one has replied
  • 0 Votes
    1 Posts
    88 Views
    No one has replied
  • Mover abas

    General Discussion
    2
    0 Votes
    2 Posts
    123 Views
    Alan KilbornA

    @Wilson-Azambuja-Porto-Alegre-RS said:

    When I have dozens of tabs open, the scroll wheel blinks as many times as there are tabs open in order to position a specific tab, making the process extremely slow.

  • notepad++,exe- bad image

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

    @Alan ,

    TextShaping.dll is not a file that comes with Notepad++, nor is it in the right location for Notepad++ to be trying to load it as a plugin. If your copy of “notepad++.exe” is trying to access that DLL, scan those files and your entire computer for viruses!

  • using the command line switches, but not working

    General Discussion
    2
    0 Votes
    2 Posts
    87 Views
    PeterJonesP

    @Dan-McGovern ,

    -openFoldersAsWorkspace works just fine with -settingsDir and -titleAdd and other similar options, in my experiements.

    But, as far as I can tell, once -openFoldersAsWorkspace is specified anywhere on the command line, all path arguments are treated under the rule, “if it’s a folder, put it in the FolderAsWorkspace panel, and don’t open any file-paths directly”.

    That seems like the intent, because I don’t think it was considered that notepad++.exe myfile.txt -openFoldersAsWorkspace SomeDirectory\ would be a normal use-case (ie, when adding the feature, didn’t think that you’d want to open a file from one location, plus a folder-as-workspace from another, in the same command-line)

    If you don’t have the -multiInst argument, and if you don’t have the multi-instance preference set, then you could break it up into two calls of notepad++.exe

    "%np%" -settingsDir="..." -openFoldersAsWorkspace "%workspace%" "%np%" -settingsDir="..." "%file%"

    In that incantation, the oFAW has to come first, because of the known-and-never-solved issue that oFAW doesn’t work on an already-running instance of Notepad++.

    … But since I seem to remember that you do have the multi-instance preference set, that’s not likely to work for you. In which case, until you do a feature request, and it was accepted and implemented and released, I don’t know that you’ll get exactly what you want.

    I’ll update the manual to better explain current behavior with the oFAW option.

  • PHP Linter PythonScript

    General Discussion
    8
    0 Votes
    8 Posts
    406 Views
    PeterJonesP

    @pbarney said in PHP Linter PythonScript:

    my impression is that Pythonscript ships with 2.8

    From Plugins Admin, PythonScript v2.1.0 uses Python v2.7.18 (as far as I am aware, there is no such thing as Python v2.8).

    However, if you go to the PythonScript releases page, you will see that there is also an “alpha” track of PythonScript v3.0.x (currently at 3.0.24), which use Python v3.12.xx. This is the route I personally recommend (caveat below).

    The maintainer of PythonScript has chosen not to take PythonScript 3 out of “alpha” until it fully supports non-unicode encodings (ie, until it supports the 1980s-style character set encodings), so until that point, to get a maintained version of the Python interpreter for PythonScript, you have to manually install an alpha version of PythonScript – essentially, you have to put up with legacy syntax of Python if you want to deal with legacy non-unicode encodings of text. I personally have no need of supporting 80s technology for file encodings (and I pity anyone for whom their circumstances demand that they deal with file encodings that haven’t been brought into this millennium anytime in the last quarter century), so I use the 2020s version of Python for my PythonScript. (My personal opinion is that PythonScript should start shipping PythonScript 3 as non-alpha, and that they just prominently make it clear that if you have to deal with the old character sets that you should instead install the outdated PythonScript2 version from the releases page. But my opinion on such things holds no weight.)

  • 0 Votes
    3 Posts
    87 Views
    pbarneyP

    @Rick-Kosters, .docx files are compressed files, so unless you’re able to uncompress them first, you’ll never be able to use a third-party program to search them.

    For what it’s worth, 7-ZIP, Pkzip, WinZip, WinRAR, etc are all capable of opening those files. If you do unzip them, you’ll find a number of files and folders. What you’re looking for is most likely in word\document.xml.

  • Support for Plugins Admin & NppPluginList

    Notepad++ & Plugin Development
    74
    1 Votes
    74 Posts
    120k 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.

  • WebEdit Plugin for NPP x64 ?

    Help wanted · · · – – – · · ·
    9
    0 Votes
    9 Posts
    2k Views
    Richárd StockingerR

    Hi everyone!

    I have some good news and bad news.

    The good news is that I’ve finished WebEdit 2.9, which includes several new features: multi-select support, tag recommendations, quick tag addition/editing, and a few other minor upgrades.

    The bad news is that I’ve actually finished all the essential features I wanted to implement, so I’m not planning any further developments for the time being. Of course, you can still report bugs/issues and even make minor development suggestions, but the goal remains to keep the plugin fast, lightweight and easy to use.

    The overview of the (new) features is also available on the module’s main page: https://github.com/Krazal/WebEdit

    What’s next: when I have time, I’d like to return to my own plugin, because it has been full of bugs for months (not my fault!). ^^’

    Thank you for letting me contribute to this plugin, which I hope others will find just as great and useful as me!

  • FORUM: Posting Queue

    Pinned General Discussion
    10
    12 Votes
    10 Posts
    7k Views
    Ivy_PearsonI

    Thanks for the update, Peter. Totally understand the need for a posting queue—spam is getting tricky these days. Hopefully, it won’t take long to get posts approved once you earn reputation!

  • 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).

  • Using the Language Editor

    Help wanted · · · – – – · · ·
    4
    0 Votes
    4 Posts
    306 Views
    Lycan ThropeL

    @James-Burke-0 ,
    In addition to what @PeterJones has explained, the only other thing you could do, is bring up dBASEPlus in the Language->User Defined Language->Define your language...User language drop down box, and then `Save As’ and give it a new name.

    At that point, you can play with the settings, keywords, etc… all you want in your own named UDL. Because of the way the entire UDL ecosystem works, however, you’ll lose the ability to use the autoComplete file and the functionList file as well, because of their links to the UDL’s file names that those work with, as well as the overrideMap.xml linkage file, but you’d have JUST the UDL to adjust to your likings and then when you’re satisfied, you could go back to the original dBASEPlus UDL and put the changes that you want into the Dialog boxes for the language and then do as @PeterJones says, and just close and reopen the editor and your changes will be applied to the intalled dBASEPlus UDL definition.

    If you don’t need the Function List or Auto Complete capability, you can just use your newly named version of the dBASEPlus UDL to view and edit dBASE specific files.

    Just in case this is what you meant you wanted to do, to customize the dBASEPlus UDL without losing the original functionality of the original package. I hope this helps.

  • 0 Votes
    2 Posts
    70 Views
    PeterJonesP

    @Jerry-Scannell said in backward search doesn't work any longer:

    All of a sudden searching backwards through a file doesn’t work and I have to have proper case for strings I am searching. Does anyone know about this? Is it a setting that has changed for some reason? I am using version 8.7.5 if that helps.
    Thanks in advance,
    Paul

    That setting hasn’t changed since 2020 (v7.8.7).

    If you are in Regular Expression search mode, you cannot do backward search, unless you have followed the User Manual instructions (https://npp-user-manual.org/docs/preferences/#preferences-for-advanced-users) to set the regexBackward4PowerUser attribute in the xml config file, and restarted N++.

    But, as I said, this is nothing new. So a “sudden change” presumably was you choosing Regular Expression mode.

  • Markdown preview plugin

    Notepad++ & Plugin Development
    3
    0 Votes
    3 Posts
    125 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.)

  • The author asks to finance the war

    Boycott Notepad++
    15
    -3 Votes
    15 Posts
    11k Views
    James Burke 0J

    @Maurizio-Scian The real problem is that most Americans don’t know left from right. True right wingers wear BLUE ball hats. American right wingers wear RED ball hats. Now is that fucked-up or what? And what’s more, real communists restore old American cars and put diesel engines in them without catalytic converters. America communists ride electric bicycles and believe in climate change. Lets try to keep this in mind when discussing politics.

  • 1 Votes
    6 Posts
    581 Views
    Tnega TercesT

    Thank you guys all so very much, now that I know that it’s a GVAS file, I’ll chase down that lead and try to get somewhere!!!

  • Contribution Guidelines Regarding LLMs

    General Discussion
    5
    0 Votes
    5 Posts
    159 Views
    Alan KilbornA

    @rdipardo

    I didn’t mean that I run and hide from anything that AI is touched or influenced by. That wouldn’t be practical.

  • 0 Votes
    5 Posts
    392 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.

  • 3 Votes
    1 Posts
    632 Views
    No one has replied