Comments (7)
Thanks for researching and checking this behaviour, @cuprum.
As suggested by you, I changed :sort
to nil in 3c2701e.
This should fix the issue.
Best regards,
jgru
from consult-org-roam.
Hi @cuprum,
thanks for your message. Can you give an MWE here?
Did you passt a sort-fn
when calling consult-org-roam-node-read
?
I am asking since org-roam-node-read
is overriden here via advice-add
.
Best regards,
jgru
from consult-org-roam.
Here is https://gist.github.com/cuprum/20af58bc1f09460e552baf4726662c4f from my init.el.
I use this code to preview my daily notes strickly reverse alphabetically.
from consult-org-roam.
Hi @cuprum,
Here is https://gist.github.com/cuprum/20af58bc1f09460e552baf4726662c4f from my init.el. I use this code to preview my daily notes strickly reverse alphabetically.
thanks for sending this snippet. Could you clarify why setting sort-fn
to nil
works?
I am asking because you pass your custom sort function in your snippet here, and this should then never be used as far as I see. Can you clarify this for me?
Best regards,
jgru
from consult-org-roam.
Can you clarify this for me?
I'm use bundling of Vertico + Marginalia + Orderless + Consult. So, the preceding code does not work without :sort nil
in consult-org-roam.el. More precisely, in minibuffer with :sort sort-fn
still show mtime's sorting order for my daily notes when i call yr/orm-node-find-wrapper
.
from consult-org-roam.
Can you clarify this for me?
I'm use bundling of Vertico + Marginalia + Orderless + Consult. So, the preceding code does not work without
:sort nil
in consult-org-roam.el. More precisely, in minibuffer with:sort sort-fn
still show mtime's sorting order for my daily notes when i callyr/orm-node-find-wrapper
.
Okay, thanks. Probably, this goes back to passing the parameter sort-fn
already to org-roam-node-read--completions
Would you mind to test your specific use case whether supplying nil
to this func(org-roam-node-read--completions
) and your sort-fn
to consult-read
?
Best regards,
jgru
from consult-org-roam.
Would you mind to test your specific use case whether supplying
nil
to this func(org-roam-node-read--completions
) and yoursort-fn
toconsult-read
?
With the specified conditions, I see the mtime's order.
In any case, Org-roam is responsible for sorting (more precisely, org-roam-node-read--completions
in this case). Apparently, one should not use :sort sort-fn
additionally. Moreover, docs for consult--read
says
SORT should be set to nil if the candidates are already sorted.
from consult-org-roam.
Related Issues (20)
- 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
- After using :preview-key M-., how to jump to the previewed file directly? HOT 3
- `org-roam-node-insert` failed to insert into correct place. HOT 2
- 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
- Why the order is not respected ? HOT 6
- Get only Org results 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.