User avatar
princess pancake butterfly_neofox_lesbian @natty@astolfo.social
1y
I have regrets about KDL
:pride_heart@gaysex.cloud:1
1
0
1
1
User avatar
pancakes nonbinary_cat @pancakes@meow.company
1y
@natty what's up with kdl? i've only used it with niri
1
0
1
0

User avatar
princess pancake butterfly_neofox_lesbian @natty@astolfo.social
1y
@pancakes Parsing the v2 syntax is annoyingly tedious since the only (reference implementation) library doesn't do mapping to objects and we gotta traverse the XML-like structure ourselves neofox_googly_shocked
:pride_heart@gaysex.cloud:1
1
0
1
1
User avatar
sodiboo pride_heart @sodiboo@gaysex.cloud
1y
@natty @pancakes the reference implementation is kdl-rs, right? can't you use it to convert into a KDLv1 document and then reparse it with something like knuffel/knus?
1
0
2
0
User avatar
princess pancake butterfly_neofox_lesbian @natty@astolfo.social
1y
@sodiboo @pancakes saw you in the niri commits neofox_floof

Yeah we could do that but is some Advanced Jank

Plus our KDL config looks quite literally like CSS so we'd be writing some of the parse impls manually either way
:pride_heart@gaysex.cloud:1
1
0
1
1
User avatar
sodiboo pride_heart @sodiboo@gaysex.cloud
1y
@natty @pancakes I don't think it's Advanced Jank. I first saw this recommended by a core kdl maintainer github.com/YaLTeR/niri/discussions/887
0
0
0
0