diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2024-07-24 09:55:19 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2024-07-24 09:55:19 -0300 |
commit | e46f80bd0a8162ccf36e282ffdf231336da4dfd6 (patch) | |
tree | df6c2998f901230c41e2e84e7105468f035479d7 | |
parent | b0818981dcc90380f6651151bd60b7e0a8253b6f (diff) | |
download | finder-e46f80bd0a8162ccf36e282ffdf231336da4dfd6.tar.gz finder-e46f80bd0a8162ccf36e282ffdf231336da4dfd6.tar.bz2 |
Feat: terminal size polling interval
-rw-r--r-- | TODO.md | 1 | ||||
-rw-r--r-- | packages/finder/main.py | 13 |
2 files changed, 8 insertions, 6 deletions
@@ -43,6 +43,7 @@ ## Config * [ ] Refresh interval. +* [ ] Terminal size polling 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 8eac990..754b54f 100644 --- a/packages/finder/main.py +++ b/packages/finder/main.py @@ -182,12 +182,13 @@ 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, - refresh_interval = 5, + 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, + terminal_size_polling_interval = 5, ) async with asyncio.TaskGroup() as tg: |