Update clipboard plugin
This commit is contained in:
parent
3273aa4e4c
commit
99f2e9c3d2
1 changed files with 3 additions and 3 deletions
|
@ -22,11 +22,11 @@ from sshare.plugin.source import Raw
|
||||||
plugin_type = { "source", "feedback" }
|
plugin_type = { "source", "feedback" }
|
||||||
|
|
||||||
activate = {
|
activate = {
|
||||||
"source": { "type" },
|
"source": { "extension" },
|
||||||
"feedback": { "to_clipboard" },
|
"feedback": { "to_clipboard" },
|
||||||
}
|
}
|
||||||
args = {
|
args = {
|
||||||
"type": Argument(
|
"extension": Argument(
|
||||||
name="paste",
|
name="paste",
|
||||||
nargs="?",
|
nargs="?",
|
||||||
const=Flag,
|
const=Flag,
|
||||||
|
@ -41,7 +41,7 @@ args = {
|
||||||
|
|
||||||
def get_source():
|
def get_source():
|
||||||
logger.info("Uploading contents of clipboard")
|
logger.info("Uploading contents of clipboard")
|
||||||
return Raw(config.type, pyclip.paste())
|
return Raw("clipboard", config.extension, pyclip.paste())
|
||||||
|
|
||||||
def give_feedback(location):
|
def give_feedback(location):
|
||||||
pyclip.copy(location)
|
pyclip.copy(location)
|
||||||
|
|
Loading…
Reference in a new issue