akosbalasko / akosbalasko/zoottelkeeper-obsidian-plugin

[Feature]: Custom List Styles

Đang mở
#18 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
TypeScript
Star
231
Fork
17
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

There is currently a limitation that only three 'List Styles' are possible.
What I suggest is the ability to define custom styles in the settings.

Most simply, I guess this could be done by replacing the dropdown with two text fields. One for a prefix and another for a suffix.
These variables would then replace the switch statement in `generateFormattedIndexItem`; used to return the completed element `prefix + '[[${path}]]' + suffix`.

The above worked for me, though, as a quick hack. There should probably remain the current option of choosing from the preset styles plus 'other' in the dropdown. Only if 'other' were chosen would the user then be prompted to give a custom prefix and suffix.

Even better would be to give a whole string that somehow delimited where the data (`[[${path}]]`) would be inserted.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.