Choose the default TODO keyword on new created headlines when you don't want the first keyword
还没有人认领这个 Issue。
- #923 来自 @lyz-code —— 已关闭,未合并
评估
调研方向
从 org_insert_todo_heading 和 org_insert_todo_heading_respect_content 的实现开始,然后检查 issue 中提到的 org_todo_default_state 配置以及所引用的 PR 842。复现自定义 org_todo_keywords 的情况,并验证创建标题时会使用已配置的默认值或用户选择的关键字,同时不改变 agenda 的排序。
由索引模型根据 Issue 内容生成。
描述
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
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
nvim-orgmode/orgmode 的其他 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 76/100
nvim-orgmode/orgmode#1213 ·
-
Surface "add_to_drawer" in public headline API可能已有人在做 @barthollomew 于 8 天前认领。 未关闭enhancement
难度 2/5 1-3 小时 新手友好度 64/100
nvim-orgmode/orgmode#1175 ·
-
bug
难度 1/5 1 小时以内 新手友好度 92/100
nvim-orgmode/orgmode#1173 ·
-
enhancement
难度 4/5 3-5 天 新手友好度 50/100
nvim-orgmode/orgmode#1172 · 1 条评论 · 1 个 reaction ·
-
Updating tree-sitter grammar ... aborting startup on Windows可能已有人在做 @lyn1dev 于 6 天前认领。 未关闭bug
难度 3/5 1-2 天 新手友好度 52/100
nvim-orgmode/orgmode#1170 ·
查看 nvim-orgmode/orgmode 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 2 天内回复
-
follow-up
难度 2/5 1-3 小时 新手友好度 78/100
ksysoev/duet.nvim#265 · 1 条评论 ·
维护者通常 1 天内回复
-
bug: accuracy
难度 2/5 1-3 小时 新手友好度 72/100
PathOfBuildingCommunity/PathOfBuilding#10649 ·
维护者通常 1 天内回复
-
reMarkable
难度 2/5 1-3 小时 新手友好度 78/100
koreader/koreader#16485 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 92/100
version-fox/vfox-php#41 ·
维护者通常 1 天内回复