listpick 0.1.14.7__py3-none-any.whl → 0.1.14.8__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 +8 -3
- {listpick-0.1.14.7.dist-info → listpick-0.1.14.8.dist-info}/METADATA +1 -1
- {listpick-0.1.14.7.dist-info → listpick-0.1.14.8.dist-info}/RECORD +7 -7
- {listpick-0.1.14.7.dist-info → listpick-0.1.14.8.dist-info}/WHEEL +0 -0
- {listpick-0.1.14.7.dist-info → listpick-0.1.14.8.dist-info}/entry_points.txt +0 -0
- {listpick-0.1.14.7.dist-info → listpick-0.1.14.8.dist-info}/licenses/LICENSE.txt +0 -0
- {listpick-0.1.14.7.dist-info → listpick-0.1.14.8.dist-info}/top_level.txt +0 -0
listpick/listpick_app.py
CHANGED
|
@@ -876,10 +876,10 @@ class Picker:
|
|
|
876
876
|
else:
|
|
877
877
|
cell_value = self.indexed_items[row][1][col] + self.separator
|
|
878
878
|
# cell_value = cell_value[:min(cell_width, cell_max_width)-len(self.separator)]
|
|
879
|
-
cell_value = truncate_to_display_width(cell_value, min(cell_width, cell_max_width)-len(self.separator), self.unicode_char_width)
|
|
879
|
+
cell_value = truncate_to_display_width(cell_value, min(cell_width, cell_max_width)-len(self.separator), self.centre_in_cols, self.unicode_char_width)
|
|
880
880
|
cell_value = cell_value + self.separator
|
|
881
881
|
# cell_value = cell_value
|
|
882
|
-
cell_value = truncate_to_display_width(cell_value, min(cell_width, cell_max_width), self.unicode_char_width)
|
|
882
|
+
cell_value = truncate_to_display_width(cell_value, min(cell_width, cell_max_width), self.centre_in_cols, self.unicode_char_width)
|
|
883
883
|
# row_str = truncate_to_display_width(row_str_left_adj, min(w-self.startx, visible_columns_total_width))
|
|
884
884
|
self.stdscr.addstr(y, cell_pos, cell_value, curses.color_pair(self.colours_start+colour_pair_number) | curses.A_BOLD)
|
|
885
885
|
# Part of the cell is on screen
|
|
@@ -1121,6 +1121,7 @@ class Picker:
|
|
|
1121
1121
|
"hidden_columns": [],
|
|
1122
1122
|
"title": title,
|
|
1123
1123
|
"reset_colours": False,
|
|
1124
|
+
"cell_cursor": False,
|
|
1124
1125
|
}
|
|
1125
1126
|
|
|
1126
1127
|
OptionPicker = Picker(submenu_win, **infobox_data)
|
|
@@ -1361,6 +1362,7 @@ class Picker:
|
|
|
1361
1362
|
"cancel_is_back": True,
|
|
1362
1363
|
"number_columns": False,
|
|
1363
1364
|
"reset_colours": False,
|
|
1365
|
+
"cell_cursor": False,
|
|
1364
1366
|
}
|
|
1365
1367
|
while True:
|
|
1366
1368
|
h, w = stdscr.getmaxyx()
|
|
@@ -1427,6 +1429,7 @@ class Picker:
|
|
|
1427
1429
|
"loaded_file_states": [],
|
|
1428
1430
|
"loaded_file": "",
|
|
1429
1431
|
"loaded_file_index": 0,
|
|
1432
|
+
"cell_cursor": False,
|
|
1430
1433
|
}
|
|
1431
1434
|
OptionPicker = Picker(submenu_win, **notification_data)
|
|
1432
1435
|
s, o, f = OptionPicker.run()
|
|
@@ -2306,6 +2309,7 @@ class Picker:
|
|
|
2306
2309
|
"centre_in_terminal_vertical": True,
|
|
2307
2310
|
"hidden_columns": [],
|
|
2308
2311
|
"reset_colours": False,
|
|
2312
|
+
"cell_cursor": False,
|
|
2309
2313
|
|
|
2310
2314
|
}
|
|
2311
2315
|
OptionPicker = Picker(self.stdscr, **help_data)
|
|
@@ -2416,6 +2420,7 @@ class Picker:
|
|
|
2416
2420
|
"centre_in_terminal_vertical": True,
|
|
2417
2421
|
"hidden_columns": [],
|
|
2418
2422
|
"reset_colours": False,
|
|
2423
|
+
"cell_cursor": False,
|
|
2419
2424
|
|
|
2420
2425
|
}
|
|
2421
2426
|
OptionPicker = Picker(self.stdscr, **info_data)
|
|
@@ -3693,7 +3698,7 @@ def main() -> None:
|
|
|
3693
3698
|
app.load_input_history("~/.config/listpick/cmdhist.json")
|
|
3694
3699
|
app.run()
|
|
3695
3700
|
|
|
3696
|
-
|
|
3701
|
+
app.save_input_history("~/.config/listpick/cmdhist.json")
|
|
3697
3702
|
except Exception as e:
|
|
3698
3703
|
print(e)
|
|
3699
3704
|
|
|
@@ -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=NVIY6VGD-yvZ_Lgwheqg53t2N1cgfmmqfbQslF8AgZo,188936
|
|
4
4
|
listpick/ui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
listpick/ui/build_help.py,sha256=8QtsRosIE2IMagRc_remzmwSWpCurFgLenLL7w1ly94,8949
|
|
6
6
|
listpick/ui/footer.py,sha256=ZM5OWCxOZqy5RG6tFTe1ipvu9PRu6Gh3JCA8KXBR_Wc,15004
|
|
@@ -24,9 +24,9 @@ listpick/utils/searching.py,sha256=Xk5UIqamNHL2L90z3ACB_Giqdpi9iRKoAJ6pKaqaD7Q,3
|
|
|
24
24
|
listpick/utils/sorting.py,sha256=WZZiVlVA3Zkcpwji3U5SNFlQ14zVEk3cZJtQirBkecQ,5329
|
|
25
25
|
listpick/utils/table_to_list_of_lists.py,sha256=XBj7eGBDF15BRME-swnoXyOfZWxXCxrXp0pzsBfcJ5g,12224
|
|
26
26
|
listpick/utils/utils.py,sha256=McOl9uT3jh7l4TIWeSd8ZGjK_e7r0YZF0Gl20yI6fl0,13873
|
|
27
|
-
listpick-0.1.14.
|
|
28
|
-
listpick-0.1.14.
|
|
29
|
-
listpick-0.1.14.
|
|
30
|
-
listpick-0.1.14.
|
|
31
|
-
listpick-0.1.14.
|
|
32
|
-
listpick-0.1.14.
|
|
27
|
+
listpick-0.1.14.8.dist-info/licenses/LICENSE.txt,sha256=2mP-MRHJptADDNE9VInMNg1tE-C6Qv93Z4CCQKrpg9w,1061
|
|
28
|
+
listpick-0.1.14.8.dist-info/METADATA,sha256=knTrmh3fmbsj_HcTRytEtKHYUQGgejK5YJjlq0BSd74,8090
|
|
29
|
+
listpick-0.1.14.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
30
|
+
listpick-0.1.14.8.dist-info/entry_points.txt,sha256=-QCf_BKIkUz35Y9nkYpjZWs2Qg0KfRna2PAs5DnF6BE,43
|
|
31
|
+
listpick-0.1.14.8.dist-info/top_level.txt,sha256=5mtsGEz86rz3qQDe0D463gGjAfSp6A3EWg4J4AGYr-Q,9
|
|
32
|
+
listpick-0.1.14.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|