From 16a7b26fd53731370708e30fc8fd81b5fc331e57 Mon Sep 17 00:00:00 2001 From: jaseg Date: Mon, 15 Aug 2022 18:31:22 +0200 Subject: Initial commit --- functions/quote-word.fish | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 functions/quote-word.fish (limited to 'functions/quote-word.fish') diff --git a/functions/quote-word.fish b/functions/quote-word.fish new file mode 100644 index 0000000..0205273 --- /dev/null +++ b/functions/quote-word.fish @@ -0,0 +1,4 @@ +function quote-word -d "Command line editor function that cycles between 'quoting' \"styles\" for the current word" + commandline -t (commandline -t|sed 's/^\'\(.*\)\'$/\1/;t;s/^"\(.*\)"$/\'\1\'/;t;s/^\(.*\)$/"\1"/') + commandline -f repaint +end -- cgit