Support fzf-lua as select-node dialog#107
Conversation
98fcaf4 to
40b357e
Compare
|
Hey there, have skimmed the PR, but haven't spent time to read through it more closely. My first thought is why this needs to be directly incorporated into this plugin instead of as a standalone plugin. Would it make more sense to incorporate features you need like the annotation function directly in this plugin, and then add the alternative select UI as a plugin that you maintain? My concern is that adding a dependency means that:
So what are your thoughts about splitting this out into the changes you need to support fzf-lua within this plugin, and then a separate plugin that you could maintain that offers the fzf integration? |
40b357e to
2232159
Compare
|
Hi, your concerns are perfectly reasonable! It's been a while, but I think my reason to add this into org-roam because I need to override part of the API to switch over to the fzf-based dialog. ( For now I've reset the PR to exclude the last commit and keeping it in a separate branch. |
If we can come up with a way to make that less sketchy and more officially supported (as a pluggable api), I'm all for it :) |
|
I would also prefer an API, where plugins can be plugged in. A configurable function for example, which I can implement to call my own picker. A node picker for org-roam was always on my list of features, so it is probably better to integrate it in Telescope-Orgmode than creating a hard-tailored solution directly in org-roam. |
Hi! For the past few weeks, I've been privately experimenting with a fork of Org-Roam where the select-node dialog has been replaced with fzf-lua's fuzzy-finder interface.
I've also added a config
ui.select.annotationthat mimicks the optionorg-roam-node-annotation-functionof Emacs Org-Roam. It differs from the previously introduced custom label formatting by using different highlight groups:PmenuExtraandPmenuExtraSel;I've marked this PR as a WIP for now because there are several design decisions involved that I'd like your input on before actually considering merging it. Please consider the current version only a draft 🙂
A few design questions that come to my mind:
org-roam.core.uiandorg-roam.uior would it better fit intoorg-roam.extensions?extensions?setup()call. Would it make sense to provide a config entry point inorg-roam?OrgPromiseAPI whereas fzf-lua usescoroutine. I'm not sure this is worth the trouble.And once all this is settled, we'll have to discuss various coding decisions obviously 😅
Feel free to take your time and as always, thank you for maintaining this awesome plugin!