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

Add support for adding notes #23

Closed
beauraines opened this issue Mar 6, 2023 · 0 comments · Fixed by #31
Closed

Add support for adding notes #23

beauraines opened this issue Mar 6, 2023 · 0 comments · Fixed by #31
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@beauraines
Copy link
Owner

beauraines commented Mar 6, 2023

Add the ability to add notes to a task, similar to how gh opens the EDITOR.

This is to cover dwaring87/issues/19

See https://stackoverflow.com/questions/9122282/how-do-i-open-a-terminal-application-from-node-js for some sample code

const child_process = require('child_process')
var editor = process.env.EDITOR || 'vi';

var child = child_process.spawn(editor, ['/tmp/somefile.txt'], {
    stdio: 'inherit'
});

child.on('exit', function (e, code) {
    console.log("finished");
});

It looks like a new method needs to be added to the rtm-api tasks and tasks helpers. RTM's API has to use rtm.tasks.notes.add.rtm

@beauraines beauraines added enhancement New feature or request help wanted Extra attention is needed labels Mar 6, 2023
@beauraines beauraines self-assigned this Mar 7, 2023
beauraines added a commit that referenced this issue Mar 7, 2023
Adds new command `addNote` and the alias `addNotes` which will accept input of a title and body or just a title or prompt for the title and body of the note.

Fixes #23
beauraines added a commit that referenced this issue Mar 7, 2023
Adds new command `addNote` and the alias `addNotes` which will accept
input of a title and body or just a title or prompt for the title and
body of the note.

Fixes #23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant