Giter VIP home page Giter VIP logo

logseq-tidy-blocks-plugin's Introduction

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 โ†’ Settings โ†’ Advanced โ†’ 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

logseq-tidy-blocks-plugin's People

Contributors

vyleung avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

gijigae

logseq-tidy-blocks-plugin's Issues

Feature request: format code

Maybe by letting the user specify a binary for an extension, so you won't have to support all the programming language in the world.

Feature request: remove empty blocks

Hi!
I have the habit of creating a lot of empty space by pressing enter repeatedly and I hoped this plugin would help me tidy up my notes. But since the whitespace then is in the form of a bunch of empty blocks, sadly this plugin does nothing.

Would it be possible to add the option of also removing empty blocks?

Feature request: Adding some text fixing features

First thanks so much for making this plug in. It helped me a lot!

I'd like to request a feature:

A pain point for using pdf highlighter in Logseq is that the words at the end of a line stick together and don't have spaces. I usually have to manually edit every single word. Someone has built a tool to fix this but it's only available in Mac. I don't know if you could integrate this into your plugin?

Line break removal not working

The line break removal apparently is not working. When I copied text from pdf that has line breaks the plug in doesn't remove these.

Testing with a paragraph using Shift+Enter and the plug in also doesn't work.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.