dwaring87 / rtm-cli

Remember the Milk Command Line Interface
MIT License
66 stars 14 forks source link

Adding notes to a task? #19

Open dilawar opened 4 years ago

dilawar commented 4 years ago

Hi,

Thank you for this cli. I was a heavy user of the todo.sh but had to migrate to cloud-based app for better communication with teams. This cli comes very close to todo.sh cli experience. Love it :heart:

Is there a way to add few notes to a task? It seems that the android app is capable for adding a note so I am assuming that this is possible. I'd love to help with implementation but don't know where to start.

douglasfsmn commented 3 years ago

I have been using rtm-cli daily for over a year and also wanted to add notes. (I am in the console all day long and really like the concise output of rtm-cli.) Following the format of other commands, I have added this command:

addNotes|an [index] [notes...] Add one or more notes to a Task

I added this feature in a local copy of the code (not a fork). I don't know the etiquette related to contributing changes, so if Mr. Waring is open to looking at a pull request, I can make my changes available that way.

Alternatively, I am happy to point you in the right direction to make the changes on your own copy of the rtm-cli code - if you want to get your hands dirty, or even provide detail of the specific changes needed to add notes.

aberezin commented 2 years ago

@douglasfsmn Can you share your code as a patch or just fork and commit your changes? I'd like to use your mods. Also, I want to add another goodie, open-url (or something like that) which will use the OS open command to open on the URL for that task.

douglasfsmn commented 1 year ago

I am happy to fork and commit my changes. I'll get to this as soon as I can.

-------- Original Message -------- On Jun 15, 2022, 12:14 PM, Alan Berezin wrote:

@.***(https://github.com/douglasfsmn) Can you share your code as a patch or just fork and commit your changes? I'd like to use your mods. Also, I want to add another goodie, open-url (or something like that) which will use the OS open command to open on the URL for that task.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

beauraines commented 1 year ago

@douglasfsmn @aberezin I just added the ability to add a single line note to a task in my fork. Please check it out...

https://www.npmjs.com/package/@beauraines/rtm-cli

@aberezin And check out the url commands options, there is a -o to open the URL!

Usage: rtm url [options] [indices...]

Display the associated URL of a Task

Options:
  -o, --open  Open the URLs in a browser
  -h, --help  display help for command
$ src/cli.js addNote
[Enter a blank line when finished]
Task: 198
Title: This is the title
Body: This is the body of the second note
Task: 
$ rtm notes 198
198 Task
Note: 
========
This is the title
This is the body of the second note

Note: 
========
This is the title
1

Note: 
========
undefined

$ src/cli.js addNote 198 'from the cli' 'I can add notes here too'
$ src/cli.js addNote 198 'from the cli' 'I can add notes here too'
$ rtm notes 198
198 Task
Note: 
========
from the cli
I can add notes here too

Note: 
========
from the cli
I can add notes here too

Note: 
========
This is the title
This is the body of the second note

Note: 
========
This is the title
1

Note: 
========
undefined
beauraines commented 1 year ago

@dilawar I forgot to tag you!!! Sorry about that. Check out my fork, I've added basic note support. https://www.npmjs.com/package/@beauraines/rtm-cli