listpick 0.1.13.52__tar.gz → 0.1.13.54__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.
Files changed (56) hide show
  1. {listpick-0.1.13.52/src/listpick.egg-info → listpick-0.1.13.54}/PKG-INFO +1 -1
  2. {listpick-0.1.13.52 → listpick-0.1.13.54}/setup.py +1 -1
  3. {listpick-0.1.13.52 → listpick-0.1.13.54}/src/listpick/listpick_app.py +19 -8
  4. {listpick-0.1.13.52 → listpick-0.1.13.54}/src/listpick/lpapp2.py +2 -1
  5. {listpick-0.1.13.52 → listpick-0.1.13.54}/src/listpick/ui/footer.py +1 -1
  6. {listpick-0.1.13.52 → listpick-0.1.13.54/src/listpick.egg-info}/PKG-INFO +1 -1
  7. {listpick-0.1.13.52 → listpick-0.1.13.54}/.gitignore +0 -0
  8. {listpick-0.1.13.52 → listpick-0.1.13.54}/CHANGELOG.md +0 -0
  9. {listpick-0.1.13.52 → listpick-0.1.13.54}/LICENSE.txt +0 -0
  10. {listpick-0.1.13.52 → listpick-0.1.13.54}/README.md +0 -0
  11. {listpick-0.1.13.52 → listpick-0.1.13.54}/TODO.md +0 -0
  12. {listpick-0.1.13.52 → listpick-0.1.13.54}/assets/aria2tui_screenshot.png +0 -0
  13. {listpick-0.1.13.52 → listpick-0.1.13.54}/assets/file_compare.png +0 -0
  14. {listpick-0.1.13.52 → listpick-0.1.13.54}/assets/lpfman.png +0 -0
  15. {listpick-0.1.13.52 → listpick-0.1.13.54}/examples/footer_string_example.py +0 -0
  16. {listpick-0.1.13.52 → listpick-0.1.13.54}/examples/input.toml +0 -0
  17. {listpick-0.1.13.52 → listpick-0.1.13.54}/examples/input.txt +0 -0
  18. {listpick-0.1.13.52 → listpick-0.1.13.54}/examples/list_files.toml +0 -0
  19. {listpick-0.1.13.52 → listpick-0.1.13.54}/examples/list_files_empty.toml +0 -0
  20. {listpick-0.1.13.52 → listpick-0.1.13.54}/examples/picker_example.py +0 -0
  21. {listpick-0.1.13.52 → listpick-0.1.13.54}/examples/setup.cfg +0 -0
  22. {listpick-0.1.13.52 → listpick-0.1.13.54}/examples/template.py +0 -0
  23. {listpick-0.1.13.52 → listpick-0.1.13.54}/examples/video_duplicates.toml +0 -0
  24. {listpick-0.1.13.52 → listpick-0.1.13.54}/listpick.py +0 -0
  25. {listpick-0.1.13.52 → listpick-0.1.13.54}/requirements.txt +0 -0
  26. {listpick-0.1.13.52 → listpick-0.1.13.54}/setup.cfg +0 -0
  27. {listpick-0.1.13.52 → listpick-0.1.13.54}/src/listpick/__init__.py +0 -0
  28. {listpick-0.1.13.52 → listpick-0.1.13.54}/src/listpick/__main__.py +0 -0
  29. {listpick-0.1.13.52 → listpick-0.1.13.54}/src/listpick/ui/__init__.py +0 -0
  30. {listpick-0.1.13.52 → listpick-0.1.13.54}/src/listpick/ui/build_help.py +0 -0
  31. {listpick-0.1.13.52 → listpick-0.1.13.54}/src/listpick/ui/help_screen.py +0 -0
  32. {listpick-0.1.13.52 → listpick-0.1.13.54}/src/listpick/ui/input_field.py +0 -0
  33. {listpick-0.1.13.52 → listpick-0.1.13.54}/src/listpick/ui/keys.py +0 -0
  34. {listpick-0.1.13.52 → listpick-0.1.13.54}/src/listpick/ui/pane_stuff.py +0 -0
  35. {listpick-0.1.13.52 → listpick-0.1.13.54}/src/listpick/ui/picker_colours.py +0 -0
  36. {listpick-0.1.13.52 → listpick-0.1.13.54}/src/listpick/utils/__init__.py +0 -0
  37. {listpick-0.1.13.52 → listpick-0.1.13.54}/src/listpick/utils/clipboard_operations.py +0 -0
  38. {listpick-0.1.13.52 → listpick-0.1.13.54}/src/listpick/utils/config.py +0 -0
  39. {listpick-0.1.13.52 → listpick-0.1.13.54}/src/listpick/utils/dump.py +0 -0
  40. {listpick-0.1.13.52 → listpick-0.1.13.54}/src/listpick/utils/filtering.py +0 -0
  41. {listpick-0.1.13.52 → listpick-0.1.13.54}/src/listpick/utils/generate_data.py +0 -0
  42. {listpick-0.1.13.52 → listpick-0.1.13.54}/src/listpick/utils/options_selectors.py +0 -0
  43. {listpick-0.1.13.52 → listpick-0.1.13.54}/src/listpick/utils/paste_operations.py +0 -0
  44. {listpick-0.1.13.52 → listpick-0.1.13.54}/src/listpick/utils/picker_log.py +0 -0
  45. {listpick-0.1.13.52 → listpick-0.1.13.54}/src/listpick/utils/search_and_filter_utils.py +0 -0
  46. {listpick-0.1.13.52 → listpick-0.1.13.54}/src/listpick/utils/searching.py +0 -0
  47. {listpick-0.1.13.52 → listpick-0.1.13.54}/src/listpick/utils/sorting.py +0 -0
  48. {listpick-0.1.13.52 → listpick-0.1.13.54}/src/listpick/utils/table_to_list_of_lists.py +0 -0
  49. {listpick-0.1.13.52 → listpick-0.1.13.54}/src/listpick/utils/utils.py +0 -0
  50. {listpick-0.1.13.52 → listpick-0.1.13.54}/src/listpick.egg-info/SOURCES.txt +0 -0
  51. {listpick-0.1.13.52 → listpick-0.1.13.54}/src/listpick.egg-info/dependency_links.txt +0 -0
  52. {listpick-0.1.13.52 → listpick-0.1.13.54}/src/listpick.egg-info/entry_points.txt +0 -0
  53. {listpick-0.1.13.52 → listpick-0.1.13.54}/src/listpick.egg-info/requires.txt +0 -0
  54. {listpick-0.1.13.52 → listpick-0.1.13.54}/src/listpick.egg-info/top_level.txt +0 -0
  55. {listpick-0.1.13.52 → listpick-0.1.13.54}/tests/kitty_control.sh +0 -0
  56. {listpick-0.1.13.52 → listpick-0.1.13.54}/tests/sorting_dates.csv +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: listpick
