summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2023-03-04 12:49:57 +0100
committerJonas Bernoulli <jonas@bernoul.li>2023-03-04 12:49:57 +0100
commit75a5076def1e6f5265eb2346a951ba9d97502fc9 (patch)
treed24693c158cc3cc8f6675e8b15d38056108fc7f5 /docs
parent0204a2432862aa187745995f1c378e6d875b35cb (diff)
manual: Add FAQ entry about copying text from popup
Closes #126.
Diffstat (limited to 'docs')
-rw-r--r--docs/transient.org16
-rw-r--r--docs/transient.texi14
2 files changed, 30 insertions, 0 deletions
diff --git a/docs/transient.org b/docs/transient.org
index 227dc29..4947f2a 100644
--- a/docs/transient.org
+++ b/docs/transient.org
@@ -2228,6 +2228,22 @@ commands are outlined:
Yes, see ~transient-display-buffer-action~ in [[*Configuration]].
+** How can I copy text from the popup buffer?
+:PROPERTIES:
+:UNNUMBERED: notoc
+:END:
+
+To be able to mark text in any transient popup buffer using the mouse,
+you have to add the following binding. Note that the region won't be
+visualized, while doing so. After you have quit the transient popup,
+you will be able to yank it another buffer.
+
+#+begin_src emacs-lisp
+ (keymap-set transient-predicate-map
+ "<mouse-set-region>"
+ #'transient--do-stay)
+#+end_src
+
** Why did some of the key bindings change?
:PROPERTIES:
:UNNUMBERED: notoc
diff --git a/docs/transient.texi b/docs/transient.texi
index bc72121..ed1a535 100644
--- a/docs/transient.texi
+++ b/docs/transient.texi
@@ -2557,6 +2557,20 @@ currently exist.
Yes, see @code{transient-display-buffer-action} in @ref{Configuration}.
+@anchor{How can I copy text from the popup buffer?}
+@appendixsec How can I copy text from the popup buffer?
+
+To be able to mark text in any transient popup buffer using the mouse,
+you have to add the following binding. Note that the region won't be
+visualized, while doing so. After you have quit the transient popup,
+you will be able to yank it another buffer.
+
+@lisp
+(keymap-set transient-predicate-map
+ "<mouse-set-region>"
+ #'transient--do-stay)
+@end lisp
+
@anchor{Why did some of the key bindings change?}
@appendixsec Why did some of the key bindings change?