https://github.com/wonyoung-jang/logseq-insert-random-pages
Insert random Logseq pages as blocks.
https://github.com/wonyoung-jang/logseq-insert-random-pages
javascript logseq logseq-plugin plugin plugins
Last synced: 3 months ago
JSON representation
Insert random Logseq pages as blocks.
- Host: GitHub
- URL: https://github.com/wonyoung-jang/logseq-insert-random-pages
- Owner: wonyoung-jang
- License: mit
- Created: 2025-03-16T20:34:07.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-03-17T21:49:37.000Z (3 months ago)
- Last Synced: 2025-03-17T22:51:27.310Z (3 months ago)
- Topics: javascript, logseq, logseq-plugin, plugin, plugins
- Language: JavaScript
- Homepage:
- Size: 203 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-logseq - logseq-insert-random-pages - Insert random pages as blocks. (🔌 Plugins)
README
# Logseq Insert Random Pages
Logseq plugin to insert random pages as backlinks.
## Table of Contents
- [API](#api)
- [Installation](#installation)
- [Usage](#usage)
- [Features](#features)
- [Configuration](#configuration)
- [License](#license)
- [Acknowledgments](#acknowledgments)## API
[](https://badge.fury.io/js/%40logseq%2Flibs)
## Installation
- **Recommended** Go to the `Marketplace` in Logseq Plugins and search for `Insert Random Pages` → Click `Install`
- `Load unpacked plugin` in Logseq Desktop client.## Usage
- **Slash Command:** Type `/` in an edit block and select "🎲 Random Note".
- **Set count:** Optional: type the number of pages you'd like to insert before initiating the slash command.
- **Command Palette:** Open the Command Palette and select "Insert Random Pages".
- **Toolbar:** Click on the toolbar button to trigger the command.
- **Hotkey:** Use the configured hotkey (default is `r t`). After changing the hotkey in settings, restart Logseq.## Configuration

- **Keyboard Hotkey:** Set the key combination to trigger the plugin.
- **Number of Random Pages:** Control how many random pages to return.
- **Header Block:** Provide optional header parent block text.
- **Sorting:** Enable or disable alphabetical sorting of the random pages.
- **Page Filtering:** Set modes (`none`, `include`, or `only`) for:
- Journal pages
- Dangling pages (pages that are referenced, but have no file)
- Namespaces
- Pages with page properties## License
[LICENSE](LICENSE)
## Acknowledgments
- Built using [@logseq/libs](https://github.com/logseq/logseq-plugin-samples).
- Heavily inspired by [logseq-random-note](https://github.com/tankcool/logseq-random-note).