Expose getclip ex-command

This commit is contained in:
Oliver Blanthorn 2019-05-22 10:51:05 +01:00
parent 938b71d1b3
commit 83ca843dd3
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3

View file

@ -2734,10 +2734,10 @@ async function setclip(str) {
/**
* Fetches the content of the clipboard/selection buffer depending on user's preferences
*
* @hidden
* Exposed for use with [[composite]], e.g. `composite getclip | fillcmdline`
*/
//#background_helper
async function getclip(fromm?: "clipboard" | "selection") {
//#background
export async function getclip(fromm?: "clipboard" | "selection") {
if (fromm === undefined) fromm = await config.getAsync("putfrom")
if (fromm === "clipboard") {
return messageActiveTab("commandline_frame", "getClipboard")