A Logseq plugin that allows you to delete specific strings from all blocks in the current page and optimize Chinese-English text formatting.
- 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
- Right-click on any block in your page
- Select "🚮清除页面所有的#template" from the context menu
- Enter the string you want to delete when prompted
- The plugin will automatically remove all occurrences of the specified string from all blocks in the current page
You can format text in three ways:
- Right-click on any block containing Chinese and English text
- Select "📝优化页面中英文排版" from the context menu
- Place your cursor in the block you want to format
- Press
Ctrl+Shift+Bto automatically format the text
- Click the toolbar button with the three horizontal lines icon at the top of the page
- The plugin will automatically format all blocks in the current page
- Clone this repository
- Run
npm installto install dependencies - Run
npm run buildto build the plugin - In Logseq Desktop client, go to Settings > Advanced > Load unpacked plugin
- Select the
distfolder of this project
npm run build- Build the pluginnpm run start- Start development mode with hot reload
- @logseq/libs - Logseq plugin API
- Parcel - Build tool
- TypeScript - Type checking
MIT