listpick 0.1.13.44__tar.gz → 0.1.13.46__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 (55) hide show
  1. {listpick-0.1.13.44/src/listpick.egg-info → listpick-0.1.13.46}/PKG-INFO +1 -1
  2. {listpick-0.1.13.44 → listpick-0.1.13.46}/setup.py +1 -1
  3. {listpick-0.1.13.44 → listpick-0.1.13.46}/src/listpick/listpick_app.py +7 -5
  4. {listpick-0.1.13.44 → listpick-0.1.13.46}/src/listpick/utils/utils.py +18 -13
  5. {listpick-0.1.13.44 → listpick-0.1.13.46/src/listpick.egg-info}/PKG-INFO +1 -1
  6. {listpick-0.1.13.44 → listpick-0.1.13.46}/.gitignore +0 -0
  7. {listpick-0.1.13.44 → listpick-0.1.13.46}/CHANGELOG.md +0 -0
  8. {listpick-0.1.13.44 → listpick-0.1.13.46}/LICENSE.txt +0 -0
  9. {listpick-0.1.13.44 → listpick-0.1.13.46}/README.md +0 -0
  10. {listpick-0.1.13.44 → listpick-0.1.13.46}/TODO.md +0 -0
  11. {listpick-0.1.13.44 → listpick-0.1.13.46}/assets/aria2tui_screenshot.png +0 -0
  12. {listpick-0.1.13.44 → listpick-0.1.13.46}/assets/file_compare.png +0 -0
  13. {listpick-0.1.13.44 → listpick-0.1.13.46}/assets/lpfman.png +0 -0
  14. {listpick-0.1.13.44 → listpick-0.1.13.46}/examples/footer_string_example.py +0 -0
  15. {listpick-0.1.13.44 → listpick-0.1.13.46}/examples/input.toml +0 -0
  16. {listpick-0.1.13.44 → listpick-0.1.13.46}/examples/input.txt +0 -0
  17. {listpick-0.1.13.44 → listpick-0.1.13.46}/examples/list_files.toml +0 -0
  18. {listpick-0.1.13.44 → listpick-0.1.13.46}/examples/list_files_empty.toml +0 -0
  19. {listpick-0.1.13.44 → listpick-0.1.13.46}/examples/picker_example.py +0 -0
  20. {listpick-0.1.13.44 → listpick-0.1.13.46}/examples/setup.cfg +0 -0
  21. {listpick-0.1.13.44 → listpick-0.1.13.46}/examples/template.py +0 -0
  22. {listpick-0.1.13.44 → listpick-0.1.13.46}/examples/video_duplicates.toml +0 -0
  23. {listpick-0.1.13.44 → listpick-0.1.13.46}/listpick.py +0 -0
  24. {listpick-0.1.13.44 → listpick-0.1.13.46}/requirements.txt +0 -0
  25. {listpick-0.1.13.44 → listpick-0.1.13.46}/setup.cfg +0 -0
  26. {listpick-0.1.13.44 → listpick-0.1.13.46}/src/listpick/__init__.py +0 -0
  27. {listpick-0.1.13.44 → listpick-0.1.13.46}/src/listpick/__main__.py +0 -0
  28. {listpick-0.1.13.44 → listpick-0.1.13.46}/src/listpick/ui/__init__.py +0 -0
  29. {listpick-0.1.13.44 → listpick-0.1.13.46}/src/listpick/ui/build_help.py +0 -0
  30. {listpick-0.1.13.44 → listpick-0.1.13.46}/src/listpick/ui/footer.py +0 -0
  31. {listpick-0.1.13.44 → listpick-0.1.13.46}/src/listpick/ui/help_screen.py +0 -0
  32. {listpick-0.1.13.44 → listpick-0.1.13.46}/src/listpick/ui/input_field.py +0 -0
  33. {listpick-0.1.13.44 → listpick-0.1.13.46}/src/listpick/ui/keys.py +0 -0
  34. {listpick-0.1.13.44 → listpick-0.1.13.46}/src/listpick/ui/pane_stuff.py +0 -0
  35. {listpick-0.1.13.44 → listpick-0.1.13.46}/src/listpick/ui/picker_colours.py +0 -0
  36. {listpick-0.1.13.44 → listpick-0.1.13.46}/src/listpick/utils/__init__.py +0 -0
  37. {listpick-0.1.13.44 → listpick-0.1.13.46}/src/listpick/utils/clipboard_operations.py +0 -0
  38. {listpick-0.1.13.44 → listpick-0.1.13.46}/src/listpick/utils/config.py +0 -0
  39. {listpick-0.1.13.44 → listpick-0.1.13.46}/src/listpick/utils/dump.py +0 -0
  40. {listpick-0.1.13.44 → listpick-0.1.13.46}/src/listpick/utils/filtering.py +0 -0
  41. {listpick-0.1.13.44 → listpick-0.1.13.46}/src/listpick/utils/generate_data.py +0 -0
  42. {listpick-0.1.13.44 → listpick-0.1.13.46}/src/listpick/utils/options_selectors.py +0 -0
  43. {listpick-0.1.13.44 → listpick-0.1.13.46}/src/listpick/utils/paste_operations.py +0 -0
  44. {listpick-0.1.13.44 → listpick-0.1.13.46}/src/listpick/utils/picker_log.py +0 -0
  45. {listpick-0.1.13.44 → listpick-0.1.13.46}/src/listpick/utils/search_and_filter_utils.py +0 -0
  46. {listpick-0.1.13.44 → listpick-0.1.13.46}/src/listpick/utils/searching.py +0 -0
  47. {listpick-0.1.13.44 → listpick-0.1.13.46}/src/listpick/utils/sorting.py +0 -0
  48. {listpick-0.1.13.44 → listpick-0.1.13.46}/src/listpick/utils/table_to_list_of_lists.py +0 -0
  49. {listpick-0.1.13.44 → listpick-0.1.13.46}/src/listpick.egg-info/SOURCES.txt +0 -0
  50. {listpick-0.1.13.44 → listpick-0.1.13.46}/src/listpick.egg-info/dependency_links.txt +0 -0
  51. {listpick-0.1.13.44 → listpick-0.1.13.46}/src/listpick.egg-info/entry_points.txt +0 -0
  52. {listpick-0.1.13.44 → listpick-0.1.13.46}/src/listpick.egg-info/requires.txt +0 -0
  53. {listpick-0.1.13.44 → listpick-0.1.13.46}/src/listpick.egg-info/top_level.txt +0 -0
  54. {listpick-0.1.13.44 → listpick-0.1.13.46}/tests/kitty_control.sh +0 -0
  55. {listpick-0.1.13.44 → listpick-0.1.13.46}/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.44
