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

Aperta
#1,019 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
lua
Ambito
devtools

Direzione di ricerca

Inizia riproducendo il problema con oct in due prompt di cattura, inserendo intestazioni diverse e chiudendo ciascuno con :x. Traccia quindi la gestione del salvataggio e della chiusura del prompt di cattura, poi verifica che entrambe le voci vengano scritte nel file org invece di essere scritta solo quella aperta più di recente.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Lua
Stelle
3.9k
Fork
193
Merge medio
5g 7h
PR unite (30g)
6

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di nvim-orgmode/orgmode

Tutte le issue di nvim-orgmode/orgmode

Issue simili

Altre issue su Lua

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.