Comments (3)
Hi @Imymirror,
thank you for your message and using consult-org-roam
.
I tried to triage the issue. However, I cannot reproduce the described behavior unfortunately.
Using the consult-preview-key
(here bound to M-.
) and pressing [enter]
opens the previewed file.
I configured consult
like so:
(use-package consult
:straight t
:hook (completion-list-mode . consult-preview-at-point-mode)
:config
;; Use meta-dot to trigger the preview.
(setq consult-preview-key (kbd "M-.") ))
and set up consult-org-roam
as shown below:
(use-package consult-org-roam
:straight nil
:load-path "/media/user01/data/lab/consult-org-roam"
:init
(require 'consult-org-roam)
;; Activate the minor mode
(consult-org-roam-mode 1)
:bind
("C-c n e" . consult-org-roam-file-find)
("C-c n b" . consult-org-roam-backlinks)
("C-c n l" . consult-org-roam-forward-links)
("C-c n r" . consult-org-roam-search))
May I ask you to check whether the problem might be in your config?
You could run emacs -Q
and use the minimal config provided in the project's wiki
Best regards,
jgru
from consult-org-roam.
thank you. I upgrade all related packages, now pressing [enter] can jump to the previewed file .
but, can it jump to the location of the reference rather than the first line of the previewed file when calling consult-org-roam-backlinks
?
from consult-org-roam.
thank you. I upgrade all related packages, now pressing [enter] can jump to the previewed file .
Good to hear, thanks for the confirmation that it has been an issue on your configuration, @Imymirror.
but, can it jump to the location of the reference rather than the first line of the previewed file when calling
consult-org-roam-backlinks
?
The currently implemented functionality is to show the node that houses the link in question. That is not necessarily the first line of the file.
As far as I can tell, there is no completely straight forward way to locate the exact position of the backlink (since it is not tracked in org-roam.db
). Though one could probably search for the link and set the window accordingly.
However, I am not sure how easy it is to implement this. Maybe that functionality could be added somewhere around here.
If it is of utter importance to you, consider opening a feature request.
Best regards,
jgru
from consult-org-roam.
Related Issues (20)
- Feature Request / Idea HOT 10
- Rough idea: add source for consult-buffer HOT 7
- Add function to create dummy data for testing purposes HOT 1
- Question: purpose of consult-org-roam-file-find HOT 3
- Strip leading path of candidates presented by consult-org-roam-file-find
- [BUG] cursor moved when previewing the same buffer and the first item is far from the current cursor HOT 5
- consult-buffer doesn't show capture buffers HOT 4
- consult-buffer shows duplicate capture buffers
- `consult-buffer` slowness when using `consult-org-roam` HOT 6
- Remove org-roam-buffer-source when disabling consult-org-roam-mode
- `org-roam-node-insert` failed to insert into correct place. HOT 2
- Sorting (sort-fn) function does not work HOT 7
- major-mode not applied in previews for consult-org-roam-node-read HOT 2
- consult-org-roam-buffer-after-buffers does not produce the expected outcome
- consult-org-roam-buffer, do not alter visiting order of buffers HOT 4
- How to jump to the search result? HOT 3
- Org heading node is not searched HOT 3
- consult-org-roam-forward-links is not working HOT 2
- Change default `#'consult-org-roam-grep-func` HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from consult-org-roam.