Skip to content

Commit

Permalink
Changed output of Retrieve() from Text to dragonfly Paste action (#652)
Browse files Browse the repository at this point in the history
  • Loading branch information
LexiconCode authored Jul 16, 2019
1 parent 02baceb commit beffc33
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions castervoice/lib/temporary.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from dragonfly import ActionBase
from dragonfly import ActionBase, Paste
from castervoice.lib import context, control
from castervoice.lib.actions import Text, Key

'''
Stores the currently highlighted text in a temporary variable,
to be Retrieved after some other action. If no text was
Expand Down Expand Up @@ -36,6 +35,7 @@
side-effect of being able to detect when no text is highlighted.
'''


class Store(ActionBase):
def __init__(self, space=" ", remove_cr=False):
ActionBase.__init__(self)
Expand All @@ -61,7 +61,7 @@ def text(cls):

def _execute(self, data=None):
output = control.nexus().temp
Text(output).execute()
Paste(output).execute()
if output:
Key(self.action_if_text).execute()
else:
Expand Down

0 comments on commit beffc33

Please sign in to comment.