listpick 0.1.15.4__tar.gz → 0.1.15.6__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.

Files changed (63) hide show
  1. {listpick-0.1.15.4 → listpick-0.1.15.6}/CHANGELOG.md +6 -2
  2. {listpick-0.1.15.4/src/listpick.egg-info → listpick-0.1.15.6}/PKG-INFO +1 -1
  3. {listpick-0.1.15.4 → listpick-0.1.15.6}/TODO.md +3 -1
  4. {listpick-0.1.15.4 → listpick-0.1.15.6}/setup.py +1 -1
  5. {listpick-0.1.15.4 → listpick-0.1.15.6}/src/listpick/listpick_app.py +35 -30
  6. {listpick-0.1.15.4 → listpick-0.1.15.6/src/listpick.egg-info}/PKG-INFO +1 -1
  7. {listpick-0.1.15.4 → listpick-0.1.15.6}/.gitignore +0 -0
  8. {listpick-0.1.15.4 → listpick-0.1.15.6}/LICENSE.txt +0 -0
  9. {listpick-0.1.15.4 → listpick-0.1.15.6}/README.md +0 -0
  10. {listpick-0.1.15.4 → listpick-0.1.15.6}/assets/aria2tui_screenshot.png +0 -0
  11. {listpick-0.1.15.4 → listpick-0.1.15.6}/assets/file_compare.png +0 -0
  12. {listpick-0.1.15.4 → listpick-0.1.15.6}/assets/lpfman.png +0 -0
  13. {listpick-0.1.15.4 → listpick-0.1.15.6}/examples/data_generation/list_files.toml +0 -0
  14. {listpick-0.1.15.4 → listpick-0.1.15.6}/examples/data_generation/list_files_empty.toml +0 -0
  15. {listpick-0.1.15.4 → listpick-0.1.15.6}/examples/data_generation/video_duplicates.toml +0 -0
  16. {listpick-0.1.15.4 → listpick-0.1.15.6}/examples/data_generation/video_mediainfo.toml +0 -0
  17. {listpick-0.1.15.4 → listpick-0.1.15.6}/examples/input_files/polynomials.tsv +0 -0
  18. {listpick-0.1.15.4 → listpick-0.1.15.6}/examples/input_guides/gnuplot_graph.md +0 -0
  19. {listpick-0.1.15.4 → listpick-0.1.15.6}/examples/picker/auxiallary_files/2024-25_Premier_League.pkl +0 -0
  20. {listpick-0.1.15.4 → listpick-0.1.15.6}/examples/picker/footer_string_example.py +0 -0
  21. {listpick-0.1.15.4 → listpick-0.1.15.6}/examples/picker/picker_example.py +0 -0
  22. {listpick-0.1.15.4 → listpick-0.1.15.6}/examples/picker/template.py +0 -0
  23. {listpick-0.1.15.4 → listpick-0.1.15.6}/examples/picker/wikipedia_table.py +0 -0
  24. {listpick-0.1.15.4 → listpick-0.1.15.6}/listpick.py +0 -0
  25. {listpick-0.1.15.4 → listpick-0.1.15.6}/requirements.txt +0 -0
  26. {listpick-0.1.15.4 → listpick-0.1.15.6}/setup.cfg +0 -0
  27. {listpick-0.1.15.4 → listpick-0.1.15.6}/src/listpick/__init__.py +0 -0
  28. {listpick-0.1.15.4 → listpick-0.1.15.6}/src/listpick/__main__.py +0 -0
  29. {listpick-0.1.15.4 → listpick-0.1.15.6}/src/listpick/pane/__init__.py +0 -0
  30. {listpick-0.1.15.4 → listpick-0.1.15.6}/src/listpick/pane/get_data.py +0 -0
  31. {listpick-0.1.15.4 → listpick-0.1.15.6}/src/listpick/pane/pane_functions.py +0 -0
  32. {listpick-0.1.15.4 → listpick-0.1.15.6}/src/listpick/pane/pane_utils.py +0 -0
  33. {listpick-0.1.15.4 → listpick-0.1.15.6}/src/listpick/ui/__init__.py +0 -0
  34. {listpick-0.1.15.4 → listpick-0.1.15.6}/src/listpick/ui/build_help.py +0 -0
  35. {listpick-0.1.15.4 → listpick-0.1.15.6}/src/listpick/ui/footer.py +0 -0
  36. {listpick-0.1.15.4 → listpick-0.1.15.6}/src/listpick/ui/help_screen.py +0 -0
  37. {listpick-0.1.15.4 → listpick-0.1.15.6}/src/listpick/ui/input_field.py +0 -0
  38. {listpick-0.1.15.4 → listpick-0.1.15.6}/src/listpick/ui/keys.py +0 -0
  39. {listpick-0.1.15.4 → listpick-0.1.15.6}/src/listpick/ui/picker_colours.py +0 -0
  40. {listpick-0.1.15.4 → listpick-0.1.15.6}/src/listpick/utils/__init__.py +0 -0
  41. {listpick-0.1.15.4 → listpick-0.1.15.6}/src/listpick/utils/clipboard_operations.py +0 -0
  42. {listpick-0.1.15.4 → listpick-0.1.15.6}/src/listpick/utils/config.py +0 -0
  43. {listpick-0.1.15.4 → listpick-0.1.15.6}/src/listpick/utils/dump.py +0 -0
  44. {listpick-0.1.15.4 → listpick-0.1.15.6}/src/listpick/utils/filtering.py +0 -0
  45. {listpick-0.1.15.4 → listpick-0.1.15.6}/src/listpick/utils/generate_data.py +0 -0
  46. {listpick-0.1.15.4 → listpick-0.1.15.6}/src/listpick/utils/graphing.py +0 -0
  47. {listpick-0.1.15.4 → listpick-0.1.15.6}/src/listpick/utils/keycodes.py +0 -0
  48. {listpick-0.1.15.4 → listpick-0.1.15.6}/src/listpick/utils/options_selectors.py +0 -0
  49. {listpick-0.1.15.4 → listpick-0.1.15.6}/src/listpick/utils/paste_operations.py +0 -0
  50. {listpick-0.1.15.4 → listpick-0.1.15.6}/src/listpick/utils/picker_log.py +0 -0
  51. {listpick-0.1.15.4 → listpick-0.1.15.6}/src/listpick/utils/search_and_filter_utils.py +0 -0
  52. {listpick-0.1.15.4 → listpick-0.1.15.6}/src/listpick/utils/searching.py +0 -0
  53. {listpick-0.1.15.4 → listpick-0.1.15.6}/src/listpick/utils/sorting.py +0 -0
  54. {listpick-0.1.15.4 → listpick-0.1.15.6}/src/listpick/utils/table_to_list_of_lists.py +0 -0
  55. {listpick-0.1.15.4 → listpick-0.1.15.6}/src/listpick/utils/user_input.py +0 -0
  56. {listpick-0.1.15.4 → listpick-0.1.15.6}/src/listpick/utils/utils.py +0 -0
  57. {listpick-0.1.15.4 → listpick-0.1.15.6}/src/listpick.egg-info/SOURCES.txt +0 -0
  58. {listpick-0.1.15.4 → listpick-0.1.15.6}/src/listpick.egg-info/dependency_links.txt +0 -0
  59. {listpick-0.1.15.4 → listpick-0.1.15.6}/src/listpick.egg-info/entry_points.txt +0 -0
  60. {listpick-0.1.15.4 → listpick-0.1.15.6}/src/listpick.egg-info/requires.txt +0 -0
  61. {listpick-0.1.15.4 → listpick-0.1.15.6}/src/listpick.egg-info/top_level.txt +0 -0
  62. {listpick-0.1.15.4 → listpick-0.1.15.6}/tests/kitty_control.sh +0 -0
  63. {listpick-0.1.15.4 → listpick-0.1.15.6}/tests/sorting_dates.csv +0 -0
@@ -1,10 +1,14 @@
1
1
  # CHANGELOG.md
2
2
  Note that the changes between 0.1.11.0 and 1.1.12.0 are listed under 0.1.11
3
3
 
4
+ ## [0.1.15.6] 2025-07-27
5
+ - Fixed misaligned header with very long header values.
6
+
4
7
  ## [0.1.15.4] 2025-07-27
5
- - Fixed error with filtering when there are no rows.
6
- - Fixed error with changing modes when there are no rows.
8
+ - Fixed error with filtering when there are no rows (i.e., items=[[]])
9
+ - Fixed error with changing modes when there are no rows (i.e., items=[[]]).
7
10
 
11
+ Fixed errors caused by filtering when items=[[]]; this also fixed problems changing modes when items=[[]].
8
12
  ## [0.1.15.3] 2025-07-27
9
13
  - Added error checking when setting the cursor_pos_id in fetch_data.
10
14
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: listpick
3
- Version: 0.1.15.4
3
+ Version: 0.1.15.6
4
4
  Summary: Listpick is a powerful TUI data tool for creating TUI apps or viewing/comparing tabulated data.
5
5
  Home-page: https://github.com/grimandgreedy/listpick
6
6
  Author: Grim
@@ -1,7 +1,7 @@
1
1
  # TODO for listpick
2
2
 
3
3
 
4
- ASAP
4
+ > [!IMPORTANT] ASAP
5
5
  > - [ ] Unify in-app load and command-line input file
6
6
  > - [ ] Implement default_option_selector and pass the picker options (!!!)
7
7
  > - [ ] Make sure that all class initialisation variables are returned in the get_function_variables function.
@@ -381,6 +381,8 @@ ASAP
381
381
  > - [x] Highlighted cells display padded cell string when it should not be padded.
382
382
  > - [x] When there is an active search it overlaps the last row.
383
383
  > - [x] Update footer height when there is a search query.
384
+ > - [x] Header columns are not aligned with long header values.
385
+ > - [x] Done: 2025-08-27
384
386
 
385
387
 
386
388
 
@@ -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.4",
19
+ version = "0.1.15.6",
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.",
@@ -866,7 +866,11 @@ class Picker:
866
866
  number = f"{i}. " if self.number_columns else ""
867
867
  # number = f"{intStringToExponentString(str(i))}. " if self.number_columns else ""
868
868
  header_str += number
869
- header_str += f"{self.header[i]:^{self.column_widths[i]-len(number)}}"
869
+ # header_str += f"{self.header[i]:^{self.column_widths[i]-len(number)}}"
870
+ col_str = self.header[i][:self.column_widths[i]-len(number)]
871
+
872
+
873
+ header_str += f"{col_str:^{self.column_widths[i]-len(number)}}"
870
874
  header_str += self.separator
871
875
 
872
876
  header_str = header_str[self.leftmost_char:]
@@ -885,7 +889,7 @@ class Picker:
885
889
  highlighted_col_str = (number+f"{self.header[self.selected_column]:^{self.column_widths[self.selected_column]-len(number)}}") + self.separator
886
890
  end_of_highlighted_col_str = self.rows_w-(highlighed_col_startx+len(highlighted_col_str)) if (highlighed_col_startx+len(highlighted_col_str)) > self.rows_w else len(highlighted_col_str)
887
891
  start_of_highlighted_col_str = max(self.leftmost_char - len(up_to_selected_col), 0)
888
- self.stdscr.addstr(header_ypos, highlighed_col_startx , highlighted_col_str[start_of_highlighted_col_str:end_of_highlighted_col_str], curses.color_pair(self.colours_start+19) | curses.A_BOLD)
892
+ self.stdscr.addstr(header_ypos, highlighed_col_startx , highlighted_col_str[start_of_highlighted_col_str:end_of_highlighted_col_str][:self.column_widths[self.selected_column]+len(self.separator)], curses.color_pair(self.colours_start+19) | curses.A_BOLD)
889
893
  except:
890
894
  pass
891
895
 
@@ -3720,28 +3724,29 @@ def main() -> None:
3720
3724
  pass
3721
3725
 
3722
3726
  # function_data["colour_theme_number"] = 3
3723
- function_data["modes"] = [
3724
- {
3725
- 'filter': '',
3726
- 'sort': 0,
3727
- 'name': 'All',
3728
- },
3729
- {
3730
- 'filter': '--2 miss',
3731
- 'name': 'miss',
3732
- },
3733
- {
3734
- 'filter': '--2 mp4',
3735
- 'name': 'mp4',
3736
- },
3737
- ]
3738
- highlights = [
3739
- {
3740
- "field": 1,
3741
- "match": "a",
3742
- "color": 8,
3743
- }
3744
- ]
3727
+ # function_data["modes"] = [
3728
+ # {
3729
+ # 'filter': '',
3730
+ # 'sort': 0,
3731
+ # 'name': 'All',
3732
+ # },
3733
+ # {
3734
+ # 'filter': '--2 miss',
3735
+ # 'name': 'miss',
3736
+ # },
3737
+ # {
3738
+ # 'filter': '--2 mp4',
3739
+ # 'name': 'mp4',
3740
+ # },
3741
+ # ]
3742
+ # function_data["highlights"] = [
3743
+ # {
3744
+ # "field": 1,
3745
+ # "match": "a",
3746
+ # "color": 8,
3747
+ # }
3748
+ # ]
3749
+
3745
3750
  # function_data["cell_cursor"] = True
3746
3751
  # function_data["display_modes"] = True
3747
3752
  # function_data["centre_in_cols"] = True
@@ -3756,17 +3761,17 @@ def main() -> None:
3756
3761
  # function_data["infobox_items"] = [["1"], ["2"], ["3"]]
3757
3762
  # function_data["infobox_title"] = "Title"
3758
3763
  # function_data["footer_string"] = "Title"
3759
- function_data["highlights"] = highlights
3760
3764
  # function_data["show_footer"] = False
3761
3765
  # function_data["paginate"] = True
3762
3766
  # function_data["debug"] = True
3763
3767
  # function_data["debug_level"] = 1
3764
3768
 
3765
- function_data["split_right"] = True
3766
- function_data["split_right_proportion"] = 2/3
3767
- function_data["split_right_refresh_data"] = data_refresh_randint_title
3768
- function_data["split_right_function"] = right_split_display_list
3769
- function_data["split_right_data"] = ["Files", [str(x) for x in range(100)]]
3769
+
3770
+ # function_data["split_right"] = True
3771
+ # function_data["split_right_proportion"] = 2/3
3772
+ # function_data["split_right_refresh_data"] = data_refresh_randint_title
3773
+ # function_data["split_right_function"] = right_split_display_list
3774
+ # function_data["split_right_data"] = ["Files", [str(x) for x in range(100)]]
3770
3775
 
3771
3776
 
3772
3777
  # function_data["split_right_refresh_data"] = get_dl
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: listpick
3
- Version: 0.1.15.4
3
+ Version: 0.1.15.6
4
4
  Summary: Listpick is a powerful TUI data tool for creating TUI apps or viewing/comparing tabulated data.
5
5
  Home-page: https://github.com/grimandgreedy/listpick
6
6
  Author: Grim
File without changes
File without changes
File without changes
File without changes
File without changes