Create visual selection from transient paste (#15745)

* create visual selection from transient paste

Improve "Pasting Transient State" by adding a shortcut C-v to generate a visual selection from pasted test.

* Remove unnecessary lambda expression
This commit is contained in:
rommeswi 2022-10-20 02:49:08 +08:00 committed by GitHub
parent 13c5f04dc0
commit b9a52ccad3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -229,9 +229,11 @@
(spacemacs|define-transient-state paste
:title "Pasting Transient State"
:doc "\n[%s(length kill-ring-yank-pointer)/%s(length kill-ring)] \
[_C-j_/_C-k_] cycles through yanked text, [_p_/_P_] pastes the same text \
above or below. Anything else exits."
[_C-j_/_C-k_] cycles through yanked text, [_p_/_P_] pastes the \
same text above or below, [_C-v_] creates a visual selection \
from last paste and exits. Anything else exits."
:bindings
("C-v" (evil-active-region) :exit t)
("C-j" evil-paste-pop)
("C-k" evil-paste-pop-next)
("p" evil-paste-after)