From 82e525a28ad3fb779b051126a7030a814f4cac5e Mon Sep 17 00:00:00 2001 From: Francesco Luzzana Date: Wed, 6 Apr 2022 17:19:38 +0200 Subject: [PATCH] debug text preview --- screenless/bureau/soup/soup.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/screenless/bureau/soup/soup.py b/screenless/bureau/soup/soup.py index 48bd10c..51510f8 100644 --- a/screenless/bureau/soup/soup.py +++ b/screenless/bureau/soup/soup.py @@ -59,10 +59,11 @@ class Soup(Bureau): @add_command('tp', 'Print a short excerpt of a text') def print_preview(self, data): - filename, _ = data.split(".") - with open(os.path.join(self.mdir, 'contents', filename + '.txt'), 'r') as f: - text = f.read() - self.print_small(filename + '\n' + text[:200] + '...') + self.print_small('hello') + # filename, _ = data.split(".") + # with open(os.path.join(self.mdir, 'contents', filename + '.txt'), 'r') as f: + # text = f.read() + # self.print_small(filename + '\n' + text[:200] + '...') def main():