Entry handling¶
Note
The documentation in this section is aimed at people wishing to contribute
to histofile
, and can be skipped if you are simply using the tool from
the command line.
-
wrap_entry
(text, width=72, initial_indent="", subsequent_indent=initial_indent)¶ Wrap text for output.
Parameters: - text – Text to format
- width – Width of formatted text
- initial_indent – String to indent first line with
- subsequent_indent – String to indent all but the first line with
Returns: Wrapped text
-
find_entries
(path)¶ List valid history entries.
Parameters: path – Path to search Returns: Matching entries
-
name_to_time
(f)¶ Read time from filename
Parameters: f – Filename to scan Returns: ISO-8601 formatted date string