[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/marginalia 3360875 113/241: Rename marginalia-cycle-ann
From: |
Stefan Monnier |
Subject: |
[elpa] externals/marginalia 3360875 113/241: Rename marginalia-cycle-annotators to marginalia-cycle |
Date: |
Fri, 28 May 2021 20:49:08 -0400 (EDT) |
branch: externals/marginalia
commit 3360875943e6084f134aebffad83878d71c367c5
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Rename marginalia-cycle-annotators to marginalia-cycle
* The name is still meaningful
* Shorter names take less space in the Embark which-key menu
---
README.md | 9 ++++-----
marginalia.el | 17 ++++++++---------
2 files changed, 12 insertions(+), 14 deletions(-)
diff --git a/README.md b/README.md
index 117a4e8..0ddc568 100644
--- a/README.md
+++ b/README.md
@@ -14,7 +14,7 @@ The annotations are added based on the completion category.
For example
`find-file` reports the `file` category and `M-x` reports the `command`
category. You can choose between more or less detailed annotators, by setting
the variable `marginalia-annotators` or by invoking the command
-`marginalia-cycle-annotators`.
+`marginalia-cycle`.
Since many commands do not report a completion category themselves, Marginalia
provides a classifier system, which tries to guess the correct category based
@@ -40,10 +40,9 @@ commands.
~~~ elisp
;; Enable richer annotations using the Marginalia package
(use-package marginalia
- ;; When using the Embark package, you can bind `marginalia-cycle-annotators'
- ;; as an Embark action!
+ ;; When using the Embark package, you can bind `marginalia-cycle' as an
Embark action!
;; :bind (:map embark-general-map
- ;; ("A" . marginalia-cycle-annotators))
+ ;; ("A" . marginalia-cycle))
;; The :init configuration is always executed (Not lazy!)
:init
@@ -55,7 +54,7 @@ commands.
;; Prefer richer, more heavy, annotations over the lighter default variant.
;; E.g. M-x will show the documentation string additional to the keybinding.
;; By default only the keybinding is shown as annotation.
- ;; Note that there is the command `marginalia-cycle-annotators` to
+ ;; Note that there is the command `marginalia-cycle` to
;; switch between the annotators.
;; (setq marginalia-annotators '(marginalia-annotators-heavy
marginalia-annotators-light nil)))
~~~
diff --git a/marginalia.el b/marginalia.el
index 1d43b70..e8817ee 100644
--- a/marginalia.el
+++ b/marginalia.el
@@ -61,12 +61,12 @@ This value is adjusted in the `minibuffer-setup-hook'
depending on the `window-w
'(marginalia-annotators-light marginalia-annotators-heavy nil)
"Choose an annotator association list for minibuffer completion.
The first entry in the list is used for annotations.
-You can cycle between the annotators using `marginalia-cycle-annotators'.
+You can cycle between the annotators using `marginalia-cycle'.
Annotations are only shown if `marginalia-mode' is enabled.
An entry of nil disables marginalia's annotations (leaving you
only with the annotations that come with Emacs) without disabling
`marginalia-mode'; this can be convenient for users of
-`marginalia-cycle-annotators'."
+`marginalia-cycle'."
:type '(repeat (choice (const :tag "Light" marginalia-annotators-light)
(const :tag "Heavy" marginalia-annotators-heavy)
(const :tag "None" nil)
@@ -669,19 +669,18 @@ Remember `this-command' for annotation."
;; If you want to cycle between annotators while being in the minibuffer, the
completion-system
;; should refresh the candidate list. Currently there is no support for this
in marginalia, but it
-;; is possible to advise the `marginalia-cycle-annotators' function with the
necessary refreshing
-;; logic. See the discussion in https://github.com/minad/marginalia/issues/10
for reference.
+;; is possible to advise the `marginalia-cycle' function with the necessary
refreshing logic. See
+;; the discussion in https://github.com/minad/marginalia/issues/10 for
reference.
;;;###autoload
-(defun marginalia-cycle-annotators ()
+(defun marginalia-cycle ()
"Cycle between annotators in `marginalia-annotators'.
If called from the minibuffer the annotator cycling is local,
that it is, it does not affect subsequent minibuffers. When called
from a regular buffer the effect is global."
(interactive)
- ;; If `marginalia-cycle-annotators' has been invoked from inside the
minibuffer, only change
- ;; the annotators locally. This is useful if the command is used as an
action. If the command is
- ;; not triggered from inside the minibuffer, cycle the annotator globally.
Hopefully this is
- ;; not too confusing.
+ ;; If `marginalia-cycle' has been invoked from inside the minibuffer, only
change the annotators
+ ;; locally. This is useful if the command is used as an action. If the
command is not triggered
+ ;; from inside the minibuffer, cycle the annotator globally. Hopefully this
is not too confusing.
(if-let* ((win (active-minibuffer-window))
(buf (window-buffer win)))
(let ((a (buffer-local-value 'marginalia-annotators buf)))
- [elpa] externals/marginalia 4a5ada6 063/241: smaller variable field, (continued)
- [elpa] externals/marginalia 4a5ada6 063/241: smaller variable field, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia 2f1bb7c 064/241: do not overwrite the face weights as per recommendation by @purcell, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia 785297d 075/241: Indicate advised functions with an asterisk, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia 0bd8061 077/241: marginalia--fields: allow alignment to the right by using a negative width, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia f16d26a 082/241: marginalia-annotate-symbol: add keybindings to commands, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia b0c24f7 088/241: introduce marginalia-annotate-command, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia bbde111 083/241: Annotate environment variables with their value, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia 618fd9e 084/241: Improve formatting of environment variable annotation, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia 3559cbb 095/241: update readme, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia 27cd29d 101/241: add buffer size annotation, fix #29, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia 3360875 113/241: Rename marginalia-cycle-annotators to marginalia-cycle,
Stefan Monnier <=
- [elpa] externals/marginalia 1fb2569 121/241: marginalia-annotate-minor-mode: fix support for consult, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia 35cb523 127/241: add comment, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia d38a278 151/241: readme: do not export drawers, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia 3febe72 155/241: fix #45, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia 7d3f018 024/241: Add annotations for files and buffers, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia f083852 066/241: readme: add embark and consult links, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia ef325fc 073/241: In symbol annotator skip lines about advice in function docstring, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia d2a7923 069/241: improve marginalia-annotate-package, do not show nil for builtins, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia 6e8ba6d 079/241: add marginalia-annotate-imenu, Stefan Monnier, 2021/05/28
- [elpa] externals/marginalia fbd898d 087/241: rename marginalia-annotate-command to marginalia-annotate-binding, Stefan Monnier, 2021/05/28