diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2024-07-24 10:04:08 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2024-07-24 10:04:08 -0300 |
commit | af4fb8de29d3f35ae82eee80629901a306148e88 (patch) | |
tree | 0f39b8b2d1d1215f186bf74c48f4d3be7d5e4fc8 /packages | |
parent | e46f80bd0a8162ccf36e282ffdf231336da4dfd6 (diff) | |
download | finder-af4fb8de29d3f35ae82eee80629901a306148e88.tar.gz finder-af4fb8de29d3f35ae82eee80629901a306148e88.tar.bz2 |
Feat: display path in the right status bar
Diffstat (limited to 'packages')
-rw-r--r-- | packages/finder/init.py | 2 | ||||
-rw-r--r-- | packages/finder/main.py | 6 |
2 files changed, 4 insertions, 4 deletions
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, ), ], |