aboutsummaryrefslogtreecommitdiffstats
path: root/tagit/actions
diff options
context:
space:
mode:
authorMatthias Baumgartner <dev@igsor.net>2023-02-03 17:22:05 +0100
committerMatthias Baumgartner <dev@igsor.net>2023-02-03 17:22:05 +0100
commit7bb4c0f40c8666ef94a4dcf7fdf03a9058b64a8e (patch)
treee49e5889bf2fcaef31b60c8a37dd43e85f59d734 /tagit/actions
parentc6856aa6fe2ad478dd5bc6285fb2544c150b2033 (diff)
downloadtagit-7bb4c0f40c8666ef94a4dcf7fdf03a9058b64a8e.tar.gz
tagit-7bb4c0f40c8666ef94a4dcf7fdf03a9058b64a8e.tar.bz2
tagit-7bb4c0f40c8666ef94a4dcf7fdf03a9058b64a8e.zip
minor changes: port data, misc actions
Diffstat (limited to 'tagit/actions')
-rw-r--r--tagit/actions/misc.py2
-rw-r--r--tagit/actions/search.py1
2 files changed, 3 insertions, 0 deletions
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()