Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

neuron query should include full path to the zettel #107

Closed
srid opened this issue Apr 16, 2020 · 0 comments
Closed

neuron query should include full path to the zettel #107

srid opened this issue Apr 16, 2020 · 0 comments
Assignees
Labels
good first issue Good for newcomers

Comments

@srid
Copy link
Owner

srid commented Apr 16, 2020

Add a "path" field to the JSON output containing the full path to the zettel.

Such that the following command:

neuron query -t purescript | jq -r '.zettels | .[] | .id' | xargs -n 1 printf "$HOME/zettelkasten/%s.md\n" | xargs -n 1 bat

can instead be written (without the prior knowledge of the location of the zettelkasten) as:

neuron query -t purescript | jq -r '.zettels | .[] | .path' | xargs -n 1 bat
@srid srid added the good first issue Good for newcomers label Apr 16, 2020
@srid srid self-assigned this Apr 16, 2020
@srid srid closed this as completed in b7a7a00 Apr 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant