listpick 0.1.13.27__tar.gz → 0.1.13.29__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {listpick-0.1.13.27/src/listpick.egg-info → listpick-0.1.13.29}/PKG-INFO +1 -1
- {listpick-0.1.13.27 → listpick-0.1.13.29}/setup.py +1 -1
- {listpick-0.1.13.27 → listpick-0.1.13.29}/src/listpick/listpick_app.py +6 -9
- {listpick-0.1.13.27 → listpick-0.1.13.29/src/listpick.egg-info}/PKG-INFO +1 -1
- {listpick-0.1.13.27 → listpick-0.1.13.29}/.gitignore +0 -0
- {listpick-0.1.13.27 → listpick-0.1.13.29}/CHANGELOG.md +0 -0
- {listpick-0.1.13.27 → listpick-0.1.13.29}/LICENSE.txt +0 -0
- {listpick-0.1.13.27 → listpick-0.1.13.29}/README.md +0 -0
- {listpick-0.1.13.27 → listpick-0.1.13.29}/TODO.md +0 -0
- {listpick-0.1.13.27 → listpick-0.1.13.29}/assets/aria2tui_screenshot.png +0 -0
- {listpick-0.1.13.27 → listpick-0.1.13.29}/assets/file_compare.png +0 -0
- {listpick-0.1.13.27 → listpick-0.1.13.29}/assets/lpfman.png +0 -0
- {listpick-0.1.13.27 → listpick-0.1.13.29}/examples/footer_string_example.py +0 -0
- {listpick-0.1.13.27 → listpick-0.1.13.29}/examples/input.toml +0 -0
- {listpick-0.1.13.27 → listpick-0.1.13.29}/examples/input.txt +0 -0
- {listpick-0.1.13.27 → listpick-0.1.13.29}/examples/list_files.toml +0 -0
- {listpick-0.1.13.27 → listpick-0.1.13.29}/examples/list_files_empty.toml +0 -0
- {listpick-0.1.13.27 → listpick-0.1.13.29}/examples/picker_example.py +0 -0
- {listpick-0.1.13.27 → listpick-0.1.13.29}/examples/setup.cfg +0 -0
- {listpick-0.1.13.27 → listpick-0.1.13.29}/examples/template.py +0 -0
- {listpick-0.1.13.27 → listpick-0.1.13.29}/examples/video_duplicates.toml +0 -0
- {listpick-0.1.13.27 → listpick-0.1.13.29}/listpick.py +0 -0
- {listpick-0.1.13.27 → listpick-0.1.13.29}/requirements.txt +0 -0
- {listpick-0.1.13.27 → listpick-0.1.13.29}/setup.cfg +0 -0
- {listpick-0.1.13.27 → listpick-0.1.13.29}/src/listpick/__init__.py +0 -0
- {listpick-0.1.13.27 → listpick-0.1.13.29}/src/listpick/__main__.py +0 -0
- {listpick-0.1.13.27 → listpick-0.1.13.29}/src/listpick/ui/__init__.py +0 -0
- {listpick-0.1.13.27 → listpick-0.1.13.29}/src/listpick/ui/build_help.py +0 -0
- {listpick-0.1.13.27 → listpick-0.1.13.29}/src/listpick/ui/footer.py +0 -0
- {listpick-0.1.13.27 → listpick-0.1.13.29}/src/listpick/ui/help_screen.py +0 -0
- {listpick-0.1.13.27 → listpick-0.1.13.29}/src/listpick/ui/input_field.py +0 -0
- {listpick-0.1.13.27 → listpick-0.1.13.29}/src/listpick/ui/keys.py +0 -0
- {listpick-0.1.13.27 → listpick-0.1.13.29}/src/listpick/ui/pane_stuff.py +0 -0
- {listpick-0.1.13.27 → listpick-0.1.13.29}/src/listpick/ui/picker_colours.py +0 -0
- {listpick-0.1.13.27 → listpick-0.1.13.29}/src/listpick/utils/__init__.py +0 -0
- {listpick-0.1.13.27 → listpick-0.1.13.29}/src/listpick/utils/clipboard_operations.py +0 -0
- {listpick-0.1.13.27 → listpick-0.1.13.29}/src/listpick/utils/config.py +0 -0
- {listpick-0.1.13.27 → listpick-0.1.13.29}/src/listpick/utils/dump.py +0 -0
- {listpick-0.1.13.27 → listpick-0.1.13.29}/src/listpick/utils/filtering.py +0 -0
- {listpick-0.1.13.27 → listpick-0.1.13.29}/src/listpick/utils/generate_data.py +0 -0
- {listpick-0.1.13.27 → listpick-0.1.13.29}/src/listpick/utils/options_selectors.py +0 -0
- {listpick-0.1.13.27 → listpick-0.1.13.29}/src/listpick/utils/paste_operations.py +0 -0
- {listpick-0.1.13.27 → listpick-0.1.13.29}/src/listpick/utils/picker_log.py +0 -0
- {listpick-0.1.13.27 → listpick-0.1.13.29}/src/listpick/utils/search_and_filter_utils.py +0 -0
- {listpick-0.1.13.27 → listpick-0.1.13.29}/src/listpick/utils/searching.py +0 -0
- {listpick-0.1.13.27 → listpick-0.1.13.29}/src/listpick/utils/sorting.py +0 -0
- {listpick-0.1.13.27 → listpick-0.1.13.29}/src/listpick/utils/table_to_list_of_lists.py +0 -0
- {listpick-0.1.13.27 → listpick-0.1.13.29}/src/listpick/utils/utils.py +0 -0
- {listpick-0.1.13.27 → listpick-0.1.13.29}/src/listpick.egg-info/SOURCES.txt +0 -0
- {listpick-0.1.13.27 → listpick-0.1.13.29}/src/listpick.egg-info/dependency_links.txt +0 -0
- {listpick-0.1.13.27 → listpick-0.1.13.29}/src/listpick.egg-info/entry_points.txt +0 -0
- {listpick-0.1.13.27 → listpick-0.1.13.29}/src/listpick.egg-info/requires.txt +0 -0
- {listpick-0.1.13.27 → listpick-0.1.13.29}/src/listpick.egg-info/top_level.txt +0 -0
- {listpick-0.1.13.27 → listpick-0.1.13.29}/tests/kitty_control.sh +0 -0
- {listpick-0.1.13.27 → listpick-0.1.13.29}/tests/sorting_dates.csv +0 -0
|
@@ -16,7 +16,7 @@ with open("README.md", "r", encoding = "utf-8") as fh:
|
|
|
16
16
|
|
|
17
17
|
setuptools.setup(
|
|
18
18
|
name = "listpick",
|
|
19
|
-
version = "0.1.13.
|
|
19
|
+
version = "0.1.13.29",
|
|
20
20
|
author = "Grim",
|
|
21
21
|
author_email = "grimandgreedy@protonmail.com",
|
|
22
22
|
description = "Listpick is a powerful TUI data tool for creating TUI apps or viewing/comparing tabulated data.",
|
|
@@ -662,6 +662,12 @@ class Picker:
|
|
|
662
662
|
self.stdscr.refresh()
|
|
663
663
|
|
|
664
664
|
def draw_screen(self, indexed_items: list[Tuple[int, list[str]]], highlights: list[dict] = [{}], clear: bool = True) -> None:
|
|
665
|
+
try:
|
|
666
|
+
self.draw_screen2(self.indexed_items, self.highlights)
|
|
667
|
+
except:
|
|
668
|
+
self.logger.warning(f"draw_screen function error")
|
|
669
|
+
pass
|
|
670
|
+
def draw_screen2(self, indexed_items: list[Tuple[int, list[str]]], highlights: list[dict] = [{}], clear: bool = True) -> None:
|
|
665
671
|
""" Draw Picker screen. """
|
|
666
672
|
self.logger.debug("Draw screen.")
|
|
667
673
|
|
|
@@ -2009,7 +2015,6 @@ class Picker:
|
|
|
2009
2015
|
self.logger.debug(f"footer_string_auto_refresh")
|
|
2010
2016
|
self.footer_string = self.footer_string_refresh_function()
|
|
2011
2017
|
initial_time_footer = time.time()
|
|
2012
|
-
self.draw_screen(self.indexed_items, self.highlights)
|
|
2013
2018
|
|
|
2014
2019
|
if self.check_key("help", key, self.keys_dict):
|
|
2015
2020
|
self.logger.info(f"key_function help")
|
|
@@ -2468,34 +2473,28 @@ class Picker:
|
|
|
2468
2473
|
if self.max_column_width > 10:
|
|
2469
2474
|
self.max_column_width -= 10
|
|
2470
2475
|
# self.column_widths = get_column_widths(self.items, header=self.header, max_column_width=self.max_column_width, number_columns=self.number_columns, max_total_width=2)
|
|
2471
|
-
self.draw_screen(self.indexed_items, self.highlights)
|
|
2472
2476
|
elif self.check_key("increase_column_width", key, self.keys_dict):
|
|
2473
2477
|
self.logger.info(f"key_function increase_column_width")
|
|
2474
2478
|
if self.max_column_width < 1000:
|
|
2475
2479
|
self.max_column_width += 10
|
|
2476
2480
|
# self.column_widths = get_column_widths(self.items, header=self.header, max_column_width=self.max_column_width, number_columns=self.number_columns, max_total_width=w)
|
|
2477
|
-
self.draw_screen(self.indexed_items, self.highlights)
|
|
2478
2481
|
elif self.check_key("visual_selection_toggle", key, self.keys_dict):
|
|
2479
2482
|
self.logger.info(f"key_function visual_selection_toggle")
|
|
2480
2483
|
self.handle_visual_selection()
|
|
2481
|
-
self.draw_screen(self.indexed_items, self.highlights)
|
|
2482
2484
|
|
|
2483
2485
|
elif self.check_key("visual_deselection_toggle", key, self.keys_dict):
|
|
2484
2486
|
self.logger.info(f"key_function visual_deselection_toggle")
|
|
2485
2487
|
self.handle_visual_selection(selecting=False)
|
|
2486
|
-
self.draw_screen(self.indexed_items, self.highlights)
|
|
2487
2488
|
|
|
2488
2489
|
elif key == curses.KEY_RESIZE: # Terminal resize signal
|
|
2489
2490
|
|
|
2490
2491
|
self.calculate_section_sizes()
|
|
2491
2492
|
self.column_widths = get_column_widths(self.items, header=self.header, max_column_width=self.max_column_width, number_columns=self.number_columns, max_total_width=w)
|
|
2492
2493
|
|
|
2493
|
-
self.draw_screen(self.indexed_items, self.highlights)
|
|
2494
2494
|
|
|
2495
2495
|
|
|
2496
2496
|
elif self.check_key("filter_input", key, self.keys_dict):
|
|
2497
2497
|
self.logger.info(f"key_function filter_input")
|
|
2498
|
-
self.draw_screen(self.indexed_items, self.highlights)
|
|
2499
2498
|
usrtxt = f"{self.filter_query} " if self.filter_query else ""
|
|
2500
2499
|
field_end_f = lambda: self.stdscr.getmaxyx()[1]-38 if self.show_footer else lambda: self.stdscr.getmaxyx()[1]-3
|
|
2501
2500
|
if self.show_footer and self.footer.height >= 2: field_end_f = lambda: self.stdscr.getmaxyx()[1]-38
|
|
@@ -2540,7 +2539,6 @@ class Picker:
|
|
|
2540
2539
|
|
|
2541
2540
|
elif self.check_key("search_input", key, self.keys_dict):
|
|
2542
2541
|
self.logger.info(f"key_function search_input")
|
|
2543
|
-
self.draw_screen(self.indexed_items, self.highlights)
|
|
2544
2542
|
usrtxt = f"{self.search_query} " if self.search_query else ""
|
|
2545
2543
|
field_end_f = lambda: self.stdscr.getmaxyx()[1]-38 if self.show_footer else lambda: self.stdscr.getmaxyx()[1]-3
|
|
2546
2544
|
if self.show_footer and self.footer.height >= 3: field_end_f = lambda: self.stdscr.getmaxyx()[1]-38
|
|
@@ -2648,7 +2646,6 @@ class Picker:
|
|
|
2648
2646
|
# self.mode_index = 0
|
|
2649
2647
|
# self.highlights = [highlight for highlight in self.highlights if "type" not in highlight or highlight["type"] != "search" ]
|
|
2650
2648
|
# continue
|
|
2651
|
-
self.draw_screen(self.indexed_items, self.highlights)
|
|
2652
2649
|
|
|
2653
2650
|
elif self.check_key("opts_input", key, self.keys_dict):
|
|
2654
2651
|
self.logger.info(f"key_function opts_input")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|