def display_footer(self, hit_count):
regions = self.whoosh_view.find_all(self.search_string,
sublime.LITERAL | sublime.IGNORECASE)
reg_num = len(regions) - 1
text = "\n%d matches across %d files\n" % (reg_num if reg_num >= 0 else 0, hit_count)
self.whoosh_view.run_command("whoosh_view_append_text",
{"text" : text, "search_string" : None})
评论列表
文章目录