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

未关闭
#897 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

  • #923 来自 @lyz-code —— 已关闭,未合并

评估

难度
3/5
预计耗时
1-2 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
lua
领域
tooling

调研方向

从 org_insert_todo_heading 和 org_insert_todo_heading_respect_content 的实现开始,然后检查 issue 中提到的 org_todo_default_state 配置以及所引用的 PR 842。复现自定义 org_todo_keywords 的情况,并验证创建标题时会使用已配置的默认值或用户选择的关键字,同时不改变 agenda 的排序。

由索引模型根据 Issue 内容生成。

描述

bug
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

主要语言
Lua
星标
3.9k
派生
193
平均合并
5 天 7 小时
30 天内合并 PR
6

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

nvim-orgmode/orgmode 的其他 Issue

查看 nvim-orgmode/orgmode 的全部 Issue

相似的 Issue

更多 Lua Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。