From af4fb8de29d3f35ae82eee80629901a306148e88 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 24 Jul 2024 10:04:08 -0300 Subject: Feat: display path in the right status bar --- packages/finder/init.py | 2 +- packages/finder/main.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'packages') diff --git a/packages/finder/init.py b/packages/finder/init.py index e0338da..a0764ec 100644 --- a/packages/finder/init.py +++ b/packages/finder/init.py @@ -62,7 +62,7 @@ class FinderInit(): self.config = {} # Command line argument handling - self.path = args.path + self.path = os.path.abspath(args.path) def initialize(self): """ diff --git a/packages/finder/main.py b/packages/finder/main.py index 754b54f..87d1c69 100644 --- a/packages/finder/main.py +++ b/packages/finder/main.py @@ -95,11 +95,11 @@ class FinderMain(): lines = self.output_buffer.document.line_count - return f" Results: {lines}" + return f"Results: {lines}" def get_statusbar_right(self): #return "[Tab] change focus [Enter] Select" - return "" + return f"Path: {self.path}" def ui(self): # States @@ -142,7 +142,7 @@ class FinderMain(): Window( FormattedTextControl(self.get_statusbar_right), style = "class:status.right", - width = 20, + width = 60, align = WindowAlign.RIGHT, ), ], -- cgit v1.2.3