Querying with JSON output

Use the query command to query your Zettelkasten and return the matches in JSON format.

# Returns all zettels
neuron query
# Returns zettels with the specified tag
neuron query -t science

You may also pass the same URI you use in Link Queries:

# Search using link URI
neuron query --uri="z:zettels?tag=science"

Use jq to extract needed information from the JSON output. For example, to extract only the IDs:

$ neuron query -t purescript | jq -r '.result | .[] | .zettelID'
2015302
2015303
2015304
2015305
$