From ee5ea09cbc52796af8a2f511651259913892f68a Mon Sep 17 00:00:00 2001 From: CaitSith2 Date: Tue, 8 Feb 2022 14:29:24 -0800 Subject: [PATCH] Add an autofill !hint_location for clicking on a Missing: line, when user uses !missing. --- kvui.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kvui.py b/kvui.py index fb5b75a4..6d8c8797 100644 --- a/kvui.py +++ b/kvui.py @@ -186,6 +186,8 @@ class SelectableLabel(RecycleDataViewBehavior, Label): "? (") cmdinput.text = f"!{App.get_running_app().last_autofillable_command} {name}" break + elif not cmdinput.text and text.startswith("Missing: "): + cmdinput.text = text.replace("Missing: ", "!hint_location ") Clipboard.copy(text) return self.parent.select_with_touch(self.index, touch)