Replies: 1 comment 4 replies
-
I too kinda wanted this but the more I thought about it, the more the potential conflicts around comment parsing seemed like a bigger and bigger footgun. For example, I really don’t want to require a space after |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like to be able to express a path-like string without quotes. I run into them a lot, and I think it would make it more CLI-like, assuming the "xml-like semantics that looks like you're invoking a bunch of CLI commands" description on kdl.dev is a design goal.
Sorry to bring this up so close to the v2 release, just wanted to mention it in case it's not too late to change things. After writing this all out, it seems like it might be more added complexity than it's worth, but I wanted to at least put it out there for discussion since I think it's a pretty common case.
Examples
spawn-at-startup "/home/jaxter/.config/niri/bg.sh"
from my niri configTwo approaches
/
from the disallowed characters of theidentifier-char
ruleword//word
, which is a little unintuitive, givenword //word
would treat the second half as a commentglob/*.ext
, but not/*.ext
glob/*.ext
).identifier-char
s, and if I'm correctly understanding how it works, it wouldn't be as simple as taking the existing lineidentifier-char := unicode - unicode-space - newline - [\\/(){};\[\]"#=] - disallowed-literal-code-points - equals-sign
and replacing the disallowed characters with... - [\\(){};\[\]"#=] - '/' [/-*] ...
, instead requiring that whole section of the spec to be rewritten, and probably most implementations too (sidenote: I think theequals-sign
here is a mistake, probably a relic from when there were multiple kinds of equals signs).Beta Was this translation helpful? Give feedback.
All reactions