Skip to content

Support multiple todo keyword sequence definitions #250

Open
@happy-dude

Description

@happy-dude

Does this feature exist in Emacs orgmode core?

Yes

Orgmode link

https://orgmode.org/guide/Multi_002dstate-Workflow.html

Feature value

From the manual:

Sometimes you may want to use different sets of TODO keywords in parallel. For example, you may want to have the basic ‘TODO=/=DONE’, but also a workflow for bug fixing. Your setup would then look like this:

(setq org-todo-keywords
      '((sequence "TODO(t)" "|" "DONE(d)")
        (sequence "REPORT(r)" "BUG(b)" "KNOWNCAUSE(k)" "|" "FIXED(f)")))

In my specific case, I have different sequences defined for

  • GTD
  • Blockers
  • Agile
  • Shopping

Additional context

Example of how I defined my sequences in emacs:

(setq org-todo-keywords
      '(
        (sequence "TODO" "PROCESS" "ORGANIZE" "REVIEW" "DO" "|" "DONE")                 ; GTD
        (sequence "IDEA" "DESIGN" "DEVELOP" "QA" "BACKLOG" "|" "COMPLETE")              ; Agile
        (sequence "|" "NOTDOING" "DELEGATED" "WAITING" "SOMEDAY")                       ; Blockers
        (sequence "WISHLIST" "CART" "SHIPPING" "ATTN" "|" "DONE" "RETURNED")            ; Shopping
        ))

Example of how I expected to define it in nvim-orgmode:

  org_todo_keywords = {
        {'TODO', 'PROCESS', 'ORGANIZE', 'REVIEW', 'DO', '|', 'DONE'},               -- GTD
        {'IDEA', 'DESIGN', 'DEVELOP', 'QA', 'BACKLOG', '|', 'COMPLETE'},            -- Agile
        {'|', 'NOTDOING', 'DELEGATED', 'WAITING', 'SOMEDAY'},                       -- Blockers
        {'WISHLIST', 'CART', 'SHIPPING', 'ATTN', '|', 'DONE', 'RETURNED'}           -- Shopping
      },

Metadata

Metadata

Assignees

No one assigned

    Labels

    core-featureFeature is in orgmode core

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions