What is this useful for?
Announcing August! An Emmet-like language that produces JSON, TOML, or YAML, written in Rust
Submitted 1 year ago by yoavlavi@programming.dev to programming@programming.dev
https://github.com/yoav-lavi/august
Comments
Sibbo@sopuli.xyz 1 year ago
yoavlavi@programming.dev 1 year ago
Quickly creating or editing objects. The main target would be editor extensions, image a snippet that expands to an object on tab for instance
atheken@programming.dev 1 year ago
Interesting concept, just FYI, there’s a popular code grep ping tool called Silver Searcher, and it also uses
ag
- consider just usingaugust
to avoid ambiguity/collisions.diemechanist@programming.dev 1 year ago
Off-topic, but beacme of Google’s Carbon? People on Reddit created much hype like an year ago.
Andy@programming.dev 1 year ago
I wanted to try using yamlpath (
yaml-set
in particular) to recreate the first example, even though the usage model doesn’t quite match up. It’s a bit tedious because I don’t think you can do unrelated replacements in a single command:$ <<<'{}' yaml-set -g ignored.hello -a world | yaml-set -g tabwidth -a 2 -F dquote | yaml-set -g trailingComma -a all | yaml-set -g singleQuote -a true -F dquote | yaml-set -g semi -a true -F dquote | yaml-set -g printwidth -a 120 -F dquote | yaml-get -p .
Trying to make it neater with Zsh and (forbidden) use of
eval
:$ reps=(ignored.hello world tabwidth 2 trailingComma all singleQuote true semi true printwidth 120) cmd=() $ for k v ( ${(kv)reps} ) cmd+=(yaml-set -g $k -a $v -F dquote \|) $ <<<'{}' eval $cmd yaml-get -p .
j4k3@lemmy.world 1 year ago
[deleted]key@lemmy.keychat.org 1 year ago
zsh has completion built in. There’s zsh-autocomplete that’s maybe closer to what you’re thinking. I’m not aware of a term emu with special GUI for it beyond what your shell gives you.
beckerist@lemmy.world 1 year ago
Announcing [language]! A [language]-like language that produces [this language], [that language], or [another language]!
/s
Dalinar@lemmy.nz 1 year ago
Why does it being written in Rust? Do people think, wow I must use this because it’s written in Rust?
eager_eagle@lemmy.world 1 year ago
speed, probably