WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Tiny To-Do list  (Read 182 times)

Offline PDP-8

  • Hero Member
  • *****
  • Posts: 709
Tiny To-Do list
« on: August 08, 2020, 04: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

Code: [Select]
mkdir todo
cd todo
Add a todo by touching a file:

Code: [Select]
touch fish
To see your list do either the long way (ls -l) or use the LL alias:

Code: [Select]
ls -l
or
ll

But fish isn't descriptive enough.  Let's use underscores instead, and edit the existing one using the mv command.

Code: [Select]
mv fish feed_the_fish
Or, one can use quotes to cut down on keystrokes for long ones:

Code: [Select]
touch "feed my neighbors goldfish and other pets"
Use ll to list.

Add another todo that something important:
Code: [Select]
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:

Code: [Select]
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:

Code: [Select]
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:

Code: [Select]
touch Experimental_files_do_not_modify
Or something like that.  Use your imagination.
« Last Edit: August 08, 2020, 04:38:29 PM by PDP-8 »
That's a UNIX book! - cool  -- Garth

Offline PDP-8

  • Hero Member
  • *****
  • Posts: 709
Re: Tiny To-Do list
« Reply #1 on: August 09, 2020, 05:57:02 AM »
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

Code: [Select]
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

Code: [Select]
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. :)
That's a UNIX book! - cool  -- Garth