From 3cf2b087559f3d9778bb30883968eaa8fb8f9e38 Mon Sep 17 00:00:00 2001 From: Francisco Lopes Date: Thu, 12 Nov 2020 21:55:59 -0300 Subject: Add file type and code fences support Also fix inconsistency on usage of global variables --- README.md | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 4318c52..3cb64df 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,28 @@ # edit-weechat This simple [weechat](https://weechat.org/) plugin allows you to -compose messages in your `$EDITOR`. +compose messages in your `$EDITOR`, optionally with a file type. # Usage -```sh -/edit -# Type some stuff -# Save and quit -``` +- Markdown message (it's the default, same as `/edit md`) + ```sh + /edit + # Type some stuff + # Save and quit + ``` +- Plain text message + ```sh + /edit txt + # Type some stuff + # Save and quit + ``` +- Code message with fences added automatically + ```sh + /fenced cpp + # Type some code + # Save and quit + ``` # Configuration -- cgit v1.2.3-70-g09d2