Giter Club home page Giter Club logo

Comments (6)

WhyNotHugo avatar WhyNotHugo commented on July 26, 2024

The internal model already supports categories (we can even filter by them!).

Mostly, we need to add this to show, edit, new and to the UI. In the UI, they can be comma-separated (since categories can't have commas anyway).

from todoman.

Sakshisaraswat avatar Sakshisaraswat commented on July 26, 2024

hello!! I want to work on this issue..should it require test case?

from todoman.

untitaker avatar untitaker commented on July 26, 2024

Hello @Sakshisaraswat, yes, please add a testcase as well. The checklist for this issue looks very similar to #11 (comment), except for adding support for LOCATION, we add support for CATEGORIES.

from todoman.

christf avatar christf commented on July 26, 2024

@Sakshisaraswat I can see you have some code towards this issue. Are you still working on this? What is the state of the code?

from todoman.

christf avatar christf commented on July 26, 2024

I have reworked the original patch and rebased it on master. Using this code
https://github.com/christf/todoman/tree/category I can create and edit categories.

Unfortunately when saving multiple categories into the same task, the "," is masked by a backslash.
This results in a line like:

CATEGORIES:cat1\,cat2

This works from the todoman perspective tough I do not think this is properly formated.
I would appreciate help, feedback and comments on the existing code. I have not worked with python until now, please be even more constructive than you usually would be.
I am willing to continue to work on this until the feature can be merged.

from todoman.

WhyNotHugo avatar WhyNotHugo commented on July 26, 2024

@christf Would you mind opening a PR to discuss code details for this patch there?

master...christf:category

Regarding the commas issue, it looks like using t.set_inline('category', ['foo','bar']) sets them properly (and also escapes commas INSIDE categories properly).

I also think we might be able to use the multiple options feature here, so category names can actually contain commas (which would actually be escaped). This would slightly change usage to:

todo new blah --category foo --category bar

I think this is slightly tidier than forcing people to comma-separate.

from todoman.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.