aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x.local/bin/plumber4
-rwxr-xr-x.local/bin/plumber-dmenu1
2 files changed, 5 insertions, 0 deletions
diff --git a/.local/bin/plumber b/.local/bin/plumber
index e2c186d..2cf250f 100755
--- a/.local/bin/plumber
+++ b/.local/bin/plumber
@@ -29,12 +29,16 @@ defmodule ArgParser do
reverse_words: "reverse->words",
singleline: "text->singleline",
slugize: "text->slugize",
+ urlize: "text->urlize",
]
cond do
opts[:option] == options[:letterize] ->
TextPlumber.firstLetterOfWordsIn(opts[:text]) |> IO.binwrite()
+ opts[:option] == options[:urlize] ->
+ URI.encode(opts[:text]) |> IO.binwrite()
+
opts[:option] == options[:slugize] ->
opts[:text]
|> String.normalize(:nfd)
diff --git a/.local/bin/plumber-dmenu b/.local/bin/plumber-dmenu
index bb50a03..f2aa6b6 100755
--- a/.local/bin/plumber-dmenu
+++ b/.local/bin/plumber-dmenu
@@ -14,6 +14,7 @@ text->jumbleize
text->letterize
text->singleline
text->slugize
+text->urlize
verse->kjv
word->dictionary
"