small update

This commit is contained in:
2026-03-12 09:52:55 +01:00
parent b3a2e1f5dc
commit 21344c8748
2 changed files with 6 additions and 5 deletions

View File

@@ -115,7 +115,8 @@ if [ "${#files[@]}" -gt "1" ];then
fi
done <<< $(mabox-todo.sh listfiles)
fi
out2+=("^sep()")
out2+=("<b></b> Create <b>New TODO List</b> (file)...,mabox-todo.sh addfile && ${0} center")
out2+=("^sep(TODO List: ${prettyname})")
out2+=("<big></big> Edit <b>${prettyname}</b>.txt in Text editor,xdg-open ${TODO_DIR}/${filename}.txt")
@@ -124,7 +125,8 @@ out2+=("<big></big> Edit <b>${prettyname}</b>.txt in Text editor,xdg-open $
if hash cherrytree 2>/dev/null
then
if [[ -f "${TODO_DIR}/${filename}.ctb" ]];then
out2+=("Edit notes,cherrytree ${TODO_DIR}/${filename}.ctb")
:
#out2+=("Edit notes,cherrytree ${TODO_DIR}/${filename}.ctb")
else
out2+=("<big></big> Add hierarchical notes to <b>${prettyname}</b> todolist (Cherrytree),mabox-todo.sh addnotes ${filename};${0}")
fi
@@ -140,8 +142,7 @@ out2+=("<big>󰍜</big> Add custom menu for <b>${prettyname}</b> todolist,mabo
fi
out2+=("^sep()")
out2+=("<b></b> Create <b>New TODO List</b> (file)...,mabox-todo.sh addfile && ${0} center")
#out2+=("   ,^back()")
out2+=("^sep(Danger Zone)")
out2+=("<big></big> Delete <b>${prettyname}</b> todolist and all related files,^checkout(delproj)")

View File

@@ -85,7 +85,7 @@ clearfilter(){
sd "filter.*$" "filter=" ${CFG_FILE}
}
addtask(){
task=$(yad --width=400 --center --border=40 --undecorated --no-buttons --close-on-unfocus --text-align=center --text "<big><b>Add new task...</b></big>\n <b>Enter</b> - add | <b>Esc</b> - abort" --entry --entry-text="Task description +Projest @Context" --ricon=gtk-clear)
task=$(yad --width=400 --center --border=40 --undecorated --no-buttons --close-on-unfocus --text-align=center --text "<big><b>Add new task...</b></big>\n <b>Enter</b> - add | <b>Esc</b> - abort" --entry --entry-text="Task description +Project @Context" --ricon=gtk-clear)
if [ ! -z "${task}" ];then
#notify-send.sh "okej" "${task}"
pass_to_todo_sh add "${task}"