Skip to content

vyleung/logseq-tidy-blocks-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

logseq-tidy-blocks-plugin v.1.1.0 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

logseq-tidy-blocks-plugin v.1.2.0 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: logseq-tidy-blocks-plugin keyboard shortcut demo

Settings

  • Each time you make changes to the plugin settings, please reload Logseq to ensure that all settings are updated
    logseq-tidy-blocks-plugin settings

Installation

Preparation

  1. Click the 3 dots in the righthand corner → SettingsAdvanced → Enable Developer mode and Plug-in system
  2. Click the 3 dots in the righthand corner → Plugins – OR – Use keyboard shortcut Esc t p

Load plugin via the marketplace (recommended)

  1. Click the 3 dots in the righthand corner → Plugins – OR – Use keyboard shortcut Esc t p
  2. Go to the Marketplace tab and search for Tidy Blocks → Click Install

Load plugin manually

  1. Download the latest release of the plugin (e.g logseq-tidy-blocks-plugin-v.1.0.0.zip) from Github
  2. Unzip the file
  3. Navigate to plugins (Click the 3 dots → Plugins – OR – Use keyboard shortcut Esc t p) → Load unpacked plugin → Select the folder of the unzipped file

License

MIT

Credits

About

a Logseq plugin to remove whitespace and line breaks and hide block properties to keep blocks nice and tidy

Topics

Resources

License

Stars

Watchers

Forks