diff --git a/bin/TODOlist b/bin/TODOlist index e569c80..3188125 100755 --- a/bin/TODOlist +++ b/bin/TODOlist @@ -115,7 +115,8 @@ if [ "${#files[@]}" -gt "1" ];then fi done <<< $(mabox-todo.sh listfiles) fi - +out2+=("^sep()") +out2+=(" Create New TODO List (file)...,mabox-todo.sh addfile && ${0} center") out2+=("^sep(TODO List: ${prettyname})") out2+=(" Edit ${prettyname}.txt in Text editor,xdg-open ${TODO_DIR}/${filename}.txt") @@ -124,7 +125,8 @@ out2+=(" Edit ${prettyname}.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+=(" Add hierarchical notes to ${prettyname} todolist (Cherrytree),mabox-todo.sh addnotes ${filename};${0}") fi @@ -140,8 +142,7 @@ out2+=("󰍜 Add custom menu for ${prettyname} todolist,mabo fi -out2+=("^sep()") -out2+=(" Create New TODO List (file)...,mabox-todo.sh addfile && ${0} center") + #out2+=("   ,^back()") out2+=("^sep(Danger Zone)") out2+=(" Delete ${prettyname} todolist and all related files,^checkout(delproj)") diff --git a/bin/mabox-todo.sh b/bin/mabox-todo.sh index 03e9a42..44d96fc 100755 --- a/bin/mabox-todo.sh +++ b/bin/mabox-todo.sh @@ -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 "Add new task...\n Enter - add | Esc - 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 "Add new task...\n Enter - add | Esc - 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}"