mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 17:41:40 -05:00
Expose getclip ex-command
This commit is contained in:
parent
938b71d1b3
commit
83ca843dd3
1 changed files with 3 additions and 3 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Reference in a new issue