listpick 0.1.15.18__py3-none-any.whl → 0.1.15.20__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.
Potentially problematic release.
This version of listpick might be problematic. Click here for more details.
- listpick/listpick_app.py +137 -18
- listpick/ui/picker_colours.py +0 -55
- listpick/utils/options_selectors.py +7 -1
- {listpick-0.1.15.18.dist-info → listpick-0.1.15.20.dist-info}/METADATA +1 -1
- {listpick-0.1.15.18.dist-info → listpick-0.1.15.20.dist-info}/RECORD +9 -9
- {listpick-0.1.15.18.dist-info → listpick-0.1.15.20.dist-info}/WHEEL +0 -0
- {listpick-0.1.15.18.dist-info → listpick-0.1.15.20.dist-info}/entry_points.txt +0 -0
- {listpick-0.1.15.18.dist-info → listpick-0.1.15.20.dist-info}/licenses/LICENSE.txt +0 -0
- {listpick-0.1.15.18.dist-info → listpick-0.1.15.20.dist-info}/top_level.txt +0 -0
listpick/listpick_app.py
CHANGED
|
@@ -2864,14 +2864,15 @@ class Picker:
|
|
|
2864
2864
|
if self.option_functions[index] != None:
|
|
2865
2865
|
options_sufficient, usrtxt = self.option_functions[index](
|
|
2866
2866
|
stdscr=self.stdscr,
|
|
2867
|
-
refresh_screen_function=lambda: self.draw_screen(self.indexed_items, self.highlights)
|
|
2867
|
+
refresh_screen_function=lambda: self.draw_screen(self.indexed_items, self.highlights),
|
|
2868
2868
|
)
|
|
2869
2869
|
else:
|
|
2870
2870
|
self.set_registers()
|
|
2871
2871
|
options_sufficient, usrtxt = default_option_input(
|
|
2872
2872
|
self.stdscr,
|
|
2873
2873
|
starting_value=self.user_opts,
|
|
2874
|
-
registers = self.registers
|
|
2874
|
+
registers = self.registers,
|
|
2875
|
+
field_prefix=f" Opts ({index}): ",
|
|
2875
2876
|
)
|
|
2876
2877
|
|
|
2877
2878
|
if options_sufficient:
|
|
@@ -3814,21 +3815,138 @@ def main() -> None:
|
|
|
3814
3815
|
pass
|
|
3815
3816
|
|
|
3816
3817
|
# function_data["colour_theme_number"] = 3
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3818
|
+
function_data["highlights"] = [
|
|
3819
|
+
{
|
|
3820
|
+
"match": r"^complete[\s]*$",
|
|
3821
|
+
"field": 1,
|
|
3822
|
+
"color": 8,
|
|
3823
|
+
},
|
|
3824
|
+
{
|
|
3825
|
+
"match": r"^error[\s]*|^removed[\s]*$",
|
|
3826
|
+
"field": 1,
|
|
3827
|
+
"color": 7,
|
|
3828
|
+
},
|
|
3829
|
+
{
|
|
3830
|
+
"match": r"^active[\s]*$",
|
|
3831
|
+
"field": 1,
|
|
3832
|
+
"color": 9,
|
|
3833
|
+
},
|
|
3834
|
+
{
|
|
3835
|
+
"match": r"^waiting[\s]*$",
|
|
3836
|
+
"field": 1,
|
|
3837
|
+
"color": 11,
|
|
3838
|
+
},
|
|
3839
|
+
{
|
|
3840
|
+
"match": r"^paused[\s]*$",
|
|
3841
|
+
"field": 1,
|
|
3842
|
+
"color": 12,
|
|
3843
|
+
},
|
|
3844
|
+
{
|
|
3845
|
+
"match": r'^(0\d?(\.\d*)?\b|\b\d(\.\d*)?)\b%?', # Pattern for numbers from 0 to 20
|
|
3846
|
+
"field": 6,
|
|
3847
|
+
"color": 7,
|
|
3848
|
+
},
|
|
3849
|
+
{
|
|
3850
|
+
"match": r'^(2\d(\.\d*)?|3\d(\.\d*)?|40(\.\d*)?)(?!\d)\b%?', # Pattern for numbers from 20 to 40
|
|
3851
|
+
"field": 6,
|
|
3852
|
+
"color": 11,
|
|
3853
|
+
},
|
|
3854
|
+
{
|
|
3855
|
+
"match": r'^(4\d(\.\d*)?|5\d(\.\d*)?|60(\.\d*)?)(?!\d)\b%?', # Pattern for numbers from 40 to 60
|
|
3856
|
+
"field": 6,
|
|
3857
|
+
"color": 9,
|
|
3858
|
+
},
|
|
3859
|
+
{
|
|
3860
|
+
"match": r'^(6\d(\.\d*)?|7\d(\.\d*)?|80(\.\d*)?)(?!\d)\b%?', # Pattern for numbers from 60 to 80
|
|
3861
|
+
"field": 6,
|
|
3862
|
+
"color": 9,
|
|
3863
|
+
},
|
|
3864
|
+
{
|
|
3865
|
+
"match": r'^(8\d(\.\d*)?|9\d(\.\d*)?|100(\.\d*)?)(?!\d)\b%?', # Pattern for numbers from 80 to 100
|
|
3866
|
+
"field": 6,
|
|
3867
|
+
"color": 8,
|
|
3868
|
+
},
|
|
3869
|
+
]
|
|
3870
|
+
menu_highlights = [
|
|
3871
|
+
{
|
|
3872
|
+
"match": "^watch|^view",
|
|
3873
|
+
"field": 0,
|
|
3874
|
+
"color": 8,
|
|
3875
|
+
},
|
|
3876
|
+
{
|
|
3877
|
+
"match": "^add",
|
|
3878
|
+
"field": 0,
|
|
3879
|
+
"color": 13,
|
|
3880
|
+
},
|
|
3881
|
+
{
|
|
3882
|
+
"match": "^pause|^remove",
|
|
3883
|
+
"field": 0,
|
|
3884
|
+
"color": 7,
|
|
3885
|
+
},
|
|
3886
|
+
{
|
|
3887
|
+
"match": "^get",
|
|
3888
|
+
"field": 0,
|
|
3889
|
+
"color": 22,
|
|
3890
|
+
},
|
|
3891
|
+
{
|
|
3892
|
+
"match": "^edit|^restart",
|
|
3893
|
+
"field": 0,
|
|
3894
|
+
"color": 10,
|
|
3895
|
+
},
|
|
3896
|
+
{
|
|
3897
|
+
"match": "graph",
|
|
3898
|
+
"field": 0,
|
|
3899
|
+
"color": 9,
|
|
3900
|
+
},
|
|
3901
|
+
]
|
|
3902
|
+
operations_highlights = [
|
|
3903
|
+
{
|
|
3904
|
+
"match": "^pause",
|
|
3905
|
+
"field": 0,
|
|
3906
|
+
"color": 22,
|
|
3907
|
+
},
|
|
3908
|
+
{
|
|
3909
|
+
"match": "^unpause",
|
|
3910
|
+
"field": 0,
|
|
3911
|
+
"color": 8,
|
|
3912
|
+
},
|
|
3913
|
+
{
|
|
3914
|
+
"match": "^remove",
|
|
3915
|
+
"field": 0,
|
|
3916
|
+
"color": 7,
|
|
3917
|
+
},
|
|
3918
|
+
{
|
|
3919
|
+
"match": r"^retry",
|
|
3920
|
+
"field": 0,
|
|
3921
|
+
"color": 22,
|
|
3922
|
+
},
|
|
3923
|
+
{
|
|
3924
|
+
"match": r"^send to|^change position",
|
|
3925
|
+
"field": 0,
|
|
3926
|
+
"color": 11,
|
|
3927
|
+
},
|
|
3928
|
+
{
|
|
3929
|
+
"match": r"^change options",
|
|
3930
|
+
"field": 0,
|
|
3931
|
+
"color": 13,
|
|
3932
|
+
},
|
|
3933
|
+
{
|
|
3934
|
+
"match": "^DL INFO",
|
|
3935
|
+
"field": 0,
|
|
3936
|
+
"color": 9,
|
|
3937
|
+
},
|
|
3938
|
+
{
|
|
3939
|
+
"match": r"^open",
|
|
3940
|
+
"field": 0,
|
|
3941
|
+
"color": 10,
|
|
3942
|
+
},
|
|
3943
|
+
{
|
|
3944
|
+
"match": "graph",
|
|
3945
|
+
"field": 0,
|
|
3946
|
+
"color": 9,
|
|
3947
|
+
},
|
|
3948
|
+
]
|
|
3949
|
+
function_data["highlights"] = operations_highlights
|
|
3832
3950
|
# function_data["highlights"] = [
|
|
3833
3951
|
# {
|
|
3834
3952
|
# "field": 1,
|
|
@@ -3862,7 +3980,7 @@ def main() -> None:
|
|
|
3862
3980
|
function_data["right_panes"] = [
|
|
3863
3981
|
# Graph or random numbers generated each second
|
|
3864
3982
|
{
|
|
3865
|
-
"proportion": 2
|
|
3983
|
+
"proportion": 1/2,
|
|
3866
3984
|
"auto_refresh": True,
|
|
3867
3985
|
"get_data": data_refresh_randint,
|
|
3868
3986
|
"display": right_split_graph,
|
|
@@ -3906,6 +4024,7 @@ def main() -> None:
|
|
|
3906
4024
|
"refresh_time": 1,
|
|
3907
4025
|
},
|
|
3908
4026
|
]
|
|
4027
|
+
function_data["require_option"] = [True for _ in function_data["items"]]
|
|
3909
4028
|
|
|
3910
4029
|
stdscr = start_curses()
|
|
3911
4030
|
try:
|
listpick/ui/picker_colours.py
CHANGED
|
@@ -293,61 +293,6 @@ def get_colours(pick:int=0) -> Dict[str, int]:
|
|
|
293
293
|
'deselecting_cell_fg': curses.COLOR_WHITE,
|
|
294
294
|
'active_column_bg': curses.COLOR_BLACK,
|
|
295
295
|
'active_column_fg': curses.COLOR_WHITE,
|
|
296
|
-
},
|
|
297
|
-
### (5) Blue background, black title/footer, white modes
|
|
298
|
-
{
|
|
299
|
-
'background': 25,
|
|
300
|
-
'normal_fg': 255,
|
|
301
|
-
'unselected_bg': 25,
|
|
302
|
-
'unselected_fg': 255,
|
|
303
|
-
'cursor_bg': 220,
|
|
304
|
-
'cursor_fg': 232,
|
|
305
|
-
'selected_bg': 202,
|
|
306
|
-
'selected_fg': 255,
|
|
307
|
-
'header_bg': 255,
|
|
308
|
-
'header_fg': 232,
|
|
309
|
-
'error_bg': 232,
|
|
310
|
-
'error_fg': curses.COLOR_RED,
|
|
311
|
-
'complete_bg': 232,
|
|
312
|
-
'complete_fg': 82,
|
|
313
|
-
'waiting_bg': 232,
|
|
314
|
-
'waiting_fg': curses.COLOR_YELLOW,
|
|
315
|
-
'active_bg': 232,
|
|
316
|
-
'active_fg': 33,
|
|
317
|
-
'paused_bg': 232,
|
|
318
|
-
'paused_fg': 244,
|
|
319
|
-
'search_bg': 162,
|
|
320
|
-
'search_fg': 255,
|
|
321
|
-
'active_input_bg': 255,
|
|
322
|
-
'active_input_fg': 232,
|
|
323
|
-
'modes_selected_bg': 25,
|
|
324
|
-
'modes_selected_fg': 255,
|
|
325
|
-
'modes_unselected_bg': 255,
|
|
326
|
-
'modes_unselected_fg': 232,
|
|
327
|
-
'title_bar': 160,
|
|
328
|
-
'title_bg': 232,
|
|
329
|
-
'title_fg': 255,
|
|
330
|
-
'scroll_bar_bg': 247,
|
|
331
|
-
'selected_header_column_bg': 232,
|
|
332
|
-
'selected_header_column_fg': 255,
|
|
333
|
-
'unselected_header_column_bg': 255,
|
|
334
|
-
'unselected_header_column_fg': 232,
|
|
335
|
-
'footer_bg': 232,
|
|
336
|
-
'footer_fg': 255,
|
|
337
|
-
'refreshing_bg': 25,
|
|
338
|
-
'refreshing_fg': 255,
|
|
339
|
-
'refreshing_inactive_bg': 28,
|
|
340
|
-
'refreshing_inactive_fg': 232,
|
|
341
|
-
'40pc_bg': 232,
|
|
342
|
-
'40pc_fg': 166,
|
|
343
|
-
'footer_string_bg': 232,
|
|
344
|
-
'footer_string_fg': 255,
|
|
345
|
-
'selected_cell_bg': 214,
|
|
346
|
-
'selected_cell_fg': 232,
|
|
347
|
-
'deselecting_cell_bg': 162,
|
|
348
|
-
'deselecting_cell_fg': 255,
|
|
349
|
-
'active_column_bg': 234,
|
|
350
|
-
'active_column_fg': 255,
|
|
351
296
|
},
|
|
352
297
|
]
|
|
353
298
|
for colour in colours:
|
|
@@ -16,7 +16,7 @@ import logging
|
|
|
16
16
|
|
|
17
17
|
logger = logging.getLogger('picker_log')
|
|
18
18
|
|
|
19
|
-
def default_option_input(stdscr: curses.window, refresh_screen_function=None, starting_value:str="", field_prefix:str="Opts", registers={}) -> Tuple[bool, str]:
|
|
19
|
+
def default_option_input(stdscr: curses.window, refresh_screen_function=lambda : None, starting_value:str="", field_prefix:str=" Opts: ", registers={}) -> Tuple[bool, str]:
|
|
20
20
|
|
|
21
21
|
logger.info("function: default_option_input (options_selectors.py)")
|
|
22
22
|
# notification(stdscr, message=f"opt required for {index}")
|
|
@@ -33,6 +33,11 @@ def default_option_input(stdscr: curses.window, refresh_screen_function=None, st
|
|
|
33
33
|
y=lambda: stdscr.getmaxyx()[0]-1,
|
|
34
34
|
max_length=field_end_f,
|
|
35
35
|
registers=registers,
|
|
36
|
+
refresh_screen_function=refresh_screen_function,
|
|
37
|
+
path_auto_complete=False,
|
|
38
|
+
formula_auto_complete=False,
|
|
39
|
+
function_auto_complete=False,
|
|
40
|
+
word_auto_complete=False,
|
|
36
41
|
)
|
|
37
42
|
if return_val: return True, usrtxt
|
|
38
43
|
else: return False, starting_value
|
|
@@ -60,6 +65,7 @@ def default_option_selector(stdscr: curses.window, refresh_screen_function=None,
|
|
|
60
65
|
y=lambda: stdscr.getmaxyx()[0]-1,
|
|
61
66
|
max_length=field_end_f,
|
|
62
67
|
registers=registers,
|
|
68
|
+
refresh_screen_function=refresh_screen_function,
|
|
63
69
|
)
|
|
64
70
|
if return_val: return True, usrtxt
|
|
65
71
|
else: return False, starting_value
|
|
@@ -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=R_7CYNwOQ-wcGka0oJAEANNkuBuqg8IyGRMgM2_SbEw,201618
|
|
4
4
|
listpick/pane/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
listpick/pane/get_data.py,sha256=21PTDXt9HP-4vZV4QUM8sidTqDEaKnKCDshl3-cSRCo,2255
|
|
6
6
|
listpick/pane/pane_functions.py,sha256=Hpc6wSFeiTmQTyO6n13muenarZMvzFw0OCmjJJy2lTY,3910
|
|
@@ -11,7 +11,7 @@ listpick/ui/footer.py,sha256=OH27JLGvvq9TlUsI30ODG6cHvjm7NTGSbXvF6lN1qiY,15089
|
|
|
11
11
|
listpick/ui/help_screen.py,sha256=zbfGIgb-IXtATpl4_Sx7nPbsnRXZ7eiMYlCKGS9EFmw,5608
|
|
12
12
|
listpick/ui/input_field.py,sha256=ylf3fiLXdAD4pueHWfzIrlwaRb9f5zm8f1UGkEPBxgM,30539
|
|
13
13
|
listpick/ui/keys.py,sha256=1NCsOPFxhNuVPbO5vflcArNZ1jbBBerPQ3oZUAZDyPs,13682
|
|
14
|
-
listpick/ui/picker_colours.py,sha256=
|
|
14
|
+
listpick/ui/picker_colours.py,sha256=FFsyny_q0mGO6u7B1n7anuReBtP7Jw6LrgX5ycN-MRM,13413
|
|
15
15
|
listpick/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
16
|
listpick/utils/clipboard_operations.py,sha256=ORdNm2kgGbfs51xJSvgJPERgoSmBgT11axuMkvSoP9A,3133
|
|
17
17
|
listpick/utils/config.py,sha256=MEnAZg2Rhfl38XofEIN0uoVAOY7I0ftc79Evk3fOiVw,1654
|
|
@@ -20,7 +20,7 @@ listpick/utils/filtering.py,sha256=59_YIEYRV0ovnjF4iyuShq276FMAx5gBD9m3mE9IqJg,1
|
|
|
20
20
|
listpick/utils/generate_data.py,sha256=7sv6JRhk0-Gcj4kOlkzx4qPNBJZ-GFWg9vM77GktzpI,3073
|
|
21
21
|
listpick/utils/graphing.py,sha256=ugjAH8js_iH7hulg4SySxb_W_f8B6GhTaceN5i7DID4,6954
|
|
22
22
|
listpick/utils/keycodes.py,sha256=ZGkw1-4szxPnP81wj80r92L6_neIOlBBjQltEieCwnk,2696
|
|
23
|
-
listpick/utils/options_selectors.py,sha256=
|
|
23
|
+
listpick/utils/options_selectors.py,sha256=fQqTCAqRsrMhZwXUtsPBm47svkaUaeJqWsMW7Q4JTYY,3083
|
|
24
24
|
listpick/utils/paste_operations.py,sha256=7wDXLPlxUgA3CA99gwsm47juWGO2YQ9EJghW06yo9vI,1242
|
|
25
25
|
listpick/utils/picker_log.py,sha256=SW6GmjxpI7YrSf72fSr4O8Ux0fY_OzaSXUgTFdz6Xo4,805
|
|
26
26
|
listpick/utils/search_and_filter_utils.py,sha256=XxGfkyDVXO9OAKcftPat8IReMTFIuTH-jorxI4o84tg,3239
|
|
@@ -29,9 +29,9 @@ listpick/utils/sorting.py,sha256=WZZiVlVA3Zkcpwji3U5SNFlQ14zVEk3cZJtQirBkecQ,532
|
|
|
29
29
|
listpick/utils/table_to_list_of_lists.py,sha256=XBj7eGBDF15BRME-swnoXyOfZWxXCxrXp0pzsBfcJ5g,12224
|
|
30
30
|
listpick/utils/user_input.py,sha256=oyJZPAwA7UGAclPhdPL44tKnPIVNHWhX-tZEnCdBKC0,4318
|
|
31
31
|
listpick/utils/utils.py,sha256=QptLnqT15Z3G7xoq-6Q8e4-aZRFClTdb3h0l42di11s,13810
|
|
32
|
-
listpick-0.1.15.
|
|
33
|
-
listpick-0.1.15.
|
|
34
|
-
listpick-0.1.15.
|
|
35
|
-
listpick-0.1.15.
|
|
36
|
-
listpick-0.1.15.
|
|
37
|
-
listpick-0.1.15.
|
|
32
|
+
listpick-0.1.15.20.dist-info/licenses/LICENSE.txt,sha256=2mP-MRHJptADDNE9VInMNg1tE-C6Qv93Z4CCQKrpg9w,1061
|
|
33
|
+
listpick-0.1.15.20.dist-info/METADATA,sha256=oV_4ZSiZolXVHs-OJq_pfjdnK-BuO2d_2MzZ1aisLvA,8132
|
|
34
|
+
listpick-0.1.15.20.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
35
|
+
listpick-0.1.15.20.dist-info/entry_points.txt,sha256=-QCf_BKIkUz35Y9nkYpjZWs2Qg0KfRna2PAs5DnF6BE,43
|
|
36
|
+
listpick-0.1.15.20.dist-info/top_level.txt,sha256=5mtsGEz86rz3qQDe0D463gGjAfSp6A3EWg4J4AGYr-Q,9
|
|
37
|
+
listpick-0.1.15.20.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|