dot

packages and services management
Log | Files | Refs | README

commit 895f2526cbaa7cf45dda1d3fb21f44f2be30322b
parent 1b14564d833c590ebfedcc755824fbeec29a7896
Author: Josuah Demangeon <mail@josuah.net>
Date:   Mon, 25 Dec 2017 00:38:46 +0100

agenda fromat man page

Diffstat:
Mbin/curl-rfc | 2+-
Aman/agenda.5 | 86+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Mpack/dvtm/config.h | 2+-
3 files changed, 88 insertions(+), 2 deletions(-)

diff --git a/bin/curl-rfc b/bin/curl-rfc @@ -1,2 +1,2 @@ #!/bin/sh -curl -L "http://www.ietf.org/rfc/rfc$2".txt | $PAGER +curl -L "http://www.ietf.org/rfc/rfc$1".txt | $PAGER diff --git a/man/agenda.5 b/man/agenda.5 @@ -0,0 +1,86 @@ +.Dd $Mdocdate: December 24 2017$ +.Dt AGENDA 5 +.Os +.Sh NAME +.Nm agenda +.Nd simple format for storing +.Xr agenda 1 +.Sh DESCRIPTION +The +.Nm +format is made to be edited easily with a text editor. +It is composed by a leading key character, a column +.Pq Ql \&: , +and a value. +If a key is used multiple times, the values are joined with spaces: +.Bd -literal -offset 6n +K:value1 +K:value2 +.Ed +.Pp +is equivalent to +.Bd -literal -offset 6n +K:value1 value2 +.Ed +.Pp +The key character is one of: +.Bl -tag -width 6n +.It Ql B +Beginning of the event as an UNIX timestamp, seconds since Jan 1, 1970 in UTC +timezone. +.It Ql E +End of the event with the same format as +.Ql B , +.It Ql S +Summary, a single line description, a title. +.It Ql C +Category, one or multiple keywords to group related events. +.It Ql L +Location at which the event takes place, such as an address. +.It Ql D +Description, a longer text with all the details if needed. +.El +.Pp +An event is composed of at least a +.Ql B +(first), +.Ql E +and +.Ql S +fields, with the others optionals. +Events are terminated by +.Ql \&: +alone on a line. +.Sh EXAMPLES +Complete formatted event: +.Bd -literal -offset 6n +B:1514465100 +E:1514466900 +S:Why Do We Anthropomorphize Computers?... - Marloes de Valk +C:Art & Culture +L:Saal Borg - Exhibiton Grounds Messeeallee 04356 Leipzig, Germany +D:Waiting for the technological rapture in the church of big data. +D:The paralysing effect of hiding the human hand in software +D:through anthropomorphising computers and dehumanising ourselves. +: +.Ed +.Pp +Multiple minimal events: +.Bd -literal -offset 6n +B:1514009000 +E:1514010000 +S:Breakfast +: +B:1514025700 +E:1514029300 +S:Lunch +: +B:1514053300 +E:1514057700 +S:Dinner +: +.Ed +.Sh STANDARDS +There is no standard for this format besides this man page. +.Sh AUTHORS +.An Josuah Demangeon Aq Mt mail@josuah.net diff --git a/pack/dvtm/config.h b/pack/dvtm/config.h @@ -61,7 +61,7 @@ static const ColorRule colorrules[] = { /* --- tags ------------------------------------------------------------------*/ -const char tags[][8] = { "1", "2", "3", "4 mail", "5 irc", "6 music" }; +const char tags[][8] = { "1", "2", "3", "4:mail", "5:irc", "6:music" }; /* curses attributes for the currently selected tags */ #define TAG_SEL (COLOR(DEFAULT) | A_REVERSE)