aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-07-24 09:53:52 -0300
committerSilvio Rhatto <rhatto@riseup.net>2024-07-24 09:53:52 -0300
commitb0818981dcc90380f6651151bd60b7e0a8253b6f (patch)
tree73e997d6b00ba76e93a31c37e1c0b9da10c2eed3
parentb081933902d81f15a2aefa81600a95cee0efd8be (diff)
downloadfinder-b0818981dcc90380f6651151bd60b7e0a8253b6f.tar.gz
finder-b0818981dcc90380f6651151bd60b7e0a8253b6f.tar.bz2
Feat: refresh interval
-rw-r--r--TODO.md1
-rw-r--r--packages/finder/main.py11
2 files changed, 7 insertions, 5 deletions
diff --git a/TODO.md b/TODO.md
index dceb0bc..c7472f8 100644
--- a/TODO.md
+++ b/TODO.md
@@ -42,6 +42,7 @@
## Config
+* [ ] Refresh interval.
* [ ] Plugins to load.
* [ ] Autodetection depending on file or dir passed as argument (like
automatically detects a CSV file).
diff --git a/packages/finder/main.py b/packages/finder/main.py
index 0f8d79c..8eac990 100644
--- a/packages/finder/main.py
+++ b/packages/finder/main.py
@@ -182,11 +182,12 @@ class FinderMain():
# The application
self.app = Application(
- layout = Layout(self.container, focused_element = self.input_field),
- key_bindings = self.keybindings,
- style = self.style,
- full_screen = True,
- editing_mode = EditingMode.VI,
+ layout = Layout(self.container, focused_element = self.input_field),
+ key_bindings = self.keybindings,
+ style = self.style,
+ full_screen = True,
+ editing_mode = EditingMode.VI,
+ refresh_interval = 5,
)
async with asyncio.TaskGroup() as tg: