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

オープン
#897 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

  • #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 のケースを再現し、見出しを作成すると、アジェンダの順序を変更せずに、設定されたデフォルト値またはユーザーが選択したキーワードが使用されることを確認します。

索引モデルが 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時間
マージ済み PR(30日)
6

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

nvim-orgmode/orgmode のほかの issue

nvim-orgmode/orgmode の issue をすべて見る

似ている issue

Lua の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。