make selection and titles a little nicer
parent
ce4571f0e4
commit
efb90f6d07
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
Reference in New Issue