make selection and titles a little nicer

master
Brian Hicks 2020-05-27 23:09:18 -05:00
parent ce4571f0e4
commit efb90f6d07
2 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,5 @@
#!/usr/bin/env bash
set -uo pipefail # no -e!
zettel-titles | fzf --print-query --query "${@:-}" | tail -n 1
QUERY="${@:-}"
zettel-titles | fzf --delimiter : --with-nth 2 --print-query --query "$QUERY" | tail -n 1 | cut -d : -f 1

View File

@ -1,3 +1,3 @@
#!/usr/bin/env bash
set -euo pipefail
awk '{ printf "%s:", FILENAME; print; nextfile }' zettels/*
awk '{ printf "%s:", FILENAME; print; nextfile }' zettels/* | sed -E 's/:# ?/:/g'