https://github.com/reimarpb/profanity-plugins
Collection of plugins for the Profanity XMPP client
https://github.com/reimarpb/profanity-plugins
profanity-plugin xmpp
Last synced: 4 months ago
JSON representation
Collection of plugins for the Profanity XMPP client
- Host: GitHub
- URL: https://github.com/reimarpb/profanity-plugins
- Owner: ReimarPB
- License: gpl-3.0
- Created: 2023-12-09T15:47:49.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-12-10T15:33:00.000Z (over 2 years ago)
- Last Synced: 2025-04-06T22:47:38.418Z (about 1 year ago)
- Topics: profanity-plugin, xmpp
- Language: C
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Profanity plugins
This is a collection of plugins I've made for the [Profanity XMPP client](https://profanity-im.github.io/). Click on the plugin names below for more information about each plugin.
- [pastefile](#pastefile) - Allows pasting files such as images from your clipboard
- [substitute](#substitute) - Adds sed-like substitutions to edit the last message writing `s/.../.../`
Note that the plugins are created for Linux and X11, so they might not all work on other systems.
# Installation
1. Clone the git repo and run `make` to build all plugins or `make ` to build a single plugin.
2. Run `make install` to install the plugins you've built.
3. Within profanity, write `/plugins` to see a list of plugins and `/plugins load ` to load each.
# Plugins
## pastefile
When running `/pastefile`, the plugin will upload what you have in your clipboard and send it in the current chat window:
- If you have copied an image, that image will be uploaded as a PNG
- If you have copied a file from a file manager, that file will be uploaded
- If you have copied some text, it will be written to a file with an auto-generated file extension (usually .txt) and uploaded
## substitute
This plugin allows you to edit your previous message using syntax from the `sed` unix command.
After having sent a message, you can type e.g. `s/old/new/` to replace the first instance of the word "old" in your message with the word "new". To replace all instances, add a `g` at the end.
For more information about the syntax, see [GNU's manual](https://www.gnu.org/software/sed/manual/html_node/The-_0022s_0022-Command.html) on the `s` command from `sed`.