Multiple capture prompts destroy data from all but the most recently opened

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
lua
領域
devtools

調査の方向性

まず、2つのキャプチャプロンプトで異なる見出しを入力し、それぞれを :x で閉じて、oct に関する問題を再現します。次に、キャプチャプロンプトの保存と終了の処理を追跡し、最後に、最後に開いたエントリだけでなく、両方のエントリが org ファイルに書き込まれることを確認します。

索引モデルが issue の本文から書いたものです。

説明

bug
Describe the bug

If you open multiple task capture prompts the data for all but the most recent one will be lost when saved.

checkhealth

Orgmode ~

  • ✅ OK Treesitter grammar installed (version 2.0.0)
  • ✅ OK Setup called
  • ✅ OK org_agenda_files configured
  • ✅ OK org_default_notes_file configured
  • ⚠️ WARNING shellslash is not set. This might cause issues with file paths in links. Set vim.opt.shellslash = true in your configuration
Steps to reproduce
  1. Open a capture prompt for a task by typing <Leader>oct
  2. Type something into the header
  3. Open another capture prompt for a task by typing <Leader>oct
  4. Type something into the header
  5. :x to close and write the capture prompt
  6. :x to close and write the capture prompt

At step 5 the data written in step 3 is added to the org file. At step 6 the data written in step 1 disappears and doesn't appear in the org file.

Expected behavior

The expected behavior is that the data written in both step 1 and step 3 is now in the org file.

Emacs functionality

No response

Minimal init.lua

-- Enter your minimal_init.lua here

Screenshots and recordings

No response

nvim-orgmode version

2b91d9a

OS / Distro

Windows 11

Neovim version/commit

v0.11.3

Additional context

No response

主要言語
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 を短くまとめたダイジェスト。