listpick 0.1.15.17__py3-none-any.whl → 0.1.15.19__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 +138 -18
- listpick/ui/picker_colours.py +1 -0
- listpick/utils/options_selectors.py +7 -1
- {listpick-0.1.15.17.dist-info → listpick-0.1.15.19.dist-info}/METADATA +1 -1
- {listpick-0.1.15.17.dist-info → listpick-0.1.15.19.dist-info}/RECORD +9 -9
- {listpick-0.1.15.17.dist-info → listpick-0.1.15.19.dist-info}/WHEEL +0 -0
- {listpick-0.1.15.17.dist-info → listpick-0.1.15.19.dist-info}/entry_points.txt +0 -0
- {listpick-0.1.15.17.dist-info → listpick-0.1.15.19.dist-info}/licenses/LICENSE.txt +0 -0
- {listpick-0.1.15.17.dist-info → listpick-0.1.15.19.dist-info}/top_level.txt +0 -0
listpick/listpick_app.py
CHANGED
|
@@ -2864,14 +2864,16 @@ 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
|
+
field_prefix=f" Opts ({index}): ",
|
|
2868
2869
|
)
|
|
2869
2870
|
else:
|
|
2870
2871
|
self.set_registers()
|
|
2871
2872
|
options_sufficient, usrtxt = default_option_input(
|
|
2872
2873
|
self.stdscr,
|
|
2873
2874
|
starting_value=self.user_opts,
|
|
2874
|
-
registers = self.registers
|
|
2875
|
+
registers = self.registers,
|
|
2876
|
+
field_prefix=f" Opts ({index}): ",
|
|
2875
2877
|
)
|
|
2876
2878
|
|
|
2877
2879
|
if options_sufficient:
|
|
@@ -3814,21 +3816,138 @@ def main() -> None:
|
|
|
3814
3816
|
pass
|
|
3815
3817
|
|
|
3816
3818
|
# function_data["colour_theme_number"] = 3
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3819
|
+
function_data["highlights"] = [
|
|
3820
|
+
{
|
|
3821
|
+
"match": r"^complete[\s]*$",
|
|
3822
|
+
"field": 1,
|
|
3823
|
+
"color": 8,
|
|
3824
|
+
},
|
|
3825
|
+
{
|
|
3826
|
+
"match": r"^error[\s]*|^removed[\s]*$",
|
|
3827
|
+
"field": 1,
|
|
3828
|
+
"color": 7,
|
|
3829
|
+
},
|
|
3830
|
+
{
|
|
3831
|
+
"match": r"^active[\s]*$",
|
|
3832
|
+
"field": 1,
|
|
3833
|
+
"color": 9,
|
|
3834
|
+
},
|
|
3835
|
+
{
|
|
3836
|
+
"match": r"^waiting[\s]*$",
|
|
3837
|
+
"field": 1,
|
|
3838
|
+
"color": 11,
|
|
3839
|
+
},
|
|
3840
|
+
{
|
|
3841
|
+
"match": r"^paused[\s]*$",
|
|
3842
|
+
"field": 1,
|
|
3843
|
+
"color": 12,
|
|
3844
|
+
},
|
|
3845
|
+
{
|
|
3846
|
+
"match": r'^(0\d?(\.\d*)?\b|\b\d(\.\d*)?)\b%?', # Pattern for numbers from 0 to 20
|
|
3847
|
+
"field": 6,
|
|
3848
|
+
"color": 7,
|
|
3849
|
+
},
|
|
3850
|
+
{
|
|
3851
|
+
"match": r'^(2\d(\.\d*)?|3\d(\.\d*)?|40(\.\d*)?)(?!\d)\b%?', # Pattern for numbers from 20 to 40
|
|
3852
|
+
"field": 6,
|
|
3853
|
+
"color": 11,
|
|
3854
|
+
},
|
|
3855
|
+
{
|
|
3856
|
+
"match": r'^(4\d(\.\d*)?|5\d(\.\d*)?|60(\.\d*)?)(?!\d)\b%?', # Pattern for numbers from 40 to 60
|
|
3857
|
+
"field": 6,
|
|
3858
|
+
"color": 9,
|
|
3859
|
+
},
|
|
3860
|
+
{
|
|
3861
|
+
"match": r'^(6\d(\.\d*)?|7\d(\.\d*)?|80(\.\d*)?)(?!\d)\b%?', # Pattern for numbers from 60 to 80
|
|
3862
|
+
"field": 6,
|
|
3863
|
+
"color": 9,
|
|
3864
|
+
},
|
|
3865
|
+
{
|
|
3866
|
+
"match": r'^(8\d(\.\d*)?|9\d(\.\d*)?|100(\.\d*)?)(?!\d)\b%?', # Pattern for numbers from 80 to 100
|
|
3867
|
+
"field": 6,
|
|
3868
|
+
"color": 8,
|
|
3869
|
+
},
|
|
3870
|
+
]
|
|
3871
|
+
menu_highlights = [
|
|
3872
|
+
{
|
|
3873
|
+
"match": "^watch|^view",
|
|
3874
|
+
"field": 0,
|
|
3875
|
+
"color": 8,
|
|
3876
|
+
},
|
|
3877
|
+
{
|
|
3878
|
+
"match": "^add",
|
|
3879
|
+
"field": 0,
|
|
3880
|
+
"color": 13,
|
|
3881
|
+
},
|
|
3882
|
+
{
|
|
3883
|
+
"match": "^pause|^remove",
|
|
3884
|
+
"field": 0,
|
|
3885
|
+
"color": 7,
|
|
3886
|
+
},
|
|
3887
|
+
{
|
|
3888
|
+
"match": "^get",
|
|
3889
|
+
"field": 0,
|
|
3890
|
+
"color": 22,
|
|
3891
|
+
},
|
|
3892
|
+
{
|
|
3893
|
+
"match": "^edit|^restart",
|
|
3894
|
+
"field": 0,
|
|
3895
|
+
"color": 10,
|
|
3896
|
+
},
|
|
3897
|
+
{
|
|
3898
|
+
"match": "graph",
|
|
3899
|
+
"field": 0,
|
|
3900
|
+
"color": 9,
|
|
3901
|
+
},
|
|
3902
|
+
]
|
|
3903
|
+
operations_highlights = [
|
|
3904
|
+
{
|
|
3905
|
+
"match": "^pause",
|
|
3906
|
+
"field": 0,
|
|
3907
|
+
"color": 22,
|
|
3908
|
+
},
|
|
3909
|
+
{
|
|
3910
|
+
"match": "^unpause",
|
|
3911
|
+
"field": 0,
|
|
3912
|
+
"color": 8,
|
|
3913
|
+
},
|
|
3914
|
+
{
|
|
3915
|
+
"match": "^remove",
|
|
3916
|
+
"field": 0,
|
|
3917
|
+
"color": 7,
|
|
3918
|
+
},
|
|
3919
|
+
{
|
|
3920
|
+
"match": r"^retry",
|
|
3921
|
+
"field": 0,
|
|
3922
|
+
"color": 22,
|
|
3923
|
+
},
|
|
3924
|
+
{
|
|
3925
|
+
"match": r"^send to|^change position",
|
|
3926
|
+
"field": 0,
|
|
3927
|
+
"color": 11,
|
|
3928
|
+
},
|
|
3929
|
+
{
|
|
3930
|
+
"match": r"^change options",
|
|
3931
|
+
"field": 0,
|
|
3932
|
+
"color": 13,
|
|
3933
|
+
},
|
|
3934
|
+
{
|
|
3935
|
+
"match": "^DL INFO",
|
|
3936
|
+
"field": 0,
|
|
3937
|
+
"color": 9,
|
|
3938
|
+
},
|
|
3939
|
+
{
|
|
3940
|
+
"match": r"^open",
|
|
3941
|
+
"field": 0,
|
|
3942
|
+
"color": 10,
|
|
3943
|
+
},
|
|
3944
|
+
{
|
|
3945
|
+
"match": "graph",
|
|
3946
|
+
"field": 0,
|
|
3947
|
+
"color": 9,
|
|
3948
|
+
},
|
|
3949
|
+
]
|
|
3950
|
+
function_data["highlights"] = operations_highlights
|
|
3832
3951
|
# function_data["highlights"] = [
|
|
3833
3952
|
# {
|
|
3834
3953
|
# "field": 1,
|
|
@@ -3862,7 +3981,7 @@ def main() -> None:
|
|
|
3862
3981
|
function_data["right_panes"] = [
|
|
3863
3982
|
# Graph or random numbers generated each second
|
|
3864
3983
|
{
|
|
3865
|
-
"proportion": 2
|
|
3984
|
+
"proportion": 1/2,
|
|
3866
3985
|
"auto_refresh": True,
|
|
3867
3986
|
"get_data": data_refresh_randint,
|
|
3868
3987
|
"display": right_split_graph,
|
|
@@ -3906,6 +4025,7 @@ def main() -> None:
|
|
|
3906
4025
|
"refresh_time": 1,
|
|
3907
4026
|
},
|
|
3908
4027
|
]
|
|
4028
|
+
function_data["require_option"] = [True for _ in function_data["items"]]
|
|
3909
4029
|
|
|
3910
4030
|
stdscr = start_curses()
|
|
3911
4031
|
try:
|
listpick/ui/picker_colours.py
CHANGED
|
@@ -361,6 +361,7 @@ def get_notification_colours(pick:int=0) -> Dict[str, int]:
|
|
|
361
361
|
colours['background'] = 237
|
|
362
362
|
colours['unselected_bg'] = 237
|
|
363
363
|
colours['cursor_bg'] = 238
|
|
364
|
+
colours['cursor_fg'] = 255
|
|
364
365
|
colours['selected_bg'] = 237
|
|
365
366
|
|
|
366
367
|
colours['selected_header_column_fg'] = colours['header_fg']
|
|
@@ -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=BlP61QjTueluizKMslb6Ir8SBXtpqKdAdlBI7s2ggNA,201685
|
|
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.19.dist-info/licenses/LICENSE.txt,sha256=2mP-MRHJptADDNE9VInMNg1tE-C6Qv93Z4CCQKrpg9w,1061
|
|
33
|
+
listpick-0.1.15.19.dist-info/METADATA,sha256=DEC_4b14QQUzZ-GF7Kh2llXoArGf3uk6sZKX4iVkt-A,8132
|
|
34
|
+
listpick-0.1.15.19.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
35
|
+
listpick-0.1.15.19.dist-info/entry_points.txt,sha256=-QCf_BKIkUz35Y9nkYpjZWs2Qg0KfRna2PAs5DnF6BE,43
|
|
36
|
+
listpick-0.1.15.19.dist-info/top_level.txt,sha256=5mtsGEz86rz3qQDe0D463gGjAfSp6A3EWg4J4AGYr-Q,9
|
|
37
|
+
listpick-0.1.15.19.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|