commit 1aebd93f5f1cc140aec6195a4a259737ee36e920
parent 2b1201788f43de2647196d154d069578fb6d588e
Author: Balduin Dettling <balduindettling@gmail.com>
Date: Tue, 27 Dec 2016 19:28:12 +0100
Added a simple man page
Diffstat:
A | diary.1 | | | 60 | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
1 file changed, 60 insertions(+), 0 deletions(-)
diff --git a/diary.1 b/diary.1
@@ -0,0 +1,60 @@
+.TH DIARY 1
+.SH NAME
+diary - Simple text-based diary program
+
+.SH SYNOPSIS
+.B diary
+[\fIDIRECTORY\fR]
+.br
+
+.SH DESCRIPTION
+.B diary
+is a simple text-based program for managing diary entries.
+
+.SH ENVIRONMENT
+
+.IP DIARY_DIR
+If this variable is set to a directory that can be opened,
+.B diary
+will use it to store diary files. Diary files are simple text files named
+after their date, formatted like YYYY-MM-DD. All other files are ignored.
+
+
+.SH ARGUMENTS
+
+If the argument \fIDIRECTORY\fR is given, diary files are read from and
+stored to that directory, ignoring the DIARY_DIR environment variable.
+
+.SH NAVIGATION
+Navigation is done using the following vim-inspired keyboard shortcuts:
+
+.TS
+tab(|);
+l l.
+Key(s) | Action
+====== | ======
+e, enter | edit current entry
+d, x | delete current entry
+q | quit the program
+
+k, up | go backward by 1 week
+j, down | go forward by 1 week
+h, left | go backward by 1 day
+l, right | go forward by 1 day
+J | go forward by 1 month
+K | go backward by 1 month
+
+N | go to the previous diary entry
+n | go to the next diary entry
+g | go to the first date
+G | go to the last date
+
+t | jump to today
+s | jump to specific day
+.TE
+
+
+
+.SH DEVELOPMENT
+All source code is available in this github repository:
+<https://github.com/in0rdr/diary/>. Contributions are always welcome!