Skip to content

rotate

Move entries to a dated archive file.

Usage

bash
doing rotate [OPTIONS]

Options

FlagDescription
--bool BOOL_OPBoolean operator for multiple filters (AND, OR, NOT)
--caseCase-sensitive search
--count COUNTNumber of entries to rotate
-x, --exactMatch search term exactly
-k, --keepKeep the original entry in its current section
--notNegate the search filter
--search SEARCHFilter entries by search term
-s, --section SECTIONSection to rotate from
--tag TAGFilter entries by tag
--before BEFOREOnly rotate entries before a given date
--val VALUEFilter by tag value

Examples

Rotate all entries older than 30 days:

bash
doing rotate --before "30 days ago"

Rotate entries from a specific section:

bash
doing rotate -s Currently --count 10

Rotate entries matching a tag:

bash
doing rotate --tag meeting --before "last week"

Released under the MIT License.