Skip to content

emptylight370/sy-format-helper

Repository files navigation

中文

GitHub Release Date GitHub Release GitHub Downloads (all assets, latest releases) GitHub Repo stars

Format Helper

Functions

  • Remove all whitespace in paragraph
  • Keep only one blank space in a paragraph
  • Add whitespace before and after number and English char(similar with Optimize typography)
  • All chars toUpperCase and toLowerCase
  • TODO(such as process a document)
  • TODO(such as format code block)(I want to do but I may not be able to)

Notice

Actions may result in unexpected changes. Currently, you can undo the previous operation by using the undo key.

Warning❗:

  • Only the listed features are a little more stable, and the features not listed in the documentation do not guarantee data integrity even if they have an entry.
  • Be sure to back up your data, or save your content in a timely manner. Mishandling may lead to data loss, although it can be retracted, please use it with caution.

Because of the duplication of functions, it is recommended to use the plugin "Text Process". Enable by download package.zip to workspace/plugins folder.

How to use

Select a block, open the block menu, find the format assistant in the plugin menu, and select the function you want to use.
Wait a minute to refresh the layout, if your change doesn't loaded, you should refresh the layout manually(F5).

Processable block

  • paragraph
  • set format paragraph
  • heading
  • blockquote
  • tag(the whitespace between two tag will be remove, so two tags will combine together, please use any not whitespace char to divide them)
  • link
  • block reference
  • list
  • super block

Update Logs

  • v0.3.1
    • Add toUpperCase and toLowerCase functions
    • Remove from bazaar
  • v0.3.0
    • Change to plugin API to update block
    • Fix withdraw failure issue
  • v0.2.5
    • Fixed an issue where tags were accidentally handled

Thanks

Repo Author Content LICENSE
None player Reply None
None Achuan-2 Reply None
None Frostime PLugin Development Quick Start None
SiYuan API SiYuan Developers SiYuan API AGPL3.0
Transfer refs Frostime The way to contact SiYuan API MIT