https://github.com/keith/edit-weechat
Compose weechat messages in your $EDITOR
https://github.com/keith/edit-weechat
Last synced: 9 months ago
JSON representation
Compose weechat messages in your $EDITOR
- Host: GitHub
- URL: https://github.com/keith/edit-weechat
- Owner: keith
- License: mit
- Created: 2015-10-19T02:24:16.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2022-10-14T21:23:00.000Z (over 3 years ago)
- Last Synced: 2025-01-09T03:23:32.797Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 33
- Watchers: 3
- Forks: 10
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# edit-weechat
This simple [weechat](https://weechat.org/) plugin allows you to
compose messages in your `$EDITOR`.
# Usage
```sh
/edit
# Type some stuff
# Save and quit
```
# Configuration
If you'd like to customize the editor you use outside of the `$EDITOR`
environment variable, you can set it in weechat.
```sh
/set plugins.var.python.edit.editor "vim -f"
```
In case you want to run editor externally without blocking weechat (since
blocking weechat can break things), you can configure the plugin like this:
```
/set plugins.var.python.edit.editor "gvim -f"
/set plugins.var.python.edit.run_externally "true"
```
You can of course use any editor you want, you can even spawn a terminal and
use terminal vim if you prefer.
# Installation
Copy the script to `~/.weechat/python/autoload`
```
mkdir -p ~/.weechat/python/autoload
wget https://raw.githubusercontent.com/keith/edit-weechat/master/edit.py ~/.weechat/python/autoload
```