Browse Source

got something to work

main
Sam Hatfield 2 months ago
parent
commit
893b6dc28e
Signed by: sehqlr GPG Key ID: 6B1E0EDE1530CA2B
1 changed files with 11 additions and 1 deletions
  1. +11
    -1
      rc/neuron.kak

+ 11
- 1
rc/neuron.kak View File

@ -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