Tiny Core Linux
General TC => Programming & Scripting - Unofficial => Topic started by: PDP-8 on August 08, 2020, 07:17:33 PM
-
I keep track of my non mission-critical todo lists without even using a dedicated app. Not even a text editor. Just simple file-management.
What I do is touch zero-byte files and use those names as Todo titles.
Create a todo directory right off your home directory and cd into it
mkdir todo
cd todo
Add a todo by touching a file:
touch fish
To see your list do either the long way (ls -l) or use the LL alias:
ls -l
or
ll
But fish isn't descriptive enough. Let's use underscores instead, and edit the existing one using the mv command.
mv fish feed_the_fish
Or, one can use quotes to cut down on keystrokes for long ones:
touch "feed my neighbors goldfish and other pets"
Use ll to list.
Add another todo that something important:
touch Pay_taxes
Some todo's that I finish, I may not want to delete immediately and keep them around for awhile so I don't do them again. In many gui apps, a checkbox is used.
For me, I just rename the existing todo and prepend it with a capital X:
mv Pay_taxes X_Pay_taxes
And to catch your attention even further, if you have a colorized-capable terminal, do something to the file to make it stand out in color. One that works for me and stand out in green is:
chmod +x ./Pay_taxes
Seen when I do an ll to list my todos.
I know - kind of silly. But it works. Kind of fun not using a dedicated application or text editor. Just a goofy sense of fun with file-management commands you already know. :)
On a more serious note, instead of keeping todo's it demonstrates a way to add simple notes to any directory without having to use a read-me file aka:
touch Experimental_files_do_not_modify
Or something like that. Use your imagination.
-
I guess for convenience I can call up my todo list at any time ...
Just made a file named "todo" which contained a single line
ls -l /home/tc/todo
and put that into the ~/.local/bin
directory, which is in the default path. Make it executable of course with
chmod +x todo
Bingo - I can type todo at any time and see my list in the todo directory now easily.
I'm easily amused. :)
-
fwiw
i have written/rewritten (probably never completed =P .. it works but is in progress ) a lst mgr 1 or 2(or more) times
kind of along the lines of kv.awk (mentioned @ https://forum.tinycorelinux.net/index.php/topic,26886.msg173142.html#msg173142 )
because what is special about "to do" that's not applicable to other lists of things ?
-
@PDP-8 - I absolutely -love- your todo system - simple, elegant, portable.
I would adopt it in a heartbeat except I found the "colornote" (with local storage, tyvm) app for my android phone.