diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2024-07-24 09:53:52 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2024-07-24 09:53:52 -0300 |
commit | b0818981dcc90380f6651151bd60b7e0a8253b6f (patch) | |
tree | 73e997d6b00ba76e93a31c37e1c0b9da10c2eed3 | |
parent | b081933902d81f15a2aefa81600a95cee0efd8be (diff) | |
download | finder-b0818981dcc90380f6651151bd60b7e0a8253b6f.tar.gz finder-b0818981dcc90380f6651151bd60b7e0a8253b6f.tar.bz2 |
Feat: refresh interval
-rw-r--r-- | TODO.md | 1 | ||||
-rw-r--r-- | packages/finder/main.py | 11 |
2 files changed, 7 insertions, 5 deletions
@@ -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: |