From a098fddfad9835544a4b4dd70669c1bc1afd049e Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 24 Jul 2024 14:42:04 -0300 Subject: TODO: update --- TODO.md | 8 ++++++++ packages/finder/main.py | 1 - packages/finder/plugin/searcher/file/name.py | 1 - 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/TODO.md b/TODO.md index 0530be4..bdbf21c 100644 --- a/TODO.md +++ b/TODO.md @@ -1,5 +1,12 @@ # TODO +## Improvements + +* [ ] Abstract/generalize plugin load logic. +* [ ] `FinderPluginFileNameSearcher.setPath`: check if path exists. +* [ ] `FinderPluginFileXdgOpener.open`: check if file actually exists (and if + it's not a dead symbolic link etc). + ## UX * [ ] Results using a select box instead of a text buffer? @@ -45,6 +52,7 @@ * [ ] Search processing regexps or not (`text` or `re.escape(text)`). * [ ] Sorting criteria. * [ ] Whether to list folders (and not just files). + * [ ] Follow/unfollow symlinks. * [ ] Non-toggles: * [ ] Refresh interval. * [ ] Terminal size polling interval. diff --git a/packages/finder/main.py b/packages/finder/main.py index 949b847..40a97a3 100644 --- a/packages/finder/main.py +++ b/packages/finder/main.py @@ -169,7 +169,6 @@ class FinderMain(): ) async def load(self): - # TODO: logic should be abstracted/generalized from .plugin.searcher.file.name import FinderPluginFileNameSearcher from .plugin.opener.file.xdg import FinderPluginFileXdgOpener diff --git a/packages/finder/plugin/searcher/file/name.py b/packages/finder/plugin/searcher/file/name.py index b9c631c..4388a70 100644 --- a/packages/finder/plugin/searcher/file/name.py +++ b/packages/finder/plugin/searcher/file/name.py @@ -22,7 +22,6 @@ import os import re class FinderPluginFileNameSearcher(): - # TODO: check if path exists def __init__(self, path): self.setPath(path) self.items = [] -- cgit v1.2.3