feat(imp2ics): add RFC 5545 DTEND, line folding, CSV export and deduplication
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#echo "Kryštof Pešek" > /home/kof/.signature
|
#echo "Kryštof Pešek" > /home/kof/.signature
|
||||||
#echo "https://k0f.github.io" >> /home/kof/.signature
|
#echo "https://k0f.github.io" >> /home/kof/.signature
|
||||||
#echo "https://k0f.github.io" >> /home/kof/.signature
|
|
||||||
#echo "-----------------------------------------" >> /home/kof/.signature
|
#echo "-----------------------------------------" >> /home/kof/.signature
|
||||||
#echo Moon phase : `/home/kof/bin/moonphase` >> /home/kof/.signature
|
#echo Moon phase : `/home/kof/bin/moonphase` >> /home/kof/.signature
|
||||||
#echo Metric time: `/home/kof/bin/metriclock` >> /home/kof/.signature
|
#echo Metric time: `/home/kof/bin/metriclock` >> /home/kof/.signature
|
||||||
@@ -10,7 +9,7 @@
|
|||||||
while true; do
|
while true; do
|
||||||
{
|
{
|
||||||
echo "Kryštof Pešek"
|
echo "Kryštof Pešek"
|
||||||
echo "https://k0f.github.io"
|
#echo "https://k0f.github.io"
|
||||||
echo "-----------------------------------------"
|
echo "-----------------------------------------"
|
||||||
echo "Moon phase : $(/home/kof/bin/moonphase)"
|
echo "Moon phase : $(/home/kof/bin/moonphase)"
|
||||||
#echo "Metric time : $(/home/kof/bin/metriclock)"
|
#echo "Metric time : $(/home/kof/bin/metriclock)"
|
||||||
|
|||||||
@@ -1,10 +1,15 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Check if the first argument starts with [ and ends with ]
|
# Check if category tag is provided, e.g. [TAG] or "[TAG] message"
|
||||||
if [[ "$1" =~ ^\[.*\]$ ]]; then
|
if [[ "$1" =~ ^\[([^]]+)\][[:space:]]*(.*)$ ]]; then
|
||||||
CATEGORY="${1^^}" # Uppercase the tag
|
CATEGORY="${BASH_REMATCH[1]^^}"
|
||||||
shift # Remove the category from the argument list
|
REST="${BASH_REMATCH[2]}"
|
||||||
ARGS="$*" # The rest of the message
|
shift
|
||||||
|
if [ -n "$REST" ]; then
|
||||||
|
ARGS="$REST${*:+ }$*"
|
||||||
|
else
|
||||||
|
ARGS="$*"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
CATEGORY="GENERAL"
|
CATEGORY="GENERAL"
|
||||||
ARGS="$*"
|
ARGS="$*"
|
||||||
|
|||||||
Reference in New Issue
Block a user