This plugin opens a random note from your workspace. Since there is no activity in the original repo since some years, I forked it and added some features that I wanted to try.
New features:
Exclude notes or notebooks (by right-click)
Exclude finished todos (by settings)
Get random notes from specific notebooks only (by right-click)
I will check if it's possible to make the plugin compatible to mobile.
Update:
It seems to be not possible easily. If I understand correctly, there are a few functions that the plugin requires, but that are not supported. Most important would be the openNote command.
I'm open to a PR, if somebody knows a way how to make this plugin compatible to mobile.
Thanks for the update. I can't see the exact reason why the plugin is marked as incompatible on my phone, though. I guess because the plugin needs a menu item, which is desktop-only.
It might be related to missing keys in manifest.json. I'm linking to part of the docs:
If you encounter an "incompatible with Joplin mobile" error, be sure that "platforms": ["mobile", "desktop"] is included in your plugin's manifest.json (documentation).
Thanks, that worked. The plugin is available on mobile now. It's not really convenient, though. You have to edit the note first to get the menu including the random note button.
Hi there! I’m trying to get only random notes from two notebooks (that contain 1.500+ sub-notebooks and notes) – I’ve tried setting these two as root notebooks, but then random notes doesnt work at all. If I exclude the other notebooks, random notes works again, but it does not exclude these other notebooks.
Also it takes a really long time (~ 10 seconds) to load a random note - is that because I have so many notes?
Does anybody else have these issues and ideas how to get random notes to work properly?
Hi, some settings seem to be broken. I will check how to fix.
Update: In release 1.0.6 the parsing of the settings is more robust. I just published it. It might take some hours to get available in Joplin. In general, the settings should work in the previous versions, though. Can you share an example how your configuration looks like? If you have multiple notebooks/notes, the value should look like a69da01e58174bd5b110c8b592a31845,e1c7d76f6b6245b1aa51df10c76c8d66. (You can add notes/notebooks by right click -> "Random Note: Exclude".)
The implementation isn't designed for speed. However, 10 seconds are much. I will try with my set of notes (~1800 notes in total).
Update: In my case, the random note is opened in less than a second. I guess it might be slower dependent on the size of the notes and the attachments.
Hi and thank you! I will try the new version. And yes, my settings look similar (b7b5775093ea45e1bc7c32220ac370b7,180a30cd5f174d3abefa837383569f9e,a2df81baff9a42a589d1c402b3bb9576 for the excluded notebooks)
If I exclude a notebook it will also exclude all nested notes and notebooks inside, right?
And yeah I have A LOT of notes, so that might be the problem. Is there anything I could do to optimize that?
No, it will only exclude the specified notebook. Excluding recursively would be nice-to-have, but that is quite some amount of work. I created an issue for tracking:
I created another issue for that:
I won't implement new features for the plugin soon most likely. If you can code, you could take a try to improve the plugin.