Add searching by title to composite filters

* calibre-search.el (calibre-search-compose-title): New function.
  (calibre-search-compose): Add a menu entry for searching by title.

* etc/NEWS: Mention this fix.
This commit is contained in:
Kjartan Oli Agustsson 2023-12-12 10:58:23 +00:00
parent 9e532313c9
commit 6815074635
Signed by: kjartanoli
GPG Key ID: D7572FE3605EE6B0
2 changed files with 6 additions and 0 deletions

View File

@ -129,6 +129,7 @@ ARGS is the argument list of a transient command."
(setf calibre-search-composing-filter
(cons (vector ',(intern field) (,(intern (format "calibre-search-chose-%s" field)))) calibre-search-composing-filter))))
(calibre-search--composition-function "title")
(calibre-search--composition-function "author")
(calibre-search--composition-function "publisher")
(calibre-search--composition-function "tag")
@ -141,6 +142,7 @@ ARGS is the argument list of a transient command."
["Arguments"
("-e" "Exclude" "--exclude")]
["Compose"
("T" "Title" calibre-search-compose-title)
("a" "Author" calibre-search-compose-author)
("p" "Publisher" calibre-search-compose-publisher)
("t" "Tag" calibre-search-compose-tag)

View File

@ -8,6 +8,10 @@ Calibre.
* Changes in calibre.el 1.3.4
** Allow searching by title in composite filters
The filter composition interface lacked the ability to filter by
title.
** Fix a timestamp parsing bug on Windows
Some timestamps signalled errors when parsed on Windows.