Major chhanges: daisy.source renamed to ld.source.

All files have been prettified by making sure we use 2-space indent.

agenda:
Instead of the hidden .tree file, a file created "More..." is made.
You can use (ex) "agenda --view "2026" to get a full list of files from that
year/date/day.
Additionally, minor fixes have been made.

clip:
You can now use "-c" to clear the clipbaord.
This commit is contained in:
Sam Hardeman 2026-05-05 15:42:34 +02:00
parent 056ab01ed4
commit ab730db2f7
14 changed files with 264 additions and 534 deletions

24
editx
View file

@ -3,7 +3,13 @@
# removes the resulting file if it is empty after the editor closes.
LD_INTERNAL=1
. $(dirname $(realpath $0))/daisy.source
. $(dirname $(realpath $0))/ld.source
use_path=1
if [[ $1 == "-n" ]]; then
shift
use_path=0
fi
if [[ -z $1 ]];
then
@ -13,7 +19,7 @@ fi
if [[ -z "${EDITOR}" ]];
then
# ched is defined in daisy.source
# ched is defined in ld.source
ched "EDITOR env variable not set! You will have to set it yourself in the next screen."
fi
@ -23,7 +29,7 @@ file_in_path=$(whereis $1 | awk '{print $2}')
path_exist=0
[[ -e "$file" ]] && file_exist=1
[[ -n "$file_in_path" ]] && path_exist=1
[[ $use_path == 1 ]] && [[ -n "$file_in_path" ]] && path_exist=1
if [[ $path_exist == 1 && $file_exist == 0 ]]; then
file=$file_in_path
@ -37,14 +43,14 @@ elif [[ $path_exist == 1 && $file_exist == 1 ]]; then
case "$choice" in
1)
file=$file
;;
file=$file
;;
2|"")
file="$file_in_path"
;;
file="$file_in_path"
;;
*)
file="$file_in_path"
;;
file="$file_in_path"
;;
esac
fi
fi