- commit
- 66549eac4a2781d82e36804511e877fc723047f7
- parent
- 1ffce1d9b05e4b197005d7db0daaedfb907c791f
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2026-04-25 09:09
refactor: list all properties in __init__
Diffstat
| M | cplay.py | 10 | ++++++++-- |
1 files changed, 8 insertions, 2 deletions
diff --git a/cplay.py b/cplay.py
@@ -428,9 +428,14 @@ class HelpList(List): 428 428 class Filelist(List): 429 429 def __init__(self): 430 430 super().__init__()431 -1 self.path = None-1 431 self.path = os.getcwd() -1 432 self.all_items = [] -1 433 self.items = [] -1 434 self.search_cache = [] -1 435 self.position = 0 -1 436 self.cursor = 0 432 437 self.rsearch_str = ''433 -1 self.set_path(os.getcwd(), fail_silently=False)-1 438 self.set_path(self.path, fail_silently=False) 434 439 435 440 def get_title(self): 436 441 title = f'Filelist: {self.path.rstrip("/")}/' @@ -715,6 +720,7 @@ class Application: 715 720 self.help = False 716 721 self.input = Input() 717 722 self.old_lines = [] -1 723 self.screen: curses.window 718 724 719 725 # self-pipe to avoid concurrency issues with signal 720 726 self.resize_in, self.resize_out = os.pipe2(os.O_NONBLOCK)