[gedit] plugins: implement generate-list.sh script



commit c430de714677e8724591bf23abb47d06a95f471a
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Tue May 5 02:20:05 2020 +0200

    plugins: implement generate-list.sh script
    
    Before there was such a list on the wiki that was manually created, and
    seldom updated. With the script it's now easy to update the list.

 plugins/generate-list.sh         | 44 +++++++++++++++++++++++++++++++++++++++
 plugins/list-of-gedit-plugins.md | 45 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 89 insertions(+)
---
diff --git a/plugins/generate-list.sh b/plugins/generate-list.sh
new file mode 100755
index 000000000..c77cab0a1
--- /dev/null
+++ b/plugins/generate-list.sh
@@ -0,0 +1,44 @@
+#!/bin/sh
+# SPDX-FileCopyrightText: 2020 Sébastien Wilmet <swilmet gnome org>
+# SPDX-License-Identifier: GPL-3.0-or-later
+
+# This script generates a Markdown file with the names and descriptions of all
+# official gedit plugins.
+
+write_list_for_plugins_dir() {
+       plugins_dir=$1
+
+       for plugin_desktop_file in `find "$plugins_dir" -name '*.plugin.desktop*'`
+       do
+               name=`grep -P '^Name=' "$plugin_desktop_file" | cut -d'=' -f2`
+               echo -n "- **$name** - "
+
+               desc=`grep -P '^Description=' "$plugin_desktop_file" | cut -d'=' -f2`
+               echo "*$desc*"
+       done | sort
+}
+
+write_content() {
+       echo 'gedit plugins'
+       echo '============='
+       echo
+       echo 'Core plugins'
+       echo '------------'
+       echo
+       echo 'Plugins that are distributed with gedit itself.'
+       echo
+
+       write_list_for_plugins_dir '.'
+
+       echo
+       echo 'gedit-plugins package'
+       echo '---------------------'
+       echo
+       echo 'The gedit-plugins package contains useful plugins that are (most'
+       echo 'of the time) too specific to be distributed with gedit itself.'
+       echo
+
+       write_list_for_plugins_dir '../../gedit-plugins/plugins'
+}
+
+write_content > list-of-gedit-plugins.md
diff --git a/plugins/list-of-gedit-plugins.md b/plugins/list-of-gedit-plugins.md
new file mode 100644
index 000000000..1aa9affa8
--- /dev/null
+++ b/plugins/list-of-gedit-plugins.md
@@ -0,0 +1,45 @@
+gedit plugins
+=============
+
+Core plugins
+------------
+
+Plugins that are distributed with gedit itself.
+
+- **Document Statistics** - *Report the number of words, lines and characters in a document.*
+- **External Tools** - *Execute external commands and shell scripts.*
+- **File Browser Panel** - *Easy file access from the side panel*
+- **Insert Date/Time** - *Inserts current date and time at the cursor position.*
+- **Modelines** - *Emacs, Kate and Vim-style modelines support for gedit.*
+- **Python Console** - *Interactive Python console standing in the bottom panel*
+- **Quick Highlight** - *Highlights every occurrences of selected text.*
+- **Quick Open** - *Quickly open files*
+- **Snippets** - *Insert often-used pieces of text in a fast way*
+- **Sort** - *Sorts a document or selected text.*
+- **Spell Checker** - *Checks the spelling of the current document.*
+
+gedit-plugins package
+---------------------
+
+The gedit-plugins package contains useful plugins that are (most
+of the time) too specific to be distributed with gedit itself.
+
+- **Bookmarks** - *Easy document navigation with bookmarks*
+- **Bracket Completion** - *Automatically adds closing brackets.*
+- **Character Map** - *Insert special characters just by clicking on them.*
+- **Code Comment** - *Comment out or uncomment a selected block of code.*
+- **Color Picker** - *Pick a color from a dialog and insert its hexadecimal representation.*
+- **Color Scheme Editor** - *Source code color scheme editor*
+- **Commander** - *Command line interface for advanced editing*
+- **Draw Spaces** - *Draw spaces and tabs*
+- **Embedded Terminal** - *Embed a terminal in the bottom pane.*
+- **Find in Files** - *Find text in all files of a folder.*
+- **Git** - *Highlight lines that have been changed since the last commit*
+- **Join/Split Lines** - *Join several lines or split long ones*
+- **Multi Edit** - *Edit document in multiple places at once*
+- **Session Saver** - *Save and restore your working sessions*
+- **Smart Spaces** - *Forget you’re not using tabulations.*
+- **SyncTeX** - *Synchronize between LaTeX and PDF with gedit and evince.*
+- **Text Size** - *Easily increase and decrease the text size*
+- **Translate** - *Translates text into different languages*
+- **Word Completion** - *Word completion using the completion framework*


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]