This commit is contained in:
parent
fcfdc8a580
commit
a4e207ed74
1 changed files with 2 additions and 2 deletions
|
@ -16,13 +16,13 @@ delete_zet() {
|
||||||
}
|
}
|
||||||
|
|
||||||
edit_zet() {
|
edit_zet() {
|
||||||
|
query="$1"
|
||||||
|
|
||||||
file="${ZET_DIR}/${query}/index.adoc"
|
file="${ZET_DIR}/${query}/index.adoc"
|
||||||
|
|
||||||
if [[ -f "$file" ]]; then
|
if [[ -f "$file" ]]; then
|
||||||
"$EDITOR" "$file"
|
"$EDITOR" "$file"
|
||||||
else
|
else
|
||||||
query="$1"
|
|
||||||
|
|
||||||
result="$(search_zets "$query")"
|
result="$(search_zets "$query")"
|
||||||
result_count="$(echo "$result" | grep -c '^')"
|
result_count="$(echo "$result" | grep -c '^')"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue