def invoke_on_note(self, args, note): self.listed_paths.append(note.abspath) print_colored("%u " % len(self.listed_paths), True) pathname, filename = path_split(note.path) print_default("%s%s" % (pathname, pathsep)) print_highlighted("%s%s" % (filename, linesep)) if args.tags: tags = note.tags if tags: print_default("\n") for tag in tags: print_colored_2("\t#%s\n" % tag) print_default("\n")
def invoke_on_note(self, args, note): print_colored("%s%s" % (note.path, linesep), interactive_only=True) with open(note.path, "r") as note_file: copyfileobj(note_file, stdout)