Add more help about how to use plugins
`/plugins install` installs a plugin to `.local/share/profanity/plugins`. And also loads it. When a plugin is loaded it will automatically be added to the `profrc` file like this: ``` [plugins] load=my.py; ``` On the next start Profanity will try to load this plugin again unless `/plugin unload my.py` is called.
This commit is contained in:
@@ -6965,7 +6965,7 @@ cmd_plugins_install(ProfWin* window, const char* const command, gchar** args)
|
||||
gchar* plugin_name = g_path_get_basename(path);
|
||||
gboolean result = plugins_install(plugin_name, path, error_message);
|
||||
if (result) {
|
||||
cons_show("Plugin installed: %s", plugin_name);
|
||||
cons_show("Plugin installed and loaded: %s", plugin_name);
|
||||
} else {
|
||||
cons_show("Failed to install plugin: %s. %s", plugin_name, error_message->str);
|
||||
}
|
||||
@@ -6978,7 +6978,7 @@ cmd_plugins_install(ProfWin* window, const char* const command, gchar** args)
|
||||
if (result->installed || result->failed) {
|
||||
if (result->installed) {
|
||||
cons_show("");
|
||||
cons_show("Installed plugins:");
|
||||
cons_show("Installed and loaded plugins:");
|
||||
GSList* curr = result->installed;
|
||||
while (curr) {
|
||||
cons_show(" %s", curr->data);
|
||||
|
||||
Reference in New Issue
Block a user