listpick 0.1.13.48__py3-none-any.whl → 0.1.13.50__py3-none-any.whl
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/listpick_app.py +10 -10
- listpick/utils/utils.py +16 -15
- {listpick-0.1.13.48.dist-info → listpick-0.1.13.50.dist-info}/METADATA +1 -1
- {listpick-0.1.13.48.dist-info → listpick-0.1.13.50.dist-info}/RECORD +8 -8
- {listpick-0.1.13.48.dist-info → listpick-0.1.13.50.dist-info}/WHEEL +0 -0
- {listpick-0.1.13.48.dist-info → listpick-0.1.13.50.dist-info}/entry_points.txt +0 -0
- {listpick-0.1.13.48.dist-info → listpick-0.1.13.50.dist-info}/licenses/LICENSE.txt +0 -0
- {listpick-0.1.13.48.dist-info → listpick-0.1.13.50.dist-info}/top_level.txt +0 -0
listpick/listpick_app.py
CHANGED
|
@@ -1007,16 +1007,16 @@ class Picker:
|
|
|
1007
1007
|
self.infobox_picker.stdscr.mvwin(infobox_y, infobox_x)
|
|
1008
1008
|
self.infobox_picker.stdscr.resize(infobox_height, infobox_width)
|
|
1009
1009
|
self.infobox_picker.run()
|
|
1010
|
-
|
|
1011
|
-
else:
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
if not self.display_only:
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1010
|
+
# self.infobox_picker.stdscr.noutrefresh()
|
|
1011
|
+
# else:
|
|
1012
|
+
# # self.stdscr.noutrefresh()
|
|
1013
|
+
# pass
|
|
1014
|
+
#
|
|
1015
|
+
#
|
|
1016
|
+
# if not self.display_only:
|
|
1017
|
+
# curses.doupdate()
|
|
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):
|
listpick/utils/utils.py
CHANGED
|
@@ -51,26 +51,27 @@ def truncate_to_display_width(text: str, max_column_width: int, centre=False, un
|
|
|
51
51
|
width = 0
|
|
52
52
|
|
|
53
53
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
# break
|
|
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:
|
|
54
|
+
for char in text:
|
|
55
|
+
w = wcwidth(char)
|
|
56
|
+
if w < 0:
|
|
57
|
+
continue
|
|
58
|
+
if width + w > max_column_width:
|
|
67
59
|
break
|
|
68
|
-
|
|
69
|
-
|
|
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:
|
|
67
|
+
# break
|
|
68
|
+
# test_str = test_str[:-1]
|
|
69
|
+
# result = test_str
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
# Pad if it's shorter
|
|
73
73
|
# padding = max_column_width - wcswidth(result)
|
|
74
|
+
# return result + ' ' * padding
|
|
74
75
|
else:
|
|
75
76
|
result = text[:max_column_width]
|
|
76
77
|
width = len(result)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
listpick/__init__.py,sha256=ExXc97-bibodH--wlwpQivl0zCNR5D1hvpvrf7OBofU,154
|
|
2
2
|
listpick/__main__.py,sha256=wkCjDdqw093W27yWwnlC3nG_sMRKaIad7hHHWy0RBgY,193
|
|
3
|
-
listpick/listpick_app.py,sha256=
|
|
3
|
+
listpick/listpick_app.py,sha256=6dDEYHzXiQ5ZjWym7RpGqYMbUbrp1Mc546GQYOUXz3I,164074
|
|
4
4
|
listpick/ui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
listpick/ui/build_help.py,sha256=_rVKKrX3HfFJtw-pyeNb2lQWbml4-AAw8sZIUYGn97Y,8731
|
|
6
6
|
listpick/ui/footer.py,sha256=4PO7gS-NSk6zfc2DAwSFPU6Ch_HYfu0L_57u93zfyjk,10711
|
|
@@ -22,10 +22,10 @@ listpick/utils/search_and_filter_utils.py,sha256=XxGfkyDVXO9OAKcftPat8IReMTFIuTH
|
|
|
22
22
|
listpick/utils/searching.py,sha256=Xk5UIqamNHL2L90z3ACB_Giqdpi9iRKoAJ6pKaqaD7Q,3093
|
|
23
23
|
listpick/utils/sorting.py,sha256=WZZiVlVA3Zkcpwji3U5SNFlQ14zVEk3cZJtQirBkecQ,5329
|
|
24
24
|
listpick/utils/table_to_list_of_lists.py,sha256=T-i-nV1p6g8UagdgUPKrhIGpKY_YXZDxf4xZzcPepNA,7635
|
|
25
|
-
listpick/utils/utils.py,sha256=
|
|
26
|
-
listpick-0.1.13.
|
|
27
|
-
listpick-0.1.13.
|
|
28
|
-
listpick-0.1.13.
|
|
29
|
-
listpick-0.1.13.
|
|
30
|
-
listpick-0.1.13.
|
|
31
|
-
listpick-0.1.13.
|
|
25
|
+
listpick/utils/utils.py,sha256=bEE7-g3cyZd4QFHOxo4P6lXmuo0NwHTS_ovFC92po5w,13826
|
|
26
|
+
listpick-0.1.13.50.dist-info/licenses/LICENSE.txt,sha256=2mP-MRHJptADDNE9VInMNg1tE-C6Qv93Z4CCQKrpg9w,1061
|
|
27
|
+
listpick-0.1.13.50.dist-info/METADATA,sha256=1OepY3XqEQe1CTN18V_e0eMOCjKIGsPZ7pHEG7V-TWs,7988
|
|
28
|
+
listpick-0.1.13.50.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
29
|
+
listpick-0.1.13.50.dist-info/entry_points.txt,sha256=-QCf_BKIkUz35Y9nkYpjZWs2Qg0KfRna2PAs5DnF6BE,43
|
|
30
|
+
listpick-0.1.13.50.dist-info/top_level.txt,sha256=5mtsGEz86rz3qQDe0D463gGjAfSp6A3EWg4J4AGYr-Q,9
|
|
31
|
+
listpick-0.1.13.50.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|