aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2024-11-17 17:15:19 +1300
committerTom Ryder <tom@sanctum.geek.nz>2024-11-17 17:22:56 +1300
commitb00bb1b7426d3b292f4e7e669e0f6d5bc7f778fa (patch)
tree5337329512a421184b7fc55f0da068ef90616627
parentBail out on empty copy (diff)
downloadvixf-b00bb1b7426d3b292f4e7e669e0f6d5bc7f778fa.tar.gz
vixf-b00bb1b7426d3b292f4e7e669e0f6d5bc7f778fa.zip
Use better constant name for focus sleep time
-rw-r--r--vixf.py36
1 files changed, 3 insertions, 3 deletions
diff --git a/vixf.py3 b/vixf.py3
index 60ff7ae..746fef5 100644
--- a/vixf.py3
+++ b/vixf.py3
@@ -19,13 +19,13 @@ import pyperclip
SELF = 'vixf'
-SLEEP = 0.5
+FOCUS_DELAY = 0.2
EDITOR = 'vi'
keyboard = Controller()
-time.sleep(SLEEP)
+time.sleep(FOCUS_DELAY)
# Select all
with keyboard.pressed(Key.ctrl):
@@ -74,7 +74,7 @@ with tempfile.NamedTemporaryFile(mode='w', delete_on_close=False) as tf:
pyperclip.copy(content_after)
-time.sleep(SLEEP)
+time.sleep(FOCUS_DELAY)
# Paste
with keyboard.pressed(Key.ctrl):