reading-list

command
v0.29.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Workflow reading-list is a more advanced example of fuzzy filtering.

It contains a custom implementation of fuzzy.Sortable and its own filtering function to keep books sorted by unread/unpublished/read status.

Regular fuzzy sorting only considers match quality, so with the query "kingkiller", the Kingkiller Chronicle series would be sorted based on where the term "kingkiller" appears in the title, i.e. shortest title first:

The Doors of Stone (The Kingkiller Chronicle, #3) [unpublished]
The Wise Man's Fear (The Kingkiller Chronicle, #2) [unread]
The Name of the Wind (The Kingkiller Chronicle, #1) [read]

The custom implementation sorts by status then match quality, thus keeping unread books before unpublished and read ones:

The Wise Man's Fear (The Kingkiller Chronicle, #2) [unread]
The Doors of Stone (The Kingkiller Chronicle, #3) [unpublished]
The Name of the Wind (The Kingkiller Chronicle, #1) [read]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL