fix: function name typo
This commit is contained in:
8
agenda
8
agenda
@@ -140,12 +140,12 @@ __edit() {
|
||||
|
||||
local base ext slug file
|
||||
if [ "$opt_b" = "yes" ]; then
|
||||
base="0000-$(___slugify "$*")"
|
||||
base="0000-$(__slugify "$*")"
|
||||
else
|
||||
base=$(date -d "$*" +%F)
|
||||
fi
|
||||
ext=$opt_e
|
||||
slug=$(___slugify "$opt_t")
|
||||
slug=$(__slugify "$opt_t")
|
||||
file="$AGENDA_DIR/$slug/$base.$ext"
|
||||
|
||||
# Existing files may overwrite the `-e` option.
|
||||
@@ -234,7 +234,7 @@ __list() {
|
||||
date=$(date -d "$*" +%F)
|
||||
until=$(date -d "$opt_u" +%F)
|
||||
if [ -n "$opt_t" ]; then
|
||||
slug=$(slugify "$opt_t")
|
||||
slug=$(__slugify "$opt_t")
|
||||
dir="$AGENDA_DIR/$slug"
|
||||
else
|
||||
dir="$AGENDA_DIR"
|
||||
@@ -323,7 +323,7 @@ __agenda_create() {
|
||||
}
|
||||
|
||||
# https://stackoverflow.com/a/49035906
|
||||
___slugify() {
|
||||
__slugify() {
|
||||
echo "$1" \
|
||||
| iconv -c -t ascii//TRANSLIT \
|
||||
| sed -E "s/[~^]+//g" \
|
||||
|
||||
Reference in New Issue
Block a user