summary refs log tree commit diff
path: root/litterbox.1
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-01-03 18:24:10 -0500
committerJune McEnroe <june@causal.agency>2020-01-03 18:24:10 -0500
commit1f058f6aa073bee1b4de440d9371842472b0c4c0 (patch)
treea9d6e19a48d77864dbae66e5376ac3ce56c8c50c /litterbox.1
parentAdd install and uninstall targets (diff)
downloadlitterbox-1f058f6aa073bee1b4de440d9371842472b0c4c0.tar.gz
litterbox-1f058f6aa073bee1b4de440d9371842472b0c4c0.zip
Improve litterbox(1) documentation
Diffstat (limited to '')
-rw-r--r--litterbox.164
1 files changed, 43 insertions, 21 deletions
diff --git a/litterbox.1 b/litterbox.1
index 6910713..a5b287f 100644
--- a/litterbox.1
+++ b/litterbox.1
@@ -1,4 +1,4 @@
-.Dd December 30, 2019
+.Dd January 3, 2020
 .Dt LITTERBOX 1
 .Os
 .
@@ -19,8 +19,8 @@
 .Op Fl w Ar pass
 .
 .Nm
-.Fl i | m
 .Op Fl d Ar path
+.Fl i | m
 .
 .Sh DESCRIPTION
 The
@@ -28,20 +28,33 @@ The
 daemon logs IRC activity to a database
 which may be queried with
 .Xr scoop 1 .
+It connects to IRC over TLS.
+Messages, notices, joins, parts, quits, kicks,
+nick changes and topic changes
+are recorded in the database.
+The contents of messages are indexed for full-text search.
+.
+.Pp
+The database must first be initialized with
+.Fl i .
+If the database format has changed,
+an existing database can be migrated with
+.Fl m .
 .
 .Pp
 The arguments are as follows:
 .
 .Bl -tag -width "-h host"
 .It Fl Q
-Enable public search query interface.
+Enable the public search query interface.
 This allows anyone to perform searches
 in private messages to
 .Nm .
-Search results are limited
-to channels on the current network.
+Search results are limited to channels
+on the current network.
 .
 .Pp
+Searches use the full-text search index.
 The searchable columns are
 .Li channel ,
 .Li nick ,
@@ -49,15 +62,13 @@ The searchable columns are
 .Li target ,
 .Li message .
 For search query syntax, see
-.Lk https://www.sqlite.org/fts5.html#full_text_query_syntax
+.Aq Lk https://www.sqlite.org/fts5.html#full_text_query_syntax .
 .
 .It Fl d Ar path
 Set the path to the database file.
-The database must be initialized with
-.Fl i .
-See
-.Sx FILES
-for the default path.
+The possible default paths
+are documented in
+.Sx FILES .
 .
 .It Fl h Ar host
 Connect to
@@ -71,15 +82,16 @@ Join the comma-separated list of channels
 .Ar join .
 .
 .It Fl l Ar limit
-Limit the number of results sent by the
+Limit the number of results
+in the search query interface
+enabled by
 .Fl Q
 or
-.Fl q
-search query interface.
+.Fl q .
 The default limit is 10.
 .
 .It Fl m
-Migrate the database to the latest version.
+Migrate the database to the latest format.
 .
 .It Fl n Ar nick
 Set the nickname to
@@ -93,15 +105,20 @@ Connect to
 The default port is 6697.
 .
 .It Fl q
-Enable private search query interface.
+Enable the private search query interface.
 This allows search queries in private messages to
 .Nm
-from itself,
-which is likely only useful when connected to
-.Xr pounce 1 .
+only from itself.
+This is intended for use with
+.Nm
+connected to
+.Xr pounce 1 ,
+allowing the user to message themselves
+to perform searches.
 Search results are limited to the current network.
 .
 .Pp
+Searches use the full-text search index.
 The searchable columns are
 .Li channel ,
 .Li query ,
@@ -110,11 +127,16 @@ The searchable columns are
 .Li target ,
 .Li message .
 For search query syntax, see
-.Lk https://www.sqlite.org/fts5.html#full_text_query_syntax
+.Aq Lk https://www.sqlite.org/fts5.html#full_text_query_syntax .
 .
 .It Fl u Ar user
 Set the username to
 .Ar user .
+If connecting to
+.Xr pounce 1 ,
+the username should begin with hyphen
+.Ql -
+to prevent affecting its away status.
 The default username is the same as the nickname.
 .
 .It Fl v
@@ -139,7 +161,7 @@ followed by the colon-separated list of paths
 usually
 .Pa /usr/local/share:/usr/share .
 .It Pa ~/.local/share/litterbox/litterbox.sqlite
-The most likely path to the database file.
+The most likely default path to the database file.
 .El
 .
 .Sh SEE ALSO
/tr> 2021-09-13Swap-remove tags as they're foundJune McEnroe This makes it even faster. From ~1s on a sqlite3.c amalgamation to ~0.85s. 2021-09-12Replace htagml regex with strncmpJune McEnroe Since ctags only ever produces regular expressions of the form /^re$/ or /^re/ with no other special characters, instead unescape the pattern and simply use strncmp. Running on a sqlite3.c amalgamation, the regex version takes ~37s while the strncmp version takes ~1s, producing identical output. Big win! 2021-09-11Also defer printing comment for lone close-parensJune McEnroe 2021-09-10Publish "git-comment"June McEnroe 2021-09-10Add git comment --pretty optionJune McEnroe 2021-09-08Defer printing comment if line is blank or closing braceJune McEnroe This fixes badly indented comments. 2021-09-08Up default min-repeat to 30 linesJune McEnroe 2021-09-08Handle dirty lines in git-commentJune McEnroe 2021-09-08Document and install git-commentJune McEnroe 2021-09-08Add repeat and all options to git-commentJune McEnroe 2021-09-08Add group threshold to git-commentJune McEnroe