orgmode icon indicating copy to clipboard operation
orgmode copied to clipboard

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

Open gnu-lorien opened this issue 4 months ago • 3 comments

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

gnu-lorien avatar Aug 05 '25 18:08 gnu-lorien

I have also run into this issue - and suspect that it's the root cause of https://github.com/chipsenkbeil/org-roam.nvim/issues/79 (issue creating multiple refiles) as well

drone-ah avatar Sep 04 '25 07:09 drone-ah

I merged a change that should fix this issue. I didn't check the org-roam, hope it didn't break anything. Let me know if things work on latest master.

kristijanhusak avatar Sep 04 '25 11:09 kristijanhusak

I have just done some rudimentary testing and both issues appear fixed - thank you so much for sorting it out :)

drone-ah avatar Sep 05 '25 08:09 drone-ah