From 1708f1c5d340714a866ccd2f7af1586551a4ded6 Mon Sep 17 00:00:00 2001 From: Rocco Rutte Date: Thu, 15 Nov 2007 11:22:11 +0100 Subject: [PATCH] Properly document simple searches and its "secret" keywords. Closes #2136. --- ChangeLog | 10 +++++++++ doc/manual.xml.head | 54 ++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 63 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 38954636..baf3b40c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2007-11-13 13:31 +0100 Rocco Rutte (7a4a154eefa5) + + * wcwidth.c: Fix compiler warnings in new wcwidth.c (too large values + for 'unsigned short') + +2007-11-13 11:53 +0100 Rocco Rutte (9e0bcfee7478) + + * ChangeLog, hg-commit: hg-commit: Run 'make validate' in doc/ if + manual.xml is present + 2007-11-13 11:50 +0100 Rocco Rutte (4ded279d93bb) * doc/manual.xml.head, init.h: Document that %f in $index_format is diff --git a/doc/manual.xml.head b/doc/manual.xml.head index 7129a7d2..967ec4f7 100644 --- a/doc/manual.xml.head +++ b/doc/manual.xml.head @@ -3817,7 +3817,7 @@ they may or may not be available in stock libraries on various systems. -Patterns +Patterns: Searching, Limiting and Tagging Many of Mutt's commands allow you to specify a pattern to match @@ -3938,6 +3938,58 @@ This example matches all mails which only has recipients from Germany. + +Simple Patterns + + +Mutt supports two versions of so called ``simple searches'' which are +issued if the pattern entered for searching, limiting and similar +operations does not actually contain a pattern modifier. + + + +The first type is by checking whether the query string equals +a keyword case-insensitively from : +If that is the case, Mutt will use the shown pattern modifier instead. +If a keyword would conflict with your search keyword, you need to turn +it into a regular expression to avoid matching the keyword table. For +example, if you want to find all messages matching ``flag'' +(using $simple_search, +see below but not meaning flagged messages) simply search for +``[f]lag''. + + + +Simple search keywords + + +KeywordPattern modifier + + +all~A +.~A +ˆ~A +del~D +flag~F +new~N +old~O +repl~Q +read~R +tag~T +unread~U + + +
+ + +The second type of simple search is to build a complex search +pattern using $simple_search +as a template. Mutt will insert your query properly quoted and search +for the composed complex query. + + +
+ Complex Patterns -- 2.40.0