[BUG] cursor moved when previewing the same buffer and the first item is far from the current cursor
Closed this issue · 5 comments
K-gihu commented
(require 'org-roam)
(require 'vertico)
(require 'consult)
(require 'consult-org-roam)
(consult-org-roam-mode 1)
(vertico-mode 1)
(setq consult-preview-key 'any)
:PROPERTIES:
:ID: 5f19bb99-cac4-4fff-a607-b6b2ee58fe70
:END:
#+title: test
* heading1
:PROPERTIES:
:ID: 6c640360-7e68-40d3-93c2-19d466071591
:END:
[contents longer than the buffer]
* heading2
:PROPERTIES:
:ID: 02a0aea1-27d7-477f-852e-f8d1437998f3
:END:
[cursor]
The above is a minimal example code and org file. If you place the cursor at the end of the buffer, and then invoke org-roam-node-insert, and then search for "test" item, the previewing function of consult will let you see the title of this buffer, and the cursor will be moved away from its original position. Then if you hit enter, the item will not be inserted to the expected position.
jgru commented
K-gihu commented
jgru commented
K-gihu commented