diff --git a/README.md b/README.md index 1636407..e082bbd 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ or inaccurate! ## yad-todo.sh Uses [yad](https://smokey01.com/yad/) to present a simple GUI for adding -entries to todo.txt file. +entries to todo.txt file. See the yad-todo.png file for what it might look like. ## kpf.sh diff --git a/yad-todo.png b/yad-todo.png new file mode 100644 index 0000000..896f954 Binary files /dev/null and b/yad-todo.png differ diff --git a/yad-todo.sh b/yad-todo.sh index 0342976..bff4304 100755 --- a/yad-todo.sh +++ b/yad-todo.sh @@ -27,7 +27,7 @@ contexts=$(echo " \!${contexts::-2}") priority=" \!A\!B\!C\!D\!E\!F\!G\!H\!I\!J\!K\!L\!M\!N\!O\!P\!Q\!R\!S\!T\!U\!V\!W\!X\!Y\!Z" blankentry=" \!" -OutString=$(yad --form --date-format="%Y:%m:%d" --width=400 --center --window-icon=gtk-info --borders 3 --field="Task" New_Task --field="Context:CBE" ${contexts} --field="Project:CBE" ${projects} --field="Priority:CBE" ${priority} --field="Due Date::DT" ) +OutString=$(yad --form --title="todo.txt entry" --date-format="%Y:%m:%d" --width=400 --center --window-icon=gtk-info --borders 3 --field="Task" New_Task --field="Context:CBE" ${contexts} --field="Project:CBE" ${projects} --field="Priority:CBE" ${priority} --field="Due Date::DT" ) NewTask=$(echo "$OutString" | awk -F '|' '{print $1}')