3
+ Version: 0.1.13.46
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.44",
19
+ version = "0.1.13.46",
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.",
@@ -320,7 +320,6 @@ class Picker:
320
320
 
321
321
 
322
322
  # Note: We have to set the footer after initialising the picker state so that the footer can use the get_function_data method
323
- self.get_function_data()
324
323
  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)]
325
324
  self.footer = self.footer_options[self.footer_style]
326
325
 
@@ -1009,14 +1008,15 @@ class Picker:
1009
1008
  self.infobox_picker.stdscr.resize(infobox_height, infobox_width)
1010
1009
  self.infobox_picker.run()
1011
1010
  self.infobox_picker.stdscr.noutrefresh()
1011
+ curses.doupdate()
1012
1012
  else:
1013
1013
  # self.stdscr.noutrefresh()
1014
1014
  pass
1015
1015
 
1016
1016
 
1017
- if not self.display_only:
1018
- # curses.doupdate()
1019
- self.stdscr.refresh()
1017
+ # if not self.display_only:
1018
+ # self.stdscr.refresh()
1019
+ # pass
1020
1020
 
1021
1021
 
1022
1022
  def infobox(self, stdscr: curses.window, message: list =[], title: str ="Infobox", colours_end: int = 0, duration: int = 4):
@@ -1983,7 +1983,8 @@ class Picker:
1983
1983
  self.initialise_variables()
1984
1984
 
1985
1985
  initial_time = time.time()
1986
- self.draw_screen(self.indexed_items, self.highlights, clear=True)
1986
+
1987
+ self.draw_screen(self.indexed_items, self.highlights, clear=False)
1987
1988
  self.refreshing_data = False
1988
1989
  self.data_ready = False
1989
1990
 
@@ -2018,6 +2019,7 @@ class Picker:
2018
2019
  self.logger.debug(f"footer_string_auto_refresh")
2019
2020
  self.footer_string = self.footer_string_refresh_function()
2020
2021
  initial_time_footer = time.time()
2022
+ self.draw_screen(self.indexed_items, self.highlights)
2021
2023
 
2022
2024
  if self.check_key("help", key, self.keys_dict):
2023
2025
  self.logger.info(f"key_function help")
@@ -49,23 +49,28 @@ def truncate_to_display_width(text: str, max_column_width: int, centre=False, un
49
49
  if unicode_char_width:
50
50
  result = ''
51
51
  width = 0
52
- test_str = text[:max_column_width]
53
- while True:
54
- width = wcswidth(test_str)
55
- if width < max_column_width or width == 0:
52
+
53
+
54
+ for char in text:
55
+ w = wcwidth(char)
56
+ if w < 0:
57
+ continue
58
+ if width + w > max_column_width:
56
59
  break
57
- test_str = test_str[:-1]
58
- # for char in text:
59
- # w = wcwidth(char)
60
- # if w < 0:
61
- # continue
62
- # if width + w > max_column_width:
60
+ result += char
61
+ width += w
62
+
63
+ # test_str = text[:max_column_width]
64
+ # while True:
65
+ # width = wcswidth(test_str)
66
+ # if width < max_column_width or width == 0:
63
67
  # break
64
- # result += char
65
- # width += w
68
+ # test_str = test_str[:-1]
69
+ # result = test_str
70
+
71
+
66
72
  # Pad if it's shorter
67
73
  # padding = max_column_width - wcswidth(result)
68
- result = test_str
69
74
  # return result + ' ' * padding
70
75
  else:
71
76
  result = text[:max_column_width]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: listpick
3
- Version: 0.1.13.44
3
+ Version: 0.1.13.46
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