Support clipboard/contents
This function returns the contents of the clipboard without calling paste.
This commit is contained in:
parent
e197dc5aba
commit
cd3b879e7b
1 changed files with 4 additions and 0 deletions
|
@ -36,6 +36,10 @@
|
||||||
(yank)
|
(yank)
|
||||||
(message message))
|
(message message))
|
||||||
|
|
||||||
|
(defun clipboard/contents ()
|
||||||
|
"Return the contents of the clipboard as a string."
|
||||||
|
(substring-no-properties (current-kill 0)))
|
||||||
|
|
||||||
(exwm-input-set-key
|
(exwm-input-set-key
|
||||||
(kbd "C-M-v") #'ivy-clipmenu/copy)
|
(kbd "C-M-v") #'ivy-clipmenu/copy)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue