listpick 0.1.13.21__tar.gz → 0.1.13.23__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.21/src/listpick.egg-info → listpick-0.1.13.23}/PKG-INFO +1 -1
- {listpick-0.1.13.21 → listpick-0.1.13.23}/setup.py +1 -1
- {listpick-0.1.13.21 → listpick-0.1.13.23}/src/listpick/listpick_app.py +31 -28
- {listpick-0.1.13.21 → listpick-0.1.13.23/src/listpick.egg-info}/PKG-INFO +1 -1
- {listpick-0.1.13.21 → listpick-0.1.13.23}/.gitignore +0 -0
- {listpick-0.1.13.21 → listpick-0.1.13.23}/CHANGELOG.md +0 -0
- {listpick-0.1.13.21 → listpick-0.1.13.23}/LICENSE.txt +0 -0
- {listpick-0.1.13.21 → listpick-0.1.13.23}/README.md +0 -0
- {listpick-0.1.13.21 → listpick-0.1.13.23}/TODO.md +0 -0
- {listpick-0.1.13.21 → listpick-0.1.13.23}/assets/aria2tui_screenshot.png +0 -0
- {listpick-0.1.13.21 → listpick-0.1.13.23}/assets/file_compare.png +0 -0
- {listpick-0.1.13.21 → listpick-0.1.13.23}/assets/lpfman.png +0 -0
- {listpick-0.1.13.21 → listpick-0.1.13.23}/examples/footer_string_example.py +0 -0
- {listpick-0.1.13.21 → listpick-0.1.13.23}/examples/input.toml +0 -0
- {listpick-0.1.13.21 → listpick-0.1.13.23}/examples/input.txt +0 -0
- {listpick-0.1.13.21 → listpick-0.1.13.23}/examples/list_files.toml +0 -0
- {listpick-0.1.13.21 → listpick-0.1.13.23}/examples/list_files_empty.toml +0 -0
- {listpick-0.1.13.21 → listpick-0.1.13.23}/examples/picker_example.py +0 -0
- {listpick-0.1.13.21 → listpick-0.1.13.23}/examples/setup.cfg +0 -0
- {listpick-0.1.13.21 → listpick-0.1.13.23}/examples/template.py +0 -0
- {listpick-0.1.13.21 → listpick-0.1.13.23}/examples/video_duplicates.toml +0 -0
- {listpick-0.1.13.21 → listpick-0.1.13.23}/listpick.py +0 -0
- {listpick-0.1.13.21 → listpick-0.1.13.23}/requirements.txt +0 -0
- {listpick-0.1.13.21 → listpick-0.1.13.23}/setup.cfg +0 -0
- {listpick-0.1.13.21 → listpick-0.1.13.23}/src/listpick/__init__.py +0 -0
- {listpick-0.1.13.21 → listpick-0.1.13.23}/src/listpick/__main__.py +0 -0
- {listpick-0.1.13.21 → listpick-0.1.13.23}/src/listpick/ui/__init__.py +0 -0
- {listpick-0.1.13.21 → listpick-0.1.13.23}/src/listpick/ui/build_help.py +0 -0
- {listpick-0.1.13.21 → listpick-0.1.13.23}/src/listpick/ui/footer.py +0 -0
- {listpick-0.1.13.21 → listpick-0.1.13.23}/src/listpick/ui/help_screen.py +0 -0
- {listpick-0.1.13.21 → listpick-0.1.13.23}/src/listpick/ui/input_field.py +0 -0
- {listpick-0.1.13.21 → listpick-0.1.13.23}/src/listpick/ui/keys.py +0 -0
- {listpick-0.1.13.21 → listpick-0.1.13.23}/src/listpick/ui/pane_stuff.py +0 -0
- {listpick-0.1.13.21 → listpick-0.1.13.23}/src/listpick/ui/picker_colours.py +0 -0
- {listpick-0.1.13.21 → listpick-0.1.13.23}/src/listpick/utils/__init__.py +0 -0
- {listpick-0.1.13.21 → listpick-0.1.13.23}/src/listpick/utils/clipboard_operations.py +0 -0
- {listpick-0.1.13.21 → listpick-0.1.13.23}/src/listpick/utils/config.py +0 -0
- {listpick-0.1.13.21 → listpick-0.1.13.23}/src/listpick/utils/dump.py +0 -0
- {listpick-0.1.13.21 → listpick-0.1.13.23}/src/listpick/utils/filtering.py +0 -0
- {listpick-0.1.13.21 → listpick-0.1.13.23}/src/listpick/utils/generate_data.py +0 -0
- {listpick-0.1.13.21 → listpick-0.1.13.23}/src/listpick/utils/options_selectors.py +0 -0
- {listpick-0.1.13.21 → listpick-0.1.13.23}/src/listpick/utils/paste_operations.py +0 -0
- {listpick-0.1.13.21 → listpick-0.1.13.23}/src/listpick/utils/picker_log.py +0 -0
- {listpick-0.1.13.21 → listpick-0.1.13.23}/src/listpick/utils/search_and_filter_utils.py +0 -0
- {listpick-0.1.13.21 → listpick-0.1.13.23}/src/listpick/utils/searching.py +0 -0
- {listpick-0.1.13.21 → listpick-0.1.13.23}/src/listpick/utils/sorting.py +0 -0
- {listpick-0.1.13.21 → listpick-0.1.13.23}/src/listpick/utils/table_to_list_of_lists.py +0 -0
- {listpick-0.1.13.21 → listpick-0.1.13.23}/src/listpick/utils/utils.py +0 -0
- {listpick-0.1.13.21 → listpick-0.1.13.23}/src/listpick.egg-info/SOURCES.txt +0 -0
- {listpick-0.1.13.21 → listpick-0.1.13.23}/src/listpick.egg-info/dependency_links.txt +0 -0
- {listpick-0.1.13.21 → listpick-0.1.13.23}/src/listpick.egg-info/entry_points.txt +0 -0
- {listpick-0.1.13.21 → listpick-0.1.13.23}/src/listpick.egg-info/requires.txt +0 -0
- {listpick-0.1.13.21 → listpick-0.1.13.23}/src/listpick.egg-info/top_level.txt +0 -0
- {listpick-0.1.13.21 → listpick-0.1.13.23}/tests/kitty_control.sh +0 -0
- {listpick-0.1.13.21 → listpick-0.1.13.23}/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.23",
|
|
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.",
|
|
@@ -988,6 +988,9 @@ class Picker:
|
|
|
988
988
|
## Display infobox
|
|
989
989
|
if self.display_infobox:
|
|
990
990
|
self.infobox(self.stdscr, message=self.infobox_items, title=self.infobox_title)
|
|
991
|
+
|
|
992
|
+
# if not self.display_only:
|
|
993
|
+
# self.stdscr.refresh()
|
|
991
994
|
# 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
|
|
992
995
|
|
|
993
996
|
|
|
@@ -1012,30 +1015,33 @@ class Picker:
|
|
|
1012
1015
|
}
|
|
1013
1016
|
if len(submenu_items) > notification_height - 2:
|
|
1014
1017
|
submenu_items = submenu_items[:notification_height-3] + [f"{'....':^{notification_width}}"]
|
|
1015
|
-
while True:
|
|
1016
|
-
|
|
1018
|
+
# while True:
|
|
1019
|
+
h, w = stdscr.getmaxyx()
|
|
1017
1020
|
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1021
|
+
# submenu_win = curses.newwin(notification_height, notification_width, 3, w - (notification_width+4))
|
|
1022
|
+
submenu_win = self.stdscr.subpad(notification_height, notification_width, 3, w - (notification_width+4))
|
|
1023
|
+
submenu_win.erase()
|
|
1024
|
+
# submenu_win.untouchwin()
|
|
1025
|
+
infobox_data = {
|
|
1026
|
+
"items": submenu_items,
|
|
1027
|
+
"colours": notification_colours,
|
|
1028
|
+
"colours_start": self.notification_colours_start,
|
|
1029
|
+
"disabled_keys": [ord('z'), ord('c')],
|
|
1030
|
+
"show_footer": False,
|
|
1031
|
+
"top_gap": 0,
|
|
1032
|
+
"key_remappings": notification_remap_keys,
|
|
1033
|
+
"display_only": True,
|
|
1034
|
+
"hidden_columns": [],
|
|
1035
|
+
"title": title,
|
|
1036
|
+
"reset_colours": False,
|
|
1037
|
+
}
|
|
1033
1038
|
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1039
|
+
# for i in range(3, 3+notification_height):
|
|
1040
|
+
# self.stdscr.addstr(i, w - (notification_width+4), ' '*notification_width, curses.color_pair(4))
|
|
1041
|
+
OptionPicker = Picker(submenu_win, **infobox_data)
|
|
1042
|
+
s, o, f = OptionPicker.run()
|
|
1043
|
+
submenu_win.refresh()
|
|
1037
1044
|
|
|
1038
|
-
return submenu_win
|
|
1039
1045
|
|
|
1040
1046
|
def get_function_data(self) -> dict:
|
|
1041
1047
|
self.logger.debug(f"function: get_function_data()")
|
|
@@ -1896,8 +1902,6 @@ class Picker:
|
|
|
1896
1902
|
|
|
1897
1903
|
self.initialise_variables(get_data=self.get_data_startup)
|
|
1898
1904
|
|
|
1899
|
-
self.draw_screen(self.indexed_items, self.highlights)
|
|
1900
|
-
|
|
1901
1905
|
initial_time = time.time()
|
|
1902
1906
|
initial_time_footer = time.time()-self.footer_timer
|
|
1903
1907
|
|
|
@@ -1916,19 +1920,18 @@ class Picker:
|
|
|
1916
1920
|
else:
|
|
1917
1921
|
self.stdscr.erase()
|
|
1918
1922
|
|
|
1919
|
-
self.stdscr.refresh()
|
|
1920
1923
|
|
|
1921
1924
|
# Initialize colours
|
|
1922
1925
|
# Check if terminal supports color
|
|
1923
1926
|
|
|
1924
1927
|
# Set terminal background color
|
|
1925
|
-
self.stdscr.bkgd(' ', curses.color_pair(self.colours_start+3)) # Apply background color
|
|
1928
|
+
# self.stdscr.bkgd(' ', curses.color_pair(self.colours_start+3)) # Apply background color
|
|
1926
1929
|
self.draw_screen(self.indexed_items, self.highlights)
|
|
1927
1930
|
|
|
1928
1931
|
if self.display_only:
|
|
1929
|
-
self.stdscr.refresh()
|
|
1930
|
-
function_data = self.get_function_data()
|
|
1931
|
-
return [], "",
|
|
1932
|
+
# self.stdscr.refresh()
|
|
1933
|
+
# function_data = self.get_function_data()
|
|
1934
|
+
return [], "", {}
|
|
1932
1935
|
|
|
1933
1936
|
# Main loop
|
|
1934
1937
|
|
|
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
|