akosbalasko / akosbalasko/zoottelkeeper-obsidian-plugin

[Feature]: Custom List Styles

未关闭
#18 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement
主要语言
TypeScript
星标
231
派生
17
PR 合并指标
30 天内没有已合并 PR

描述

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.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。