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

Choose the default TODO keyword on new created headlines when you don't want the first keyword #897

Open
lyz-code opened this issue Feb 7, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@lyz-code
Copy link

lyz-code commented Feb 7, 2025

Describe the bug

If you define the next keywords order because is the one you want it to have in the agendas

        org_todo_keywords = {
          "WAITING(w)",
          "DOING(d)",
          "READY(r)",
          "TODO(t)",
          "INACTIVE(i)",
          "|",
          "DONE(e)",
          "REJECTED(j)",
          "DUPLICATE(u)",
        },

When you create a new headline with org_insert_todo_heading or org_insert_todo_heading_respect_content the TODO keyword will be WAITING instead of TODO.

Steps to reproduce

Create a headline with the scenario described above

Expected behavior

The new created headline has the TODO keyword, or the one the user chooses

Emacs functionality

No response

Minimal init.lua

-- Enter your minimal_init.lua here

Screenshots and recordings

No response

OS / Distro

Linux

Neovim version/commit

0.10.4

Additional context

I implemented a fix for this case in this pr using the org_todo_default_state configuration option

@lyz-code lyz-code added the bug Something isn't working label Feb 7, 2025
@lyz-code
Copy link
Author

lyz-code commented Mar 9, 2025

I've developed an ugly fix that will be maintained in my fork until this is supported in case anyone is interested

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant