listpick 0.1.15.16__tar.gz → 0.1.15.18__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.
Potentially problematic release.
This version of listpick might be problematic. Click here for more details.
- {listpick-0.1.15.16/src/listpick.egg-info → listpick-0.1.15.18}/PKG-INFO +1 -1
- {listpick-0.1.15.16 → listpick-0.1.15.18}/setup.py +1 -1
- {listpick-0.1.15.16 → listpick-0.1.15.18}/src/listpick/listpick_app.py +7 -3
- {listpick-0.1.15.16 → listpick-0.1.15.18}/src/listpick/ui/picker_colours.py +56 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18/src/listpick.egg-info}/PKG-INFO +1 -1
- {listpick-0.1.15.16 → listpick-0.1.15.18}/.gitignore +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/CHANGELOG.md +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/LICENSE.txt +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/README.md +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/TODO.md +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/assets/aria2tui_screenshot.png +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/assets/file_compare.png +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/assets/lpfman.png +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/examples/data_generation/list_files.toml +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/examples/data_generation/list_files_empty.toml +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/examples/data_generation/video_duplicates.toml +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/examples/data_generation/video_mediainfo.toml +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/examples/input_files/polynomials.tsv +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/examples/input_guides/gnuplot_graph.md +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/examples/picker/auxiallary_files/2024-25_Premier_League.pkl +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/examples/picker/footer_string_example.py +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/examples/picker/picker_example.py +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/examples/picker/template.py +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/examples/picker/wikipedia_table.py +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/listpick.py +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/requirements.txt +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/setup.cfg +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/src/listpick/__init__.py +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/src/listpick/__main__.py +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/src/listpick/pane/__init__.py +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/src/listpick/pane/get_data.py +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/src/listpick/pane/pane_functions.py +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/src/listpick/pane/pane_utils.py +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/src/listpick/ui/__init__.py +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/src/listpick/ui/build_help.py +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/src/listpick/ui/footer.py +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/src/listpick/ui/help_screen.py +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/src/listpick/ui/input_field.py +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/src/listpick/ui/keys.py +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/src/listpick/utils/__init__.py +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/src/listpick/utils/clipboard_operations.py +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/src/listpick/utils/config.py +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/src/listpick/utils/dump.py +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/src/listpick/utils/filtering.py +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/src/listpick/utils/generate_data.py +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/src/listpick/utils/graphing.py +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/src/listpick/utils/keycodes.py +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/src/listpick/utils/options_selectors.py +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/src/listpick/utils/paste_operations.py +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/src/listpick/utils/picker_log.py +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/src/listpick/utils/search_and_filter_utils.py +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/src/listpick/utils/searching.py +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/src/listpick/utils/sorting.py +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/src/listpick/utils/table_to_list_of_lists.py +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/src/listpick/utils/user_input.py +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/src/listpick/utils/utils.py +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/src/listpick.egg-info/SOURCES.txt +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/src/listpick.egg-info/dependency_links.txt +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/src/listpick.egg-info/entry_points.txt +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/src/listpick.egg-info/requires.txt +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/src/listpick.egg-info/top_level.txt +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/tests/kitty_control.sh +0 -0
- {listpick-0.1.15.16 → listpick-0.1.15.18}/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.15.
|
|
19
|
+
version = "0.1.15.18",
|
|
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.",
|
|
@@ -890,6 +890,10 @@ class Picker:
|
|
|
890
890
|
col_str = self.header[self.selected_column][:self.column_widths[self.selected_column]-len(number)]
|
|
891
891
|
highlighted_col_str = (number+f"{col_str:^{self.column_widths[self.selected_column]-len(number)}}") + self.separator
|
|
892
892
|
|
|
893
|
+
if len(self.column_widths) == 1:
|
|
894
|
+
colour = curses.color_pair(self.colours_start+28) | curses.A_BOLD
|
|
895
|
+
else:
|
|
896
|
+
colour = curses.color_pair(self.colours_start+19) | curses.A_BOLD
|
|
893
897
|
# Start of selected column is on the screen
|
|
894
898
|
if self.leftmost_char <= len(up_to_selected_col) and self.leftmost_char+self.rows_w-self.startx > len(up_to_selected_col):
|
|
895
899
|
x_pos = len(up_to_selected_col) - self.leftmost_char + self.startx
|
|
@@ -903,7 +907,7 @@ class Picker:
|
|
|
903
907
|
overflow = (len(up_to_selected_col)+len(highlighted_col_str)) - (self.leftmost_char+self.rows_w - self.startx)
|
|
904
908
|
disp_str = highlighted_col_str[:-overflow]
|
|
905
909
|
|
|
906
|
-
self.stdscr.addstr(header_ypos, x_pos , disp_str,
|
|
910
|
+
self.stdscr.addstr(header_ypos, x_pos , disp_str, colour)
|
|
907
911
|
# Start of the cell is to the right of the screen
|
|
908
912
|
elif self.leftmost_char+self.rows_w <= len(up_to_selected_col):
|
|
909
913
|
pass
|
|
@@ -912,7 +916,7 @@ class Picker:
|
|
|
912
916
|
x_pos = self.startx
|
|
913
917
|
beg = self.leftmost_char - len(up_to_selected_col)
|
|
914
918
|
disp_str = highlighted_col_str[beg:]
|
|
915
|
-
self.stdscr.addstr(header_ypos, x_pos , disp_str,
|
|
919
|
+
self.stdscr.addstr(header_ypos, x_pos , disp_str, colour)
|
|
916
920
|
# The middle of the cell is on the screen, the start and end of the cell are not
|
|
917
921
|
elif self.leftmost_char <= len(up_to_selected_col) + col_width//2 <= self.leftmost_char+self.rows_w:
|
|
918
922
|
beg = self.leftmost_char - len(up_to_selected_col)
|
|
@@ -920,7 +924,7 @@ class Picker:
|
|
|
920
924
|
disp_str = highlighted_col_str[beg:-overflow]
|
|
921
925
|
|
|
922
926
|
x_pos = self.startx
|
|
923
|
-
self.stdscr.addstr(header_ypos, x_pos , disp_str,
|
|
927
|
+
self.stdscr.addstr(header_ypos, x_pos , disp_str, colour)
|
|
924
928
|
# The cell is to the left of the screen
|
|
925
929
|
else:
|
|
926
930
|
pass
|
|
@@ -293,6 +293,61 @@ def get_colours(pick:int=0) -> Dict[str, int]:
|
|
|
293
293
|
'deselecting_cell_fg': curses.COLOR_WHITE,
|
|
294
294
|
'active_column_bg': curses.COLOR_BLACK,
|
|
295
295
|
'active_column_fg': curses.COLOR_WHITE,
|
|
296
|
+
},
|
|
297
|
+
### (5) Blue background, black title/footer, white modes
|
|
298
|
+
{
|
|
299
|
+
'background': 25,
|
|
300
|
+
'normal_fg': 255,
|
|
301
|
+
'unselected_bg': 25,
|
|
302
|
+
'unselected_fg': 255,
|
|
303
|
+
'cursor_bg': 220,
|
|
304
|
+
'cursor_fg': 232,
|
|
305
|
+
'selected_bg': 202,
|
|
306
|
+
'selected_fg': 255,
|
|
307
|
+
'header_bg': 255,
|
|
308
|
+
'header_fg': 232,
|
|
309
|
+
'error_bg': 232,
|
|
310
|
+
'error_fg': curses.COLOR_RED,
|
|
311
|
+
'complete_bg': 232,
|
|
312
|
+
'complete_fg': 82,
|
|
313
|
+
'waiting_bg': 232,
|
|
314
|
+
'waiting_fg': curses.COLOR_YELLOW,
|
|
315
|
+
'active_bg': 232,
|
|
316
|
+
'active_fg': 33,
|
|
317
|
+
'paused_bg': 232,
|
|
318
|
+
'paused_fg': 244,
|
|
319
|
+
'search_bg': 162,
|
|
320
|
+
'search_fg': 255,
|
|
321
|
+
'active_input_bg': 255,
|
|
322
|
+
'active_input_fg': 232,
|
|
323
|
+
'modes_selected_bg': 25,
|
|
324
|
+
'modes_selected_fg': 255,
|
|
325
|
+
'modes_unselected_bg': 255,
|
|
326
|
+
'modes_unselected_fg': 232,
|
|
327
|
+
'title_bar': 160,
|
|
328
|
+
'title_bg': 232,
|
|
329
|
+
'title_fg': 255,
|
|
330
|
+
'scroll_bar_bg': 247,
|
|
331
|
+
'selected_header_column_bg': 232,
|
|
332
|
+
'selected_header_column_fg': 255,
|
|
333
|
+
'unselected_header_column_bg': 255,
|
|
334
|
+
'unselected_header_column_fg': 232,
|
|
335
|
+
'footer_bg': 232,
|
|
336
|
+
'footer_fg': 255,
|
|
337
|
+
'refreshing_bg': 25,
|
|
338
|
+
'refreshing_fg': 255,
|
|
339
|
+
'refreshing_inactive_bg': 28,
|
|
340
|
+
'refreshing_inactive_fg': 232,
|
|
341
|
+
'40pc_bg': 232,
|
|
342
|
+
'40pc_fg': 166,
|
|
343
|
+
'footer_string_bg': 232,
|
|
344
|
+
'footer_string_fg': 255,
|
|
345
|
+
'selected_cell_bg': 214,
|
|
346
|
+
'selected_cell_fg': 232,
|
|
347
|
+
'deselecting_cell_bg': 162,
|
|
348
|
+
'deselecting_cell_fg': 255,
|
|
349
|
+
'active_column_bg': 234,
|
|
350
|
+
'active_column_fg': 255,
|
|
296
351
|
},
|
|
297
352
|
]
|
|
298
353
|
for colour in colours:
|
|
@@ -361,6 +416,7 @@ def get_notification_colours(pick:int=0) -> Dict[str, int]:
|
|
|
361
416
|
colours['background'] = 237
|
|
362
417
|
colours['unselected_bg'] = 237
|
|
363
418
|
colours['cursor_bg'] = 238
|
|
419
|
+
colours['cursor_fg'] = 255
|
|
364
420
|
colours['selected_bg'] = 237
|
|
365
421
|
|
|
366
422
|
colours['selected_header_column_fg'] = colours['header_fg']
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|