aboutsummaryrefslogtreecommitdiffstats
path: root/tagit/actions
diff options
context:
space:
mode:
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()