diff options
author | jaseg <git@jaseg.de> | 2022-08-15 18:31:22 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2022-08-15 18:31:22 +0200 |
commit | 16a7b26fd53731370708e30fc8fd81b5fc331e57 (patch) | |
tree | a5d824ec11c4a6934422f7e7553b4c207016eba4 /functions/quote-word.fish | |
download | useful-fish-16a7b26fd53731370708e30fc8fd81b5fc331e57.tar.gz useful-fish-16a7b26fd53731370708e30fc8fd81b5fc331e57.tar.bz2 useful-fish-16a7b26fd53731370708e30fc8fd81b5fc331e57.zip |
Initial commitmain
Diffstat (limited to 'functions/quote-word.fish')
-rw-r--r-- | functions/quote-word.fish | 4 |
1 files changed, 4 insertions, 0 deletions
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 |