Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding notes to a task? #19

Open
dilawar opened this issue Jul 27, 2020 · 5 comments
Open

Adding notes to a task? #19

dilawar opened this issue Jul 27, 2020 · 5 comments

Comments

@dilawar
Copy link

dilawar commented Jul 27, 2020

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 ❤️

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
Copy link

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
Copy link

@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
Copy link

douglasfsmn commented Oct 11, 2022 via email

@beauraines
Copy link
Contributor

@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
Copy link
Contributor

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants