From 508a82879a0d90e455c9d134de746e854df30475 Mon Sep 17 00:00:00 2001 From: Jabba Laci Date: Thu, 26 Oct 2023 14:43:06 +0200 Subject: [PATCH] backtick command added --- help/manipulator.md | 3 ++- manipulator.lua | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/help/manipulator.md b/help/manipulator.md index d7cfd00..d3331e8 100644 --- a/help/manipulator.md +++ b/help/manipulator.md @@ -32,12 +32,13 @@ The following commands currently exists: * `incNum`: Increase number by one * `decNum`: Decrease number by one * `capital`: Capitalize First Letter - * `brace`: Adds brackets around selection + * `brace`: Adds brackets around selection * `curly`: Curly brackets (`{ }`) * `square`: Square brackets (`[ ]`) * `angle`: Angle brackets (`< >`) * `dquote`: Double quotes (`" "`) * `squote`: Single quotes (`' '`) + * `backtick`: Backticks (`` ` ` ``) ## Issues diff --git a/manipulator.lua b/manipulator.lua index 547d0c1..4c8126e 100644 --- a/manipulator.lua +++ b/manipulator.lua @@ -1,4 +1,4 @@ -VERSION = "1.4.0" +VERSION = "1.4.1" local micro = import("micro") local config = import("micro/config") @@ -148,6 +148,7 @@ function init() config.MakeCommand("dquote", function() manipulate(".*", '"%1"', 1) end, config.NoComplete) config.MakeCommand("squote", function() manipulate(".*", "'%1'", 1) end, config.NoComplete) config.MakeCommand("angle", function() manipulate(".*", "<%1>", 1) end, config.NoComplete) + config.MakeCommand("backtick", function() manipulate(".*", "`%1`", 1) end, config.NoComplete) config.MakeCommand("base64dec", base64dec, config.NoComplete) config.MakeCommand("base64enc", base64enc, config.NoComplete) config.MakeCommand("decNum", decNum, config.NoComplete)