diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2024-11-17 17:15:19 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2024-11-17 17:22:56 +1300 |
commit | b00bb1b7426d3b292f4e7e669e0f6d5bc7f778fa (patch) | |
tree | 5337329512a421184b7fc55f0da068ef90616627 | |
parent | Bail out on empty copy (diff) | |
download | vixf-b00bb1b7426d3b292f4e7e669e0f6d5bc7f778fa.tar.gz vixf-b00bb1b7426d3b292f4e7e669e0f6d5bc7f778fa.zip |
Use better constant name for focus sleep time
-rw-r--r-- | vixf.py3 | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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): |