Plugin for the application Obsidian Notes
Adds a new command to the Obsidian Notes Application:
Select Random Line- Intelligently selects a random line based on your current context
The plugin has two modes of operation:
Mode 1: With Selection
- Select some text in your note that spans multiple lines
- Run the command
Select Random Line(you can find it in the Command Palette, assign it to a hotkey, or add it to your toolbar) - The plugin will randomly select one line from within your selection that contains text content
Mode 2: No Selection (Just Cursor)
- Simply place your cursor anywhere in the document (no selection needed)
- Run the command
Select Random Line - The plugin will randomly select any line from the entire file that contains text content
This is useful for:
- Randomly picking items from lists
- Getting random inspiration from brainstorming notes
- Randomly selecting lines for review or processing
- Clone this repository to the
.obsidian/pluginsdirectory of your Obsidian vault. - run
npm i && npm run buildto install dependencies and build the plugin. - Open Obsidian, go to Settings > Community Plugins, and enable this plugin. You might have to reload Obsidian.
- If any changes are made, you will need to rebuild and reload Obsidian with the
Reload app without savingcommand.
- I encourage all issues or suggestions to be submitted through the Issues tab on GitHub.
- Pull requests are welcome.
Bitcoin: bc1qs39glh9cwsef0qv40dny6ajnweqe2le7ynfgr2
Ethereum: 0x5Baba8708b8676afBFF2974b4af4894Fc12aE242