Speed up listing notes and improve preview formatting
This commit is contained in:
parent
8e1d3e017c
commit
76038af802
1 changed files with 2 additions and 2 deletions
4
notes.sh
4
notes.sh
|
@ -115,7 +115,7 @@ list_entries() {
|
||||||
}\
|
}\
|
||||||
"
|
"
|
||||||
|
|
||||||
grep -r -h "^Subject:\|^X-Note-Id:\|^X-Date:" "$BASEDIR" | awk "$FILTER" | sort | cut -d " " -f "2-"
|
grep -r -m 3 -h "^Subject:\|^X-Note-Id:\|^X-Date:" "$BASEDIR" | awk "$FILTER" | sort | cut -d " " -f "2-"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -216,7 +216,7 @@ while (( "$#" )); do
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
NOTE_ID="$(echo $2 | cut -d " " -f 1)"
|
NOTE_ID="$(echo $2 | cut -d " " -f 1)"
|
||||||
export_note "$NOTE_ID" "" | fmt -w "$FZF_PREVIEW_COLUMNS"
|
export_note "$NOTE_ID" "" | fmt -s -w "$FZF_PREVIEW_COLUMNS"
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
-g|--graph)
|
-g|--graph)
|
||||||
|
|
Loading…
Reference in a new issue