From 656aa41ada8f6241e285c10e4682b10d295e8d73 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Mon, 8 Sep 2025 21:45:39 +0300 Subject: [PATCH] rename 'mu label' -> 'mu labels' Update names, docs etc. --- NEWS.org | 7 +- man/meson.build | 2 +- man/mu-easy.7.org | 6 +- man/mu-init.1.org | 4 +- man/{mu-label.1.org => mu-labels.1.org} | 59 +++++++----- mu/meson.build | 2 +- mu/{mu-cmd-label.cc => mu-cmd-labels.cc} | 114 ++++++++++++----------- mu/mu-cmd.cc | 8 +- mu/mu-cmd.hh | 4 +- mu/mu-options.cc | 73 +++++++-------- mu/mu-options.hh | 17 ++-- mu/tests/meson.build | 6 +- mu4e/mu4e.texi | 2 +- 13 files changed, 155 insertions(+), 149 deletions(-) rename man/{mu-label.1.org => mu-labels.1.org} (69%) rename mu/{mu-cmd-label.cc => mu-cmd-labels.cc} (79%) diff --git a/NEWS.org b/NEWS.org index 668412d8..fe8c0810 100644 --- a/NEWS.org +++ b/NEWS.org @@ -127,9 +127,6 @@ to it as a personal address. ~--my-address~ is still supported as an alias, for backward compatibility. - - 1.12.13: new (sub)command "labels", for associating searchable labels with - messages. See `man mu-label` for details. - - 1.12.13: if available, *mu* now uses the system versions of ~CLI11~ and ~fmt~ instead of the "vendored" ones. This can be overridden by passing the ~-Duse-embedded-cli11=true~ and ~-Duse-embedded-fmt=true~ to Meson. @@ -138,6 +135,10 @@ triggered when running the tests. This speed up the build when not testing + - 1.12.13: new (sub)command ~labels~, for associating searchable labels with + messages. Labels are similar to /tags/, but better integrated with *mu* (and + *mu4e*). See =man mu-labels= for details. + *** mu4e **** message composer diff --git a/man/meson.build b/man/meson.build index 1034655c..5e35e1d8 100644 --- a/man/meson.build +++ b/man/meson.build @@ -55,7 +55,7 @@ man_orgs = [ 'mu-index.1.org', 'mu-info.1.org', 'mu-init.1.org', - 'mu-label.1.org', + 'mu-labels.1.org', 'mu-mkdir.1.org', 'mu-move.1.org', 'mu-query.7.org', diff --git a/man/mu-easy.7.org b/man/mu-easy.7.org index aafeff47..430f303b 100644 --- a/man/mu-easy.7.org +++ b/man/mu-easy.7.org @@ -305,7 +305,7 @@ fields, since labels are not intrinsic parts of messages, so removing your message database, and then re-indexing won't bring back your labels. For that reason, you can export labels to a file and later import them again -(see {{{man-link(mu-label,1)}}}) +(see {{{man-link(mu-labels,1)}}}) Some examples: @@ -329,7 +329,7 @@ There's also *mu label clear* to remove all labels from matching messages; and t the mutating *label* subcommands (*update*, *clear*, *import*) accept a *--dry-run* option for just printing what they /would/ change, without actually changing anything. -{{{man-link(mu-label,1)}}} has all the details. +{{{man-link(mu-labels,1)}}} has all the details. #+include: "prefooter.inc" :minlevel 1 @@ -343,4 +343,4 @@ for just printing what they /would/ change, without actually changing anything. {{{man-link(mu-mkdir,1)}}}, {{{man-link(mu-view,1)}}}, {{{man-link(mu-extract,1)}}} -{{{man-link(mu-label,1)}}} +{{{man-link(mu-labels,1)}}} diff --git a/man/mu-init.1.org b/man/mu-init.1.org index a451eeaa..945964ab 100644 --- a/man/mu-init.1.org +++ b/man/mu-init.1.org @@ -110,7 +110,7 @@ You can restore those labels _after_ re-indexing, e.g., $ mu label import /home/user/.cache/mu/mu-export-2025-08-16-13:43:27.txt #+end_example -Please see {{{man-link(mu-label,1)}}} for further details. +Please see {{{man-link(mu-labels,1)}}} for further details. * EXAMPLE #+begin_example @@ -123,6 +123,6 @@ $ mu init --maildir=~/Maildir --my-address=alice@example.com --my-address=bob@ex {{{man-link(mu-index,1)}}}, {{{man-link(mu-find,1)}}}, -{{{man-link(mu-label,1)}}}, +{{{man-link(mu-labels,1)}}}, {{{man-link(mu-cfind,1)}}}, {{{man-link(pcre,3)}}} diff --git a/man/mu-label.1.org b/man/mu-labels.1.org similarity index 69% rename from man/mu-label.1.org rename to man/mu-labels.1.org index 0bd9aeb4..88ed0f29 100644 --- a/man/mu-label.1.org +++ b/man/mu-labels.1.org @@ -1,34 +1,37 @@ -#+TITLE: MU LABEL +#+TITLE: MU LABELS #+MAN_CLASS_OPTIONS: :section-id "@SECTION_ID@" :date "@MAN_DATE@" #+include: macros.inc * NAME -mu-label - attach labels to messages. Export labels to file, and import them. +mu-labels - attach labels to messages. Export labels to file, and import them. * SYNOPSIS -*mu* [​_COMMON-OPTIONS_​] *label* update [​UPDATE-OPTIONS​] "" --labels [{+,-}