3
- Version: 0.1.13.52
3
+ Version: 0.1.13.54
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
@@ -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.52",
19
+ version = "0.1.13.54",
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.footer = self.footer_options[self.footer_style]
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
- # self.footer = CompactFooter(self.stdscr, colours_start, self.get_function_data)
324
+ self.footer = CompactFooter(self.stdscr, colours_start, self.get_function_data)
324
325
 
325
326
 
326
327
 
@@ -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: infobox()")
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
- # function_data["display_infobox"] = True
3203
- # function_data["infobox_items"] = [["1"], ["2"], ["3"]]
3204
- # function_data["infobox_title"] = "Title"
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
@@ -982,6 +982,7 @@ class Picker:
982
982
  disp_string = f" {self.footer_string[:footer_string_width]:>{footer_string_width-2}} "
983
983
  self.stdscr.addstr(h - 1, w-footer_string_width-1, " "*footer_string_width, curses.color_pair(self.colours_start+24))
984
984
  self.stdscr.addstr(h - 1, w-footer_string_width-1, f"{disp_string}", curses.color_pair(self.colours_start+24))
985
+ self.stdscr.refresh()
985
986
 
986
987
  ## Display infobox
987
988
  if self.display_infobox:
@@ -1831,7 +1832,7 @@ class Picker:
1831
1832
 
1832
1833
  def get_word_list(self) -> list[str]:
1833
1834
  """ Get a list of all words used in any cell of the picker. Used for completion in search/filter input_field. """
1834
- self.logger.info(f"function: infobox()")
1835
+ self.logger.info(f"function: get_word_list()")
1835
1836
  translator = str.maketrans('', '', string.punctuation)
1836
1837
 
1837
1838
  words = []
@@ -105,7 +105,7 @@ class StandardFooter(Footer):
105
105
  sort_disp_str = f" Sort: ({sort_column_info}, {sort_method_info}, {sort_order_info}) "
106
106
  self.stdscr.addstr(sort_info_y, w-35, f"{sort_disp_str:>34}", curses.color_pair(self.colours_start+20))
107
107
 
108
- self.stdscr.refresh()
108
+ # self.stdscr.refresh()
109
109
 
110
110
 
111
111
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: listpick
3
- Version: 0.1.13.52
3
+ Version: 0.1.13.54
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
File without changes
File without changes