Browse Source

got something to work

main
Sam Hatfield 6 months ago
parent
commit
893b6dc28e
Signed by: sehqlr GPG Key ID: 6B1E0EDE1530CA2B
  1. 12
      rc/neuron.kak

12
rc/neuron.kak

@ -27,7 +27,7 @@ define-command \
evaluate-commands %sh{
echo edit $(neuron new -d ~/zettelkasten)
}
}
}
define-command \
-docstring "follow zettel link to file" \
@ -40,6 +40,16 @@ define-command \
# neuron search -> find a zettel to open
# neuron query -> run a neuron query, open resulting JSON in new buffer
define-command \
-docstring "run neuron query and open JSON in new buffer" \
neuron-query %{
edit -scratch *neuron-query-results*
set-option buffer filetype json
set-register | %sh{
neuron query -d ~/zettelkasten | jq
}
execute-keys '%d"|P;'
}
# neuron rib -> run command in $directory

Loading…
Cancel
Save