-
-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(concealer)!: simpler config for ordered list icon & multichar icon for unordered list #1179
feat(concealer)!: simpler config for ordered list icon & multichar icon for unordered list #1179
Conversation
…port inline icon for unordered list
…ered icon pattern
158f918
to
b265c56
Compare
Are we sure doing calculations like these aren't performance intensive? If it's still fast then I think we can go with this configuration approach, sure 👍
|
No, it calculates and memoizes the format string only once.
Done. |
…on for unordered list (nvim-neorg#1179) resolve nvim-neorg#569
One can now configure the icon of ordered lists simply with a sample string that represents the iconf for index 1. The icons for the rest of indices will be calculated automatically.
For example:
the icons will be
item 1.
,item 2.
, ... for level 1[0]
,[1]
, ... for level 2A.
,B.
, ...,Z.
,AA.
,AB.
, ... for level 3a.
,b.
, ...,z.
,aa.
,ab.
, ... for level 4§ 1)
,§ 2)
, ... for level 5I.
,II.
,III.
,IV.
,V.
, ...,MMMCMXCIX.
for level 6i.
,ii.
,iii.
,iv.
,v.
, ...,mmmcmxcix.
for level 7⒈
,⒉
,⒊
, ...,⒛
for level 8===EDIT===
Now unorderd list also supports multichar inline icon just as ordered list, for example:
This emulates indentation=2 for the first four levels of unordered list:
So this PR should partially resolve #569.