td attachment view: let it take a comment instead of a file URL?

Open Beginner friendly
#742 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
67/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript
Domain
cli

Research direction

Start by reading the existing td attachment view command and its tests, then check the td comment view hint and skill content mentioned in the issue. Compare the behavior with todoist-mcp issue #825. Done means the command accepts a comment reference while preserving URL input, reports clear errors for comments without files or with links, uses the file's real name and type, and has tests and updated guidance.

Written by the indexing model from the issue text.

Description

Hi! Would you take a PR for this?

Right now td attachment view needs the file URL. You copy it from td comment view and paste it in. In todoist-mcp, todoist/todoist-mcp#825 changed view-attachment to take a comment ID and read the URL from the comment itself.

My plan for the CLI:

  • Add td attachment view --comment <ref>, which reads the file from that comment. A comment with no file, or with a link instead of a file, gets a clear error.
  • Keep the URL argument as it is, so nothing that uses it today breaks.
  • Use the comment's real file name and type in the output.
  • Add tests, and update the skill content and the hint in td comment view.

Is that something you'd want, or would you rather keep the CLI URL-only?

Thanks!


Generated by Claude Code

Dominant language
TypeScript
Stars
331
Forks
19
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Doist/todoist-cli

All issues in Doist/todoist-cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.