aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/finder/main.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/finder/main.py b/packages/finder/main.py
index ae75571..21932c5 100644
--- a/packages/finder/main.py
+++ b/packages/finder/main.py
@@ -57,7 +57,7 @@ class FinderMain():
def open(self):
item = self.output_buffer.document.current_line
- self.opener.open(item)
+ self.opener.open(os.path.join(self.path, item))
def bindings(self):
self.keybindings = KeyBindings()
@@ -201,7 +201,10 @@ class FinderMain():
loader = tg.create_task(self.load())
def format(self, items):
- return '\n'.join(sorted(items))
+ return '\n'.join(
+ sorted(
+ [ item.removeprefix(self.path).removeprefix(os.sep) for item in items ]
+ ))
def finish(self):
# If we have to exit the application depending on the input buffer