Skip to content

A Logseq plugin that allows you to delete specific strings from all blocks in the current page and optimize Chinese-English text formatting.

Notifications You must be signed in to change notification settings

Moye/logseq-format-doc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logseq Delete String Plugin

A Logseq plugin that allows you to delete specific strings from all blocks in the current page and optimize Chinese-English text formatting.

Features

  • Delete a specific string from all blocks in the current page
  • Recursively process child blocks
  • Simple context menu integration
  • Optimize Chinese-English text formatting by adding spaces between them
  • Keyboard shortcut support (Ctrl+Shift+B) for quick formatting
  • Page button for one-click formatting of all blocks

Usage

Delete String Feature

  1. Right-click on any block in your page
  2. Select "🚮清除页面所有的#template" from the context menu
  3. Enter the string you want to delete when prompted
  4. The plugin will automatically remove all occurrences of the specified string from all blocks in the current page

Chinese-English Formatting Feature

You can format text in three ways:

Method 1: Context Menu

  1. Right-click on any block containing Chinese and English text
  2. Select "📝优化页面中英文排版" from the context menu

Method 2: Keyboard Shortcut

  1. Place your cursor in the block you want to format
  2. Press Ctrl+Shift+B to automatically format the text

Method 3: Page Button

  1. Click the toolbar button with the three horizontal lines icon at the top of the page
  2. The plugin will automatically format all blocks in the current page

Installation

  1. Clone this repository
  2. Run npm install to install dependencies
  3. Run npm run build to build the plugin
  4. In Logseq Desktop client, go to Settings > Advanced > Load unpacked plugin
  5. Select the dist folder of this project

Development

  • npm run build - Build the plugin
  • npm run start - Start development mode with hot reload

Dependencies

License

MIT

About

A Logseq plugin that allows you to delete specific strings from all blocks in the current page and optimize Chinese-English text formatting.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published