Skip to content

[Feature request] Add additional command-line parameter for plugins #17022

@Ekopalypse

Description

@Ekopalypse

Is there an existing issue for this?

  • I have searched the existing issues

Description of the Issue

If I understand the current situation correctly, than there is no official way to provide information to a plugin when Npp starts up via the commandline.

Describe the solution you'd like.

My suggestion would be to implement an additional startup parameter that is ignored by Npp.
Since several plugins may use this,
a) multiple entries and
b) the existence of the plugin name
is necesseray.

For example:
notepad++.exe /plugin PluginNameX "Info for Plugin X" /plugin PluginNameY info_for_plugin_y

To keep parsing simple for Npp, I would suggest that these parameters must be defined last,
thereby signaling that no further Npp-specific parameters will follow.

For example:
notepad++.exe -nosession -openFoldersAsWorkspace . /plugin PluginNameX "Info for Plugin X" /plugin PluginNameY info_for_plugin_y

Debug Information

none

Anything else?

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions