mate-desktop / pluma

A powerful text editor for MATE
http://www.mate-desktop.org
GNU General Public License v2.0
157 stars 65 forks source link

Plugin tmpl #556

Closed yetist closed 1 year ago

yetist commented 4 years ago

Update the plugin templates to generate new pluma plugin.

Usage:

$ ./tools/generate-plugin.py --help
Usage:
   generate-plugin.py [OPTIONS...] pluginname

generate skeleton source tree for a new pluma plugin.

Options:
  --author              Set the author name
  --email               Set the author email
  --description         Set the description you want for your new plugin
  --standalone          Is this plugin intended to be distributed as a
                        standalone package ? (N/A)
  --language / -l       Set the language (C) [default: c]
  --with-$feature       Enable $feature
  --without-$feature    Disable $feature
  --help / -h           Show this message and exits

Features:
  config-dlg            Plugin configuration dialog
  menu                  Plugin menu entries
  side-pane             Side pane item (N/A)
  bottom-pane           Bottom pane item (N/A)
raveit65 commented 3 years ago

@mate-desktop/core-team Anyone else like to review it?

mbkma commented 3 years ago

if #615 gets merged, this will be out of date, because new plugins should use the new interfaces introduced in #615 . So I would recommend to first review #615 and if it gets merged update this PR.

raveit65 commented 3 years ago

ok, @yetist ^^^^^

raveit65 commented 3 years ago

@yetist Are you OK?

lukefromdc commented 2 years ago

Any progress on this?

yetist commented 1 year ago

Please review and test, for example:

cd plugins
# run generateplease-plugin.py to create newplugin, please run with -h to see more usage.
../tools/generate-plugin.py newplugin
# add newplugin into SUBDIRS and DIST_SUBDIRS in Makefile.am
vim Makefile.am
# add "plugins/newplugin/Makefile", "plugins/newplugin/newplugin.plugin.desktop.in" into  AC_CONFIG_FILES like others in configure.ac
vim ../configure.ac
cd ..
./autogen
make
lukefromdc commented 1 year ago

Someone who knows about the Pluma plugin system (I do not) needs to review this

lukefromdc commented 1 year ago

We have one current review, this has been updated after cooking for two years. Is this ready to go? I don't know enough about the plugin system to evaluate it

mbkma commented 1 year ago

Build and runs successfully, thanks :)