logseq-tidy-blocks-plugin
logseq-tidy-blocks-plugin copied to clipboard
a Logseq plugin to remove whitespace and line breaks and hide block properties to keep blocks nice and tidy
logseq-tidy-blocks-plugin
If you find this plugin – or any of my other Logseq plugins – useful and would like to support me, you can buy me a coffee 🙂
Features
Remove empty blocks and whitespace from one block or multiple blocks in 3 ways
Demo

Toggle the display of block properties in 3 ways
- Limitation for manually hiding block properties is that the display state of block properties is NOT remembered when Logseq is reloaded
Demo

3 ways to use the plugin
- Block context menu (right-click on bullet)
- Slash (/) command
- Keyboard shortcuts (can be configured in the settings)
- Usage for one block: Click on the block (as if to edit it) → Activate the keyboard shortcut
- Usage for multiple blocks: Click on the first block (as if to edit it) → Select blocks above (
shift+up) or below (shift+down) → Activate the keyboard - Demo:

Settings
- Each time you make changes to the plugin settings, please reload Logseq to ensure that all settings are updated

Installation
Preparation
- Click the 3 dots in the righthand corner →
Settings→Advanced→ EnableDeveloper modeandPlug-in system - Click the 3 dots in the righthand corner →
Plugins– OR – Use keyboard shortcutEsc t p
Load plugin via the marketplace (recommended)
- Click the 3 dots in the righthand corner →
Plugins– OR – Use keyboard shortcutEsc t p - Go to the
Marketplacetab and search forTidy Blocks→ ClickInstall
Load plugin manually
- Download the latest release of the plugin (e.g logseq-tidy-blocks-plugin-v.1.0.0.zip) from Github
- Unzip the file
- Navigate to plugins (Click the 3 dots →
Plugins– OR – Use keyboard shortcutEsc t p) →Load unpacked plugin→ Select the folder of the unzipped file
License
MIT
Credits
- Plugin Marketplace Icon: Tidy icons created by Freepik - Flaticon
- Plugin Toolbar Icon: Material Design Icons
- Plugin nspired by the Obsidian Text Format plugin