ycnmhd / obsidian-lineage

Gingko-like interface in obsidian
MIT License
64 stars 6 forks source link

Convert or export to outline format #26

Closed imeed166 closed 2 weeks ago

imeed166 commented 1 month ago

Hi, thank you for your contribution.

I would like to know if it's possible to have the plugin work with a normal outline format. Ideally, it would be able to convert an existing outline to the plugin's format. Even better would be if the plugin could work with the outline format by default, so that when I toggle the normal file view, I would see an outline instead of the current format. This would help improve compatibility with Markdown.

Quorafind commented 1 month ago

If the developer permits, I would be able to contribute some work on this issue. But maybe it would be diffcult to control which mode should be apply to current view.

If parsing from outliner is available, maybe lineage have to add a type or other property to mark current file view mode (for example: lineage: section or lineage: outliner

ycnmhd commented 1 month ago

@Quorafind Absolutely, but please make sure to use the existing abstractions, and to add unit tests for functions that transform/mutate data (example1, example 2)

maybe lineage have to add a type or other property to mark

View type could be saved in settings.documents property

ycnmhd commented 2 weeks ago

Added in 0.6.0