6 ms·
This shell script: #!/bin/sh while true; do $EDITOR $NOTESDIR"$(ls -t $NOTESDIR | selecta --scrolloff --passthrough)" done It replicates the core interacti
by stijlist 9y ago
This shell script:
#!/bin/sh
while true; do
$EDITOR $NOTESDIR"$(ls -t $NOTESDIR | selecta --scrolloff --passthrough)"
done
It replicates the core interaction model of Notational Velocity: type to fuzzy-filter the list of notes (sorted by MRU) by filename, enter to edit the notes, and quit the editor to end up back in the list of notes.
I forked selecta to add those flags - --passthrough means that the text typed in to filter is emitted on stdout if it doesn't match anything. This way you create a note if it doesn't exist.
https://github.com/stijlist/bin/blob/master/nv https://github.com/stijlist/bin/blob/master/nv