From 345dd0930b1e20536ecf65c3e7647b59007badff Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Wed, 22 Jan 2020 11:08:40 -0800 Subject: [PATCH] doc/Factoids.md: improvements --- doc/Factoids.md | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/doc/Factoids.md b/doc/Factoids.md index a89341f9..75bea356 100644 --- a/doc/Factoids.md +++ b/doc/Factoids.md @@ -531,13 +531,21 @@ If three arguments are given, the factoid is renamed in the source channel. If ### factundo To revert to an older revision, use the `factundo` command. You can repeatedly undo a factoid until there are no more undos remaining. +You can also list all revisions and then directly jump to a specific revision. -Usage: `factundo [channel] ` +Usage: `factundo [-l [N]] [-r ] [channel] ` + +* `-l [N]` list undo history, optionally starting from `N` +* `-r ` jump to revision `N` ### factredo To revert to a newer revision, use the `factredo` command. You can repeatedly redo a factoid until there are no more redos available. +You can also list all revisions and then directly jump to a specific revision. -Usage: `factredo [channel] ` +Usage: `factredo [-l [N]] [-r ] [channel] ` + +* `-l [N]` list undo history, optionally starting from `N` +* `-r ` jump to revision `N` ## Factoid Metadata ### factset @@ -606,7 +614,9 @@ To get information about a factoid, such as who submitted it and when, use the ` Usage: `factinfo [channel] ` !factinfo ##c NULL - NULL: Factoid submitted by Major-Willard for all channels on Sat Jan 1 16:17:42 2005 [5 years and 178 days ago], referenced 39 times (last by pragma- on Sun Jun 27 04:40:32 2010 [5 seconds ago]) + NULL: Factoid submitted by Major-Willard for all channels + on Sat Jan 1 16:17:42 2005 [5 years and 178 days ago], + referenced 39 times (last by pragma- on Sun Jun 27 04:40:32 2010 [5 seconds ago]) ### factlog To see a factoid's changelog history, use the `factlog` command. @@ -631,7 +641,10 @@ Usage: `factlog [-h] [-t] [channel] ` !factlog hi - [3m ago] pragma- created: /say Hi! [5m ago] pragma- deleted [8m ago] pragma- changed to /say Hello there, $nick! [10m ago] pragma- created: /say Hello there! + [3m ago] pragma- created: /say Hi! + [5m ago] pragma- deleted + [8m ago] pragma- changed to /say Hello there, $nick! + [10m ago] pragma- created: /say Hello there! ### factset To view [factoid metadata](#factoid-metadata-list), such as owner, rate-limit, etc, use the `factset` command.