Skip to content

A SiYuan plugin that provide you the capability to fully modify the doctree

License

Notifications You must be signed in to change notification settings

zxkmm/siyuan_doctree_compress

Repository files navigation

Document Tree Compression

Features

  • Custom indentation of (sub)document items in the document tree
  • Customization of whether to hide document item icons in the document tree
  • Customization of the font size of document items in the document tree
  • Fluid layout of document tree items: Temporarily remove indentation when the mouse hovers over, to avoid difficulty in seeing or clicking on titles in multi-level subdirectories

What is Flow Layout

  • When browsing a document tree with multiple levels of subdocuments, you may encounter situations where you cannot click on them due to excessive indentation, as shown in the image below.

disabled_ldbj

This makes it difficult or even impossible to click on multi-level subdirectories.

  • Flow layout allows the temporary reduction of indentation to the left position when hovering over a subdirectory item, making it easier for you to view titles and click into documents. After you move your mouse away, the indentation will be restored, so it does not affect your ability to differentiate subdirectories. As shown in the image below:

enabled_ldbj

  • Furthermore, since flow layout keeps the contents of each column fixed at the same position, you can even perform blind operations once you get used to it, without having to align and click on icons, as shown in the image below:

static_area

0.3.0

  • add vscode style doctree front line
  • add hide doctree icon label
  • add hide doctree item content
  • add doctree item seperator
  • add disable icon click but keep icon
  • add line height setting

0.3.4

  • notebook outline support tight mode
  • notebook outline support dark/ night theme
  • fix fetching null in setting dialog
  • fix unexpected console print

0.3.6

  • support multiple color for outline

0.3.7

  • add multiple front line style

0.3.8

  • add four styles for flow layout

Links

Credit

@TCOTC (in b3log)

Declaration

  • This plugin is fully open source under the MIT license, does not have internet access, and does not have the ability to fetch and inject malicious code from a remote source.

Additional Attachment to MIT License

You are free to use the code in this repository, regardless of whether it's closed source or not, or whether it's part of paid software or not. However, I have incorporated these additional requests into the license of this repository. If you use the code, design, text, algorithms, or anything else from this repository, you must include my username "zxkmm" and the link to this repository in three places:

  1. In the code comments.
  2. In the settings interface related to my code.
  3. On the 'About' page of your software/website/and or any other format of computer production.

About

A SiYuan plugin that provide you the capability to fully modify the doctree

Resources

License

Stars

Watchers

Forks

Packages

No packages published