## Creating a charfile
Make a new file in `~/.local/share/charsel/` or `/usr/share/charsel` with the name that you would like to use to call the charfile in the command.
-Fill it in, using the provided examples as a template. Hidden shortcuts go above the '---'
+Fill it in, using the provided examples as a template. Hidden shortcuts go above the '---', lines can be commented out using a '#' at the start of the line
## License
Charfile is GNU GPLv3 licensed, see COPYING for more information
-- Create a simple gtk interface using Zenity
- "Smart" shortcode length detection
-- Add comment support to charfiles
- Add purge option to makefile
# Main program
while :
do
- # Format charfile into table, showing only the shortcuts below the divider in the charfile
+ # Format output
+ echo "*---------*---------------*"
+ echo "| CHARSEL | " $1
+ echo "*---------*---------------*"
+ echo ""
+
cat $CHARFILE \
+ | sed -e '/^[ \t]*#/d' \
| grep -A 100 - \
| tail -n +2 \
| column -t -N input,output --output-separator ' | ' --separator ','
+ echo ""
echo "*-------------------------*"
echo "| previous shorcode:" $INPUT
echo "| previous output: " $OUTPUT