From 2ab219f800282fe7e1f700e7c6f06e9ac1121a06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Koro=C5=9Bcik?= Date: Mon, 15 Feb 2016 21:15:00 +0100 Subject: [PATCH] Find also empty translations with prular forms --- hyperion.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hyperion.py b/hyperion.py index 7648df7..bcb5377 100644 --- a/hyperion.py +++ b/hyperion.py @@ -11,6 +11,11 @@ def run(self, edit): sels.clear() sels.add(region) self.view.run_command('toggle_bookmark') + regions = view.find_all('msgstr\[0] ""\n') + for region in regions: + sels.clear() + sels.add(region) + self.view.run_command('toggle_bookmark') class BookmarkFuzzyCommand(sublime_plugin.TextCommand): def run(self, edit): @@ -66,4 +71,4 @@ def run(self, edit): # FindPrevEmpty # FindNextFuzzy # FindPrevFuzzy -# ToggleFuzzy \ No newline at end of file +# ToggleFuzzy