listpick 0.1.13.51__tar.gz → 0.1.13.53__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.51/src/listpick.egg-info → listpick-0.1.13.53}/PKG-INFO +1 -1
- {listpick-0.1.13.51 → listpick-0.1.13.53}/setup.py +1 -1
- {listpick-0.1.13.51 → listpick-0.1.13.53}/src/listpick/listpick_app.py +22 -11
- {listpick-0.1.13.51 → listpick-0.1.13.53/src/listpick.egg-info}/PKG-INFO +1 -1
- {listpick-0.1.13.51 → listpick-0.1.13.53}/.gitignore +0 -0
- {listpick-0.1.13.51 → listpick-0.1.13.53}/CHANGELOG.md +0 -0
- {listpick-0.1.13.51 → listpick-0.1.13.53}/LICENSE.txt +0 -0
- {listpick-0.1.13.51 → listpick-0.1.13.53}/README.md +0 -0
- {listpick-0.1.13.51 → listpick-0.1.13.53}/TODO.md +0 -0
- {listpick-0.1.13.51 → listpick-0.1.13.53}/assets/aria2tui_screenshot.png +0 -0
- {listpick-0.1.13.51 → listpick-0.1.13.53}/assets/file_compare.png +0 -0
- {listpick-0.1.13.51 → listpick-0.1.13.53}/assets/lpfman.png +0 -0
- {listpick-0.1.13.51 → listpick-0.1.13.53}/examples/footer_string_example.py +0 -0
- {listpick-0.1.13.51 → listpick-0.1.13.53}/examples/input.toml +0 -0
- {listpick-0.1.13.51 → listpick-0.1.13.53}/examples/input.txt +0 -0
- {listpick-0.1.13.51 → listpick-0.1.13.53}/examples/list_files.toml +0 -0
- {listpick-0.1.13.51 → listpick-0.1.13.53}/examples/list_files_empty.toml +0 -0
- {listpick-0.1.13.51 → listpick-0.1.13.53}/examples/picker_example.py +0 -0
- {listpick-0.1.13.51 → listpick-0.1.13.53}/examples/setup.cfg +0 -0
- {listpick-0.1.13.51 → listpick-0.1.13.53}/examples/template.py +0 -0
- {listpick-0.1.13.51 → listpick-0.1.13.53}/examples/video_duplicates.toml +0 -0
- {listpick-0.1.13.51 → listpick-0.1.13.53}/listpick.py +0 -0
- {listpick-0.1.13.51 → listpick-0.1.13.53}/requirements.txt +0 -0
- {listpick-0.1.13.51 → listpick-0.1.13.53}/setup.cfg +0 -0
- {listpick-0.1.13.51 → listpick-0.1.13.53}/src/listpick/__init__.py +0 -0
- {listpick-0.1.13.51 → listpick-0.1.13.53}/src/listpick/__main__.py +0 -0
- {listpick-0.1.13.51 → listpick-0.1.13.53}/src/listpick/lpapp2.py +0 -0
- {listpick-0.1.13.51 → listpick-0.1.13.53}/src/listpick/ui/__init__.py +0 -0
- {listpick-0.1.13.51 → listpick-0.1.13.53}/src/listpick/ui/build_help.py +0 -0
- {listpick-0.1.13.51 → listpick-0.1.13.53}/src/listpick/ui/footer.py +0 -0
- {listpick-0.1.13.51 → listpick-0.1.13.53}/src/listpick/ui/help_screen.py +0 -0
- {listpick-0.1.13.51 → listpick-0.1.13.53}/src/listpick/ui/input_field.py +0 -0
- {listpick-0.1.13.51 → listpick-0.1.13.53}/src/listpick/ui/keys.py +0 -0
- {listpick-0.1.13.51 → listpick-0.1.13.53}/src/listpick/ui/pane_stuff.py +0 -0
- {listpick-0.1.13.51 → listpick-0.1.13.53}/src/listpick/ui/picker_colours.py +0 -0
- {listpick-0.1.13.51 → listpick-0.1.13.53}/src/listpick/utils/__init__.py +0 -0
- {listpick-0.1.13.51 → listpick-0.1.13.53}/src/listpick/utils/clipboard_operations.py +0 -0
- {listpick-0.1.13.51 → listpick-0.1.13.53}/src/listpick/utils/config.py +0 -0
- {listpick-0.1.13.51 → listpick-0.1.13.53}/src/listpick/utils/dump.py +0 -0
- {listpick-0.1.13.51 → listpick-0.1.13.53}/src/listpick/utils/filtering.py +0 -0
- {listpick-0.1.13.51 → listpick-0.1.13.53}/src/listpick/utils/generate_data.py +0 -0
- {listpick-0.1.13.51 → listpick-0.1.13.53}/src/listpick/utils/options_selectors.py +0 -0
- {listpick-0.1.13.51 → listpick-0.1.13.53}/src/listpick/utils/paste_operations.py +0 -0
- {listpick-0.1.13.51 → listpick-0.1.13.53}/src/listpick/utils/picker_log.py +0 -0
- {listpick-0.1.13.51 → listpick-0.1.13.53}/src/listpick/utils/search_and_filter_utils.py +0 -0
- {listpick-0.1.13.51 → listpick-0.1.13.53}/src/listpick/utils/searching.py +0 -0
- {listpick-0.1.13.51 → listpick-0.1.13.53}/src/listpick/utils/sorting.py +0 -0
- {listpick-0.1.13.51 → listpick-0.1.13.53}/src/listpick/utils/table_to_list_of_lists.py +0 -0
- {listpick-0.1.13.51 → listpick-0.1.13.53}/src/listpick/utils/utils.py +0 -0
- {listpick-0.1.13.51 → listpick-0.1.13.53}/src/listpick.egg-info/SOURCES.txt +0 -0
- {listpick-0.1.13.51 → listpick-0.1.13.53}/src/listpick.egg-info/dependency_links.txt +0 -0
- {listpick-0.1.13.51 → listpick-0.1.13.53}/src/listpick.egg-info/entry_points.txt +0 -0
- {listpick-0.1.13.51 → listpick-0.1.13.53}/src/listpick.egg-info/requires.txt +0 -0
- {listpick-0.1.13.51 → listpick-0.1.13.53}/src/listpick.egg-info/top_level.txt +0 -0
- {listpick-0.1.13.51 → listpick-0.1.13.53}/tests/kitty_control.sh +0 -0
- {listpick-0.1.13.51 → listpick-0.1.13.53}/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.53",
|
|
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.",
|
|
@@ -317,10 +317,11 @@ class Picker:
|
|
|
317
317
|
|
|
318
318
|
|
|
319
319
|
# Note: We have to set the footer after initialising the picker state so that the footer can use the get_function_data method
|
|
320
|
-
self.footer_options = [StandardFooter(self.stdscr, colours_start, self.get_function_data), CompactFooter(self.stdscr, colours_start, self.get_function_data), NoFooter(self.stdscr, colours_start, self.get_function_data)]
|
|
321
|
-
self.
|
|
320
|
+
# self.footer_options = [StandardFooter(self.stdscr, colours_start, self.get_function_data), CompactFooter(self.stdscr, colours_start, self.get_function_data), NoFooter(self.stdscr, colours_start, self.get_function_data)]
|
|
321
|
+
self.footer_options = []
|
|
322
|
+
# self.footer = self.footer_options[self.footer_style]
|
|
322
323
|
|
|
323
|
-
|
|
324
|
+
self.footer = CompactFooter(self.stdscr, colours_start, self.get_function_data)
|
|
324
325
|
|
|
325
326
|
|
|
326
327
|
|
|
@@ -657,14 +658,14 @@ class Picker:
|
|
|
657
658
|
pass
|
|
658
659
|
self.stdscr.refresh()
|
|
659
660
|
|
|
660
|
-
def
|
|
661
|
+
def draw_screen_wr(self, indexed_items: list[Tuple[int, list[str]]], highlights: list[dict] = [{}], clear: bool = True) -> None:
|
|
661
662
|
""" Try-except wrapper for the draw_screen_() method to prevent crashes when rapidly resizing the terminal. """
|
|
662
663
|
try:
|
|
663
|
-
self.
|
|
664
|
+
self.draw_screen(self.indexed_items, self.highlights, clear=clear)
|
|
664
665
|
except:
|
|
665
666
|
self.logger.warning(f"draw_screen function error")
|
|
666
667
|
|
|
667
|
-
def
|
|
668
|
+
def draw_screen(self, indexed_items: list[Tuple[int, list[str]]], highlights: list[dict] = [{}], clear: bool = True) -> None:
|
|
668
669
|
""" Draw Picker screen. """
|
|
669
670
|
self.logger.debug("Draw screen.")
|
|
670
671
|
|
|
@@ -978,6 +979,8 @@ class Picker:
|
|
|
978
979
|
else:
|
|
979
980
|
self.stdscr.addstr(0,w-3," ", curses.color_pair(self.colours_start+23) | curses.A_BOLD)
|
|
980
981
|
|
|
982
|
+
self.stdscr.refresh()
|
|
983
|
+
|
|
981
984
|
## Display footer
|
|
982
985
|
if self.show_footer:
|
|
983
986
|
# self.footer = NoFooter(self.stdscr, self.colours_start, self.get_function_data)
|
|
@@ -992,10 +995,15 @@ class Picker:
|
|
|
992
995
|
self.stdscr.addstr(h - 1, w-footer_string_width-1, " "*footer_string_width, curses.color_pair(self.colours_start+24))
|
|
993
996
|
self.stdscr.addstr(h - 1, w-footer_string_width-1, f"{disp_string}", curses.color_pair(self.colours_start+24))
|
|
994
997
|
|
|
998
|
+
|
|
999
|
+
self.stdscr.refresh()
|
|
1000
|
+
|
|
995
1001
|
## Display infobox
|
|
996
1002
|
if self.display_infobox:
|
|
997
1003
|
self.infobox(self.stdscr, message=self.infobox_items, title=self.infobox_title)
|
|
998
1004
|
# self.stdscr.timeout(2000) # timeout is set to 50 in order to get the infobox to be displayed so here we reset it to 2000
|
|
1005
|
+
# self.stdscr.refresh()
|
|
1006
|
+
|
|
999
1007
|
# if self.display_infobox:
|
|
1000
1008
|
# # self.stdscr.refresh()
|
|
1001
1009
|
# # self.infobox(self.stdscr, message=self.infobox_items, title=self.infobox_title)
|
|
@@ -1909,7 +1917,7 @@ class Picker:
|
|
|
1909
1917
|
|
|
1910
1918
|
def get_word_list(self) -> list[str]:
|
|
1911
1919
|
""" Get a list of all words used in any cell of the picker. Used for completion in search/filter input_field. """
|
|
1912
|
-
self.logger.info(f"function:
|
|
1920
|
+
self.logger.info(f"function: get_word_list()")
|
|
1913
1921
|
translator = str.maketrans('', '', string.punctuation)
|
|
1914
1922
|
|
|
1915
1923
|
words = []
|
|
@@ -1979,6 +1987,8 @@ class Picker:
|
|
|
1979
1987
|
|
|
1980
1988
|
self.initialise_variables(get_data=self.get_data_startup)
|
|
1981
1989
|
|
|
1990
|
+
self.draw_screen(self.indexed_items, self.highlights)
|
|
1991
|
+
|
|
1982
1992
|
initial_time = time.time()
|
|
1983
1993
|
initial_time_footer = time.time()-self.footer_timer
|
|
1984
1994
|
|
|
@@ -1999,7 +2009,6 @@ class Picker:
|
|
|
1999
2009
|
|
|
2000
2010
|
self.stdscr.refresh()
|
|
2001
2011
|
|
|
2002
|
-
|
|
2003
2012
|
# Initialize colours
|
|
2004
2013
|
# Check if terminal supports color
|
|
2005
2014
|
|
|
@@ -2008,6 +2017,7 @@ class Picker:
|
|
|
2008
2017
|
self.draw_screen(self.indexed_items, self.highlights)
|
|
2009
2018
|
|
|
2010
2019
|
if self.display_only:
|
|
2020
|
+
self.stdscr.refresh()
|
|
2011
2021
|
return [], "", {}
|
|
2012
2022
|
|
|
2013
2023
|
# Main loop
|
|
@@ -3199,11 +3209,12 @@ def main() -> None:
|
|
|
3199
3209
|
function_data["centre_in_terminal_vertical"] = True
|
|
3200
3210
|
function_data["highlight_full_row"] = True
|
|
3201
3211
|
function_data["pin_cursor"] = True
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3212
|
+
function_data["display_infobox"] = True
|
|
3213
|
+
function_data["infobox_items"] = [["1"], ["2"], ["3"]]
|
|
3214
|
+
function_data["infobox_title"] = "Title"
|
|
3205
3215
|
function_data["footer_string"] = "Title"
|
|
3206
3216
|
function_data["highlights"] = highlights
|
|
3217
|
+
function_data["show_footer"] = False
|
|
3207
3218
|
|
|
3208
3219
|
|
|
3209
3220
|
# function_data["debug"] = True
|
|
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
|
|
File without changes
|