WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline PDP-8

  • Hero Member
  • *****
  • Posts: 915
Tiny To-Do list
« 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

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, 07:38:29 PM by PDP-8 »
That's a UNIX book! - cool  -- Garth

Offline PDP-8

  • Hero Member
  • *****
  • Posts: 915
Re: Tiny To-Do list
« Reply #1 on: August 09, 2020, 08: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

Offline mocore

  • Hero Member
  • *****
  • Posts: 611
  • ~.~
Re: Tiny To-Do list
« Reply #2 on: September 17, 2024, 03:46:36 AM »
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 ?


Offline Leee

  • Full Member
  • ***
  • Posts: 113
Re: Tiny To-Do list
« Reply #3 on: September 17, 2024, 02:19:01 PM »
@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.
core 15.0 x86_64