From 7bb4c0f40c8666ef94a4dcf7fdf03a9058b64a8e Mon Sep 17 00:00:00 2001 From: Matthias Baumgartner Date: Fri, 3 Feb 2023 17:22:05 +0100 Subject: minor changes: port data, misc actions --- tagit/actions/misc.py | 2 ++ tagit/actions/search.py | 1 + 2 files changed, 3 insertions(+) (limited to 'tagit/actions') diff --git a/tagit/actions/misc.py b/tagit/actions/misc.py index 387ed99..b7d0a87 100644 --- a/tagit/actions/misc.py +++ b/tagit/actions/misc.py @@ -59,6 +59,7 @@ class ShellDrop(Action): text = kp.StringProperty('Shell') def apply(self): + from pprint import pprint as pp loc = globals() loc.update(locals()) code.interact(banner='tagit shell', local=loc) @@ -77,6 +78,7 @@ class OpenExternal(Action): return Binding.check(evt, self.cfg('bindings', 'misc', 'open')) def apply(self): + return # FIXME: mb/port with self.root.browser as browser: if browser.cursor is None: logger.error('No file selected') diff --git a/tagit/actions/search.py b/tagit/actions/search.py index 323f53e..ca36a51 100644 --- a/tagit/actions/search.py +++ b/tagit/actions/search.py @@ -79,6 +79,7 @@ class Search(Action, StorageAwareMixin, ConfigAwareMixin): Cache.remove(self._CACHE_CATEGORY, None) def on_predicate_modified(self, sender, predicate, objects, diff): + Cache.remove(self._CACHE_CATEGORY, None) # clears the whole cache self.apply() return # FIXME: mb/port tbd = set() -- cgit v1.2.3