Emanuele Torre

Results 211 comments of Emanuele Torre

RE: @olorin37 > 2. `lhs ?? rhs` should return `rhs` only if `lhs == null`. (On the side: I understand `empty` is not actual value but the way to indicate...

> > @nicowilliams `?=` is NOT an option. `foo?=bar` is valid jq. > > I agree, but I think you meant to address that to @wader :) @nicowilliams oops :smile:

@olorin37 `.foo?` is a shorthand for `(try .foo)`/`(try .foo catch empty)`, it returns `.foo` if the input is an object, or null, but instead of throwing an error if the...

What are we supposed to implement? I guess we could add a `resolverefs/0` function that resolves JSON References, but... Afaict, a [JSON Reference](https://datatracker.ietf.org/doc/html/draft-pbryan-zyp-json-ref-03) is an object with only a `$ref`...

This predated `as $foo` I think

Someone asked about this on IRC a while ago. A while even earlier, I happened to have written this `jq` function that given a value, it formats it to JSON...

@nicowilliams You could easily implement that adapting my code as... ```jq def tocompactjson(p; $n): [ canonicalize_path(path(p)) ] as $paths | def _tocompactjson($l; $path): ($l * $n * " " //...

`sxhkd` is not the right program for this kind of stuff. It is meant to be used to run shell commands when you press a key combination, not to remap...

> Is there a way to make sxhkd just show the command the way it has it parsed, without actually executing it so I can check what the output is?...

One way is to use: ``` :bind pp spawn -u /bin/bash -c 'printf ":open -- %s\\n" "${1//"${IFS#??}"}" > "$QUTE_FIFO"' _ {clipboard} ``` Probably easier to read if you put it...