-A command line tool using xclip to copy special charachters. UTF-8 encoding required
+# charsel
+A very simple comand line tool to make a shortcut to a special characther.
+It takes the input of a .char file, then puts it into a table and waits for your input. Once you put in your shortcut key, it prints the special character then copies it to the clipboard.
+A .char file is just two columns with the shortcut on the left, then a separator, then the special charachter to be copied.
+
+## DEPENDENCIES
+posix shell
+util-linux
+xclip
+
+## USAGE
+charselect.sh $charfile
+++ /dev/null
-#!/usr/bin/env sh
-
-column -t latin.char -N SHORT,CHAR -R SHORT,CHAR --output-separator ' | '
-read input
-
-awk '{print $2}' latin.char
--- /dev/null
+A Ā
+E Ē
+I Ī
+O Ō
+U Ū
+
+a ā
+e ē
+i ī
+o ō
+u ū
+
+
--- /dev/null
+#!/usr/bin/env sh
+
+CHARDIR=~/.local/share/charsel
+
+column -t $CHARDIR/$1 -N SHORT,CHAR -R SHORT,CHAR --output-separator ' | '
+read INPUT
+
+OUTPUT=$(grep $INPUT $CHARDIR/$1 | cut -c 3)
+
+echo $OUTPUT
+echo $OUTPUT | xclip -selection clipboard
+++ /dev/null
-A Ā
-E Ē
-I Ī
-O Ō
-U Ū
-
-a ā
-e ē
-i ī
-o ō
-u ū
-
-