commit 1e22fc437762c325b8b08faa974981dc1b93362a
parent 5ed6746f83511fc736afcf87e00c105ebd09b7f1
Author: Andreas Gruhler <agruhl@gmx.ch>
Date: Mon, 6 Dec 2021 23:30:47 +0100
amend --fmt-cmd examples
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
@@ -121,7 +121,7 @@ The file `${XDG_CONFIG_HOME:-~/.config}/diary/diary.cfg` should adhere to a basi
| `--dir`, `-d`, or first non-option argument | `dir` | ~/diary | n/a | Diary directory. Path that holds the journal text files. If unset, defaults to environment variable `$DIARY_DIR`.|
| `--editor` or `-e` | `editor` | vim | (empty) | Editor to open journal files with. If unset, defaults to environment variable `$EDITOR`. If no editor is provided, the diary is opened read-only. |
| `--fmt` or `-f` | `fmt` | %d_%b_%y | %Y-%m-%d | Date format and file name for the files inside the `dir`. For the format specifiers, see [`man strftime`](https://man7.org/linux/man-pages/man3/strftime.3.html). Be careful: If you change this, you might no longer find your existing diary entries, because the diary assumes to find the journal files under another file name. Hence, a change in FMT shows an empty diary, at first. Rename all files in the DIARY_DIR to migrate to a new FMT. |
-| `--fmt-cmd` or `-F` | `fmt_cmd` | `fmt -w75 -s` | (empty) | Journal entries are formatted with this command. If not set (default), the characters are printed to the preview screen character by character (without word wrap). For example, to enable word wrap after 75 characters, use "fmt -s" as FMT_CMD. |
+| `--fmt-cmd` or `-F` | `fmt_cmd` | `fmt -w75 -s` or `mdcat -c` | (empty) | Journal entries are formatted with this command. If not set (default), the characters are printed to the preview screen character by character (without word wrap). For example, to enable word wrap after 75 characters, use "fmt -s" as FMT_CMD. |
| `--range` or `-r` | `range` | 10 | 1 | Number of years to show before/after todays date |
| `--weekday` or `-w` | `weekday` | 0 | 1 | First weekday, `7` = Sunday, `1` = Monday, ..., `6` = Saturday. Use `7` (or `0`) to display week beginning at Sunday ("S-M-T-W-T-F-S"), or `1` for "M-T-W-T-F-S-S". If `glibc` is installed, the first day of the week is derived from the current locale setting (`$LANG`, see `man locale`). Without `glibc`, the first weekday defaults to 1 (Monday), unless specified otherwise with this option. |
| n/a | `google_calendar` | diary | (empty) | Displayname of Google Calendar for [CalDAV sync](#CalDAV-sync) |
diff --git a/man1/diary.1 b/man1/diary.1
@@ -37,7 +37,7 @@ Rename all files in the DIARY_DIR to migrate to a new FMT.
Journal entries are formatted with this command. If not set (default),
the characters are printed to the preview screen character by character
(without word wrap). For example, to enable word wrap after 75 characters,
-use "fmt -s" as FMT_CMD.
+use "fmt -s" as FMT_CMD. To format markdown, use "mdcat -c" or similar.
.TP
\fB\-r\fR, \fB\-\-range\fR=\fI\,RANGE\/\fR
RANGE is the number of years to show before/after todays date. Defaults to 1 year.