listpick 0.1.13.53__py3-none-any.whl → 0.1.13.55__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 +1 -1
- listpick/listpick_app_1.py +3250 -0
- listpick/lpapp2.py +2 -1
- listpick/ui/footer.py +34 -45
- listpick/ui/footer_1.py +213 -0
- {listpick-0.1.13.53.dist-info → listpick-0.1.13.55.dist-info}/METADATA +1 -1
- {listpick-0.1.13.53.dist-info → listpick-0.1.13.55.dist-info}/RECORD +11 -9
- {listpick-0.1.13.53.dist-info → listpick-0.1.13.55.dist-info}/WHEEL +0 -0
- {listpick-0.1.13.53.dist-info → listpick-0.1.13.55.dist-info}/entry_points.txt +0 -0
- {listpick-0.1.13.53.dist-info → listpick-0.1.13.55.dist-info}/licenses/LICENSE.txt +0 -0
- {listpick-0.1.13.53.dist-info → listpick-0.1.13.55.dist-info}/top_level.txt +0 -0
listpick/lpapp2.py
CHANGED
|
@@ -982,6 +982,7 @@ class Picker:
|
|
|
982
982
|
disp_string = f" {self.footer_string[:footer_string_width]:>{footer_string_width-2}} "
|
|
983
983
|
self.stdscr.addstr(h - 1, w-footer_string_width-1, " "*footer_string_width, curses.color_pair(self.colours_start+24))
|
|
984
984
|
self.stdscr.addstr(h - 1, w-footer_string_width-1, f"{disp_string}", curses.color_pair(self.colours_start+24))
|
|
985
|
+
self.stdscr.refresh()
|
|
985
986
|
|
|
986
987
|
## Display infobox
|
|
987
988
|
if self.display_infobox:
|
|
@@ -1831,7 +1832,7 @@ class Picker:
|
|
|
1831
1832
|
|
|
1832
1833
|
def get_word_list(self) -> list[str]:
|
|
1833
1834
|
""" Get a list of all words used in any cell of the picker. Used for completion in search/filter input_field. """
|
|
1834
|
-
self.logger.info(f"function:
|
|
1835
|
+
self.logger.info(f"function: get_word_list()")
|
|
1835
1836
|
translator = str.maketrans('', '', string.punctuation)
|
|
1836
1837
|
|
|
1837
1838
|
words = []
|
listpick/ui/footer.py
CHANGED
|
@@ -39,24 +39,39 @@ class StandardFooter(Footer):
|
|
|
39
39
|
self.stdscr = stdscr
|
|
40
40
|
self.colours_start = colours_start
|
|
41
41
|
self.get_state = get_state_function
|
|
42
|
-
|
|
43
|
-
self.height = 2
|
|
44
|
-
try:
|
|
45
|
-
state = self.get_state()
|
|
46
|
-
if "footer_string" in state and state["footer_string"]: self.height = 3
|
|
47
|
-
else: self.height = 2
|
|
48
|
-
except:
|
|
49
|
-
logger.error("Error encountered when running StandardFooter.get_state")
|
|
42
|
+
self.height = 3
|
|
50
43
|
def draw(self, h, w):
|
|
51
44
|
state = self.get_state()
|
|
45
|
+
|
|
52
46
|
# Fill background
|
|
53
|
-
|
|
54
|
-
|
|
47
|
+
for i in range(3):
|
|
48
|
+
self.stdscr.addstr(h-3+i, 0, ' '*(w-1), curses.color_pair(self.colours_start+20))
|
|
55
49
|
|
|
56
|
-
|
|
57
|
-
self.stdscr.addstr(h-
|
|
50
|
+
if state["filter_query"]:
|
|
51
|
+
self.stdscr.addstr(h - 2, 2, f" Filter: {state['filter_query']} "[:w-40], curses.color_pair(self.colours_start+20) | curses.A_BOLD)
|
|
52
|
+
if state["search_query"]:
|
|
53
|
+
self.stdscr.addstr(h - 3, 2, f" Search: {state['search_query']} [{state['search_index']}/{state['search_count']}] "[:w-3], curses.color_pair(self.colours_start+20) | curses.A_BOLD)
|
|
54
|
+
if state["user_opts"]:
|
|
55
|
+
self.stdscr.addstr(h - 1, 2, f" Opts: {state['user_opts']} "[:w-3], curses.color_pair(self.colours_start+20) | curses.A_BOLD)
|
|
56
|
+
|
|
57
|
+
# Sort info
|
|
58
|
+
sort_column_info = f"{state['sort_column'] if state['sort_column'] is not None else 'None'}"
|
|
59
|
+
sort_method_info = f"{state['SORT_METHODS'][state['columns_sort_method'][state['sort_column']]]}" if state['sort_column'] is not None else "NA"
|
|
60
|
+
sort_order_info = "Desc." if state["sort_reverse"] else "Asc."
|
|
61
|
+
sort_order_info = "▼" if state["sort_reverse"][state['sort_column']] else "▲"
|
|
62
|
+
sort_disp_str = f" Sort: ({sort_column_info}, {sort_method_info}, {sort_order_info}) "
|
|
63
|
+
self.stdscr.addstr(h - 2, w-35, f"{sort_disp_str:>34}", curses.color_pair(self.colours_start+20))
|
|
58
64
|
|
|
59
65
|
if state["footer_string"]:
|
|
66
|
+
# footer_string_width = min(w-1, max(len(state["footer_string"]), 50))
|
|
67
|
+
# disp_string = f"{state['footer_string'][:footer_string_width]:>{footer_string_width-1}} "
|
|
68
|
+
# self.stdscr.addstr(h - 1, w-footer_string_width-1, " "*footer_string_width, curses.color_pair(self.colours_start+24))
|
|
69
|
+
# self.stdscr.addstr(h - 1, w-footer_string_width-1, f"{disp_string}", curses.color_pair(self.colours_start+24))
|
|
70
|
+
|
|
71
|
+
# disp_string = f"{footer_string:>{footer_string_width-1}} "
|
|
72
|
+
# self.stdscr.addstr(h - 1, w-footer_string_width-1, " "*footer_string_width, curses.color_pair(self.colours_start+24))
|
|
73
|
+
# self.stdscr.addstr(h - 1, w-footer_string_width-1, f"{disp_string}", curses.color_pair(self.colours_start+24))
|
|
74
|
+
|
|
60
75
|
footer_string_width = min(w-1, len(state["footer_string"])+2)
|
|
61
76
|
|
|
62
77
|
disp_string = f"{state["footer_string"][:footer_string_width]}"
|
|
@@ -64,46 +79,20 @@ class StandardFooter(Footer):
|
|
|
64
79
|
self.stdscr.addstr(h - 1, w-footer_string_width-1, " "*footer_string_width, curses.color_pair(self.colours_start+24))
|
|
65
80
|
self.stdscr.addstr(h - 1, w-footer_string_width-1, f"{disp_string}", curses.color_pair(self.colours_start+24))
|
|
66
81
|
|
|
67
|
-
|
|
68
|
-
sort_info_y = h-2
|
|
82
|
+
|
|
69
83
|
else:
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
select_mode = "
|
|
73
|
-
if state["is_selecting"]: select_mode = "VS"
|
|
74
|
-
elif state["is_deselecting"]: select_mode = "VDS"
|
|
75
|
-
if state["pin_cursor"]: select_mode = f"{select_mode} "
|
|
84
|
+
select_mode = "Cursor"
|
|
85
|
+
if state["is_selecting"]: select_mode = "Visual Selection"
|
|
86
|
+
elif state["is_deselecting"]: select_mode = "Visual deselection"
|
|
76
87
|
self.stdscr.addstr(h - 1, w-35, f"{select_mode:>33} ", curses.color_pair(self.colours_start+20))
|
|
77
88
|
|
|
78
|
-
if state["filter_query"]:
|
|
79
|
-
self.stdscr.addstr(h - 2, 2, f" Filter: {state['filter_query']} "[:w-40], curses.color_pair(self.colours_start+20) | curses.A_BOLD)
|
|
80
|
-
if state["search_query"]:
|
|
81
|
-
self.stdscr.addstr(h - 3, 2, f" Search: {state['search_query']} [{state['search_index']}/{state['search_count']}] "[:w-3], curses.color_pair(self.colours_start+20) | curses.A_BOLD)
|
|
82
|
-
if state["user_opts"]:
|
|
83
|
-
self.stdscr.addstr(h - 1, 2, f" Opts: {state['user_opts']} "[:w-3], curses.color_pair(self.colours_start+20) | curses.A_BOLD)
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
select_mode = "C"
|
|
88
|
-
if state["is_selecting"]: select_mode = "VS"
|
|
89
|
-
elif state["is_deselecting"]: select_mode = "VDS"
|
|
90
|
-
if state["pin_cursor"]: select_mode = f"{select_mode} "
|
|
91
89
|
# Cursor & selection info
|
|
92
90
|
selected_count = sum(state["selections"].values())
|
|
93
91
|
if state["paginate"]:
|
|
94
|
-
cursor_disp_str = f"
|
|
92
|
+
cursor_disp_str = f" {state['cursor_pos']+1}/{len(state['indexed_items'])} Page {state['cursor_pos']//state['items_per_page']}/{len(state['indexed_items'])} Selected {selected_count}"
|
|
95
93
|
else:
|
|
96
|
-
cursor_disp_str = f"
|
|
97
|
-
self.stdscr.addstr(
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
# Sort info
|
|
101
|
-
sort_column_info = f"{state['sort_column'] if state['sort_column'] is not None else 'None'}"
|
|
102
|
-
sort_method_info = f"{state['SORT_METHODS'][state['columns_sort_method'][state['sort_column']]]}" if state['sort_column'] is not None else "NA"
|
|
103
|
-
sort_order_info = "Desc." if state["sort_reverse"] else "Asc."
|
|
104
|
-
sort_order_info = "▼" if state["sort_reverse"][state['sort_column']] else "▲"
|
|
105
|
-
sort_disp_str = f" Sort: ({sort_column_info}, {sort_method_info}, {sort_order_info}) "
|
|
106
|
-
self.stdscr.addstr(sort_info_y, w-35, f"{sort_disp_str:>34}", curses.color_pair(self.colours_start+20))
|
|
94
|
+
cursor_disp_str = f" {state['cursor_pos']+1}/{len(state['indexed_items'])} | Selected {selected_count}"
|
|
95
|
+
self.stdscr.addstr(h - 3, w-35, f"{cursor_disp_str:>33} ", curses.color_pair(self.colours_start+20))
|
|
107
96
|
|
|
108
97
|
self.stdscr.refresh()
|
|
109
98
|
|
listpick/ui/footer_1.py
ADDED
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
"""
|
|
2
|
+
footer.py
|
|
3
|
+
Lines to be displayed on the help screen.
|
|
4
|
+
|
|
5
|
+
Author: GrimAndGreedy
|
|
6
|
+
License: MIT
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
import curses
|
|
10
|
+
import logging
|
|
11
|
+
|
|
12
|
+
logger = logging.getLogger('picker_log')
|
|
13
|
+
|
|
14
|
+
class Footer:
|
|
15
|
+
def __init__(self, stdscr, colours_start, get_state_function):
|
|
16
|
+
"""
|
|
17
|
+
stdscr: curses screen object
|
|
18
|
+
colours_start: base colour pair index
|
|
19
|
+
get_state_callback: function that returns a dict with all required data for rendering
|
|
20
|
+
"""
|
|
21
|
+
self.stdscr = stdscr
|
|
22
|
+
self.colours_start = colours_start
|
|
23
|
+
self.get_state = get_state_function
|
|
24
|
+
self.height = 0
|
|
25
|
+
|
|
26
|
+
def draw(self, h, w):
|
|
27
|
+
"""
|
|
28
|
+
Draw the footer. Must be implemented by subclasses.
|
|
29
|
+
"""
|
|
30
|
+
raise NotImplementedError
|
|
31
|
+
|
|
32
|
+
class StandardFooter(Footer):
|
|
33
|
+
def __init__(self, stdscr, colours_start, get_state_function):
|
|
34
|
+
"""
|
|
35
|
+
stdscr: curses screen object
|
|
36
|
+
colours_start: base colour pair index
|
|
37
|
+
get_state_callback: function that returns a dict with all required data for rendering
|
|
38
|
+
"""
|
|
39
|
+
self.stdscr = stdscr
|
|
40
|
+
self.colours_start = colours_start
|
|
41
|
+
self.get_state = get_state_function
|
|
42
|
+
|
|
43
|
+
self.height = 2
|
|
44
|
+
try:
|
|
45
|
+
state = self.get_state()
|
|
46
|
+
if "footer_string" in state and state["footer_string"]: self.height = 3
|
|
47
|
+
else: self.height = 2
|
|
48
|
+
except:
|
|
49
|
+
logger.error("Error encountered when running StandardFooter.get_state")
|
|
50
|
+
def draw(self, h, w):
|
|
51
|
+
state = self.get_state()
|
|
52
|
+
# Fill background
|
|
53
|
+
if "footer_string" in state and state["footer_string"]: self.height = 3
|
|
54
|
+
else: self.height = 2
|
|
55
|
+
|
|
56
|
+
for i in range(self.height):
|
|
57
|
+
self.stdscr.addstr(h-self.height+i, 0, ' '*(w-1), curses.color_pair(self.colours_start+20))
|
|
58
|
+
|
|
59
|
+
if state["footer_string"]:
|
|
60
|
+
footer_string_width = min(w-1, len(state["footer_string"])+2)
|
|
61
|
+
|
|
62
|
+
disp_string = f"{state["footer_string"][:footer_string_width]}"
|
|
63
|
+
disp_string = f" {disp_string:>{footer_string_width-2}} "
|
|
64
|
+
self.stdscr.addstr(h - 1, w-footer_string_width-1, " "*footer_string_width, curses.color_pair(self.colours_start+24))
|
|
65
|
+
self.stdscr.addstr(h - 1, w-footer_string_width-1, f"{disp_string}", curses.color_pair(self.colours_start+24))
|
|
66
|
+
|
|
67
|
+
picker_info_y = h-3
|
|
68
|
+
sort_info_y = h-2
|
|
69
|
+
else:
|
|
70
|
+
picker_info_y = h-2
|
|
71
|
+
sort_info_y = h-1
|
|
72
|
+
select_mode = "C"
|
|
73
|
+
if state["is_selecting"]: select_mode = "VS"
|
|
74
|
+
elif state["is_deselecting"]: select_mode = "VDS"
|
|
75
|
+
if state["pin_cursor"]: select_mode = f"{select_mode} "
|
|
76
|
+
self.stdscr.addstr(h - 1, w-35, f"{select_mode:>33} ", curses.color_pair(self.colours_start+20))
|
|
77
|
+
|
|
78
|
+
if state["filter_query"]:
|
|
79
|
+
self.stdscr.addstr(h - 2, 2, f" Filter: {state['filter_query']} "[:w-40], curses.color_pair(self.colours_start+20) | curses.A_BOLD)
|
|
80
|
+
if state["search_query"]:
|
|
81
|
+
self.stdscr.addstr(h - 3, 2, f" Search: {state['search_query']} [{state['search_index']}/{state['search_count']}] "[:w-3], curses.color_pair(self.colours_start+20) | curses.A_BOLD)
|
|
82
|
+
if state["user_opts"]:
|
|
83
|
+
self.stdscr.addstr(h - 1, 2, f" Opts: {state['user_opts']} "[:w-3], curses.color_pair(self.colours_start+20) | curses.A_BOLD)
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
select_mode = "C"
|
|
88
|
+
if state["is_selecting"]: select_mode = "VS"
|
|
89
|
+
elif state["is_deselecting"]: select_mode = "VDS"
|
|
90
|
+
if state["pin_cursor"]: select_mode = f"{select_mode} "
|
|
91
|
+
# Cursor & selection info
|
|
92
|
+
selected_count = sum(state["selections"].values())
|
|
93
|
+
if state["paginate"]:
|
|
94
|
+
cursor_disp_str = f" [{selected_count}] {state['cursor_pos']+1}/{len(state['indexed_items'])} Page {state['cursor_pos']//state['items_per_page']}/{len(state['indexed_items'])}"
|
|
95
|
+
else:
|
|
96
|
+
cursor_disp_str = f" [{selected_count}] {state['cursor_pos']+1}/{len(state['indexed_items'])} | {select_mode}"
|
|
97
|
+
self.stdscr.addstr(picker_info_y, w-35, f"{cursor_disp_str:>33} ", curses.color_pair(self.colours_start+20))
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
# Sort info
|
|
101
|
+
sort_column_info = f"{state['sort_column'] if state['sort_column'] is not None else 'None'}"
|
|
102
|
+
sort_method_info = f"{state['SORT_METHODS'][state['columns_sort_method'][state['sort_column']]]}" if state['sort_column'] is not None else "NA"
|
|
103
|
+
sort_order_info = "Desc." if state["sort_reverse"] else "Asc."
|
|
104
|
+
sort_order_info = "▼" if state["sort_reverse"][state['sort_column']] else "▲"
|
|
105
|
+
sort_disp_str = f" Sort: ({sort_column_info}, {sort_method_info}, {sort_order_info}) "
|
|
106
|
+
self.stdscr.addstr(sort_info_y, w-35, f"{sort_disp_str:>34}", curses.color_pair(self.colours_start+20))
|
|
107
|
+
|
|
108
|
+
# self.stdscr.refresh()
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
class CompactFooter(Footer):
|
|
113
|
+
def __init__(self, stdscr, colours_start, get_state_function):
|
|
114
|
+
"""
|
|
115
|
+
stdscr: curses screen object
|
|
116
|
+
colours_start: base colour pair index
|
|
117
|
+
get_state_callback: function that returns a dict with all required data for rendering
|
|
118
|
+
"""
|
|
119
|
+
self.stdscr = stdscr
|
|
120
|
+
self.colours_start = colours_start
|
|
121
|
+
self.get_state = get_state_function
|
|
122
|
+
self.height = 1
|
|
123
|
+
|
|
124
|
+
def draw(self, h, w):
|
|
125
|
+
state = self.get_state()
|
|
126
|
+
|
|
127
|
+
# Fill background
|
|
128
|
+
if state["search_query"]: self.height = 3
|
|
129
|
+
elif state["filter_query"]: self.height = 2
|
|
130
|
+
elif state["user_opts"]: self.height = 1
|
|
131
|
+
elif state["footer_string"]: self.height = 2
|
|
132
|
+
else: self.height = 1
|
|
133
|
+
for i in range(self.height):
|
|
134
|
+
self.stdscr.addstr(h-(i+1), 0, ' '*(w-1), curses.color_pair(self.colours_start+20))
|
|
135
|
+
|
|
136
|
+
if state["user_opts"]:
|
|
137
|
+
self.stdscr.addstr(h - 1, 2, f" Opts: {state['user_opts']} "[:w-3], curses.color_pair(self.colours_start+20) | curses.A_BOLD)
|
|
138
|
+
if state["filter_query"]:
|
|
139
|
+
self.stdscr.addstr(h - 2, 2, f" Filter: {state['filter_query']} "[:w-40], curses.color_pair(self.colours_start+20) | curses.A_BOLD)
|
|
140
|
+
if state["search_query"]:
|
|
141
|
+
self.stdscr.addstr(h - 3, 2, f" Search: {state['search_query']} [{state['search_index']}/{state['search_count']}] "[:w-3], curses.color_pair(self.colours_start+20) | curses.A_BOLD)
|
|
142
|
+
|
|
143
|
+
right_width = 40
|
|
144
|
+
# Sort info
|
|
145
|
+
sort_column_info = f"{state['sort_column'] if state['sort_column'] is not None else 'None'}"
|
|
146
|
+
sort_method_info = f"{state['SORT_METHODS'][state['columns_sort_method'][state['sort_column']]]}" if state['sort_column'] is not None else "NA"
|
|
147
|
+
sort_order_info = "Desc." if state["sort_reverse"][state['sort_column']] else "Asc."
|
|
148
|
+
sort_order_info = "▼" if state["sort_reverse"][state['sort_column']] else "▲"
|
|
149
|
+
sort_disp_str = f" ({sort_column_info}, {sort_method_info}, {sort_order_info}) "
|
|
150
|
+
# self.stdscr.addstr(h - 2, w-right_width, f"{sort_disp_str:>{right_width-1}}", curses.color_pair(self.colours_start+20))
|
|
151
|
+
|
|
152
|
+
if state["footer_string"]:
|
|
153
|
+
footer_string_width = min(w-1, len(state["footer_string"])+2)
|
|
154
|
+
|
|
155
|
+
disp_string = f"{state["footer_string"][:footer_string_width]}"
|
|
156
|
+
disp_string = f" {disp_string:>{footer_string_width-2}} "
|
|
157
|
+
self.stdscr.addstr(h - 1, w-footer_string_width-1, " "*footer_string_width, curses.color_pair(self.colours_start+24))
|
|
158
|
+
self.stdscr.addstr(h - 1, w-footer_string_width-1, f"{disp_string}", curses.color_pair(self.colours_start+24))
|
|
159
|
+
selected_count = sum(state["selections"].values())
|
|
160
|
+
if state["paginate"]:
|
|
161
|
+
cursor_disp_str = f" {state['cursor_pos']+1}/{len(state['indexed_items'])} Page {state['cursor_pos']//state['items_per_page']}/{len(state['indexed_items'])} Selected {selected_count}"
|
|
162
|
+
else:
|
|
163
|
+
cursor_disp_str = f"{sort_disp_str} [{selected_count}] {state['cursor_pos']+1}/{len(state['indexed_items'])}"
|
|
164
|
+
self.stdscr.addstr(h-2, w-right_width, f"{cursor_disp_str:>{right_width-2}}"[:right_width-1], curses.color_pair(self.colours_start+20))
|
|
165
|
+
else:
|
|
166
|
+
# Cursor & selection info
|
|
167
|
+
selected_count = sum(state["selections"].values())
|
|
168
|
+
if state["paginate"]:
|
|
169
|
+
cursor_disp_str = f" {state['cursor_pos']+1}/{len(state['indexed_items'])} Page {state['cursor_pos']//state['items_per_page']}/{len(state['indexed_items'])} Selected {selected_count}"
|
|
170
|
+
else:
|
|
171
|
+
cursor_disp_str = f"{sort_disp_str} [{selected_count}] {state['cursor_pos']+1}/{len(state['indexed_items'])}"
|
|
172
|
+
self.stdscr.addstr(h - 1, w-right_width, f"{cursor_disp_str:>{right_width-2}}"[:right_width-1], curses.color_pair(self.colours_start+20))
|
|
173
|
+
|
|
174
|
+
self.stdscr.refresh()
|
|
175
|
+
|
|
176
|
+
class NoFooter(Footer):
|
|
177
|
+
def __init__(self, stdscr, colours_start, get_state_function):
|
|
178
|
+
"""
|
|
179
|
+
stdscr: curses screen object
|
|
180
|
+
colours_start: base colour pair index
|
|
181
|
+
get_state_callback: function that returns a dict with all required data for rendering
|
|
182
|
+
"""
|
|
183
|
+
self.stdscr = stdscr
|
|
184
|
+
self.colours_start = colours_start
|
|
185
|
+
self.get_state = get_state_function
|
|
186
|
+
self.height = 0
|
|
187
|
+
def draw(self, h, w):
|
|
188
|
+
state = self.get_state()
|
|
189
|
+
|
|
190
|
+
if state["search_query"]: self.height = 3
|
|
191
|
+
elif state["filter_query"]: self.height = 2
|
|
192
|
+
elif state["user_opts"]: self.height = 1
|
|
193
|
+
elif state["footer_string"]: self.height = 1
|
|
194
|
+
else: self.height = 0
|
|
195
|
+
|
|
196
|
+
for i in range(self.height):
|
|
197
|
+
self.stdscr.addstr(h-(i+1), 0, ' '*(w-1), curses.color_pair(self.colours_start+20))
|
|
198
|
+
|
|
199
|
+
if state["user_opts"]:
|
|
200
|
+
self.stdscr.addstr(h - 1, 2, f" Opts: {state['user_opts']} "[:w-3], curses.color_pair(self.colours_start+20) | curses.A_BOLD)
|
|
201
|
+
if state["filter_query"]:
|
|
202
|
+
self.stdscr.addstr(h - 2, 2, f" Filter: {state['filter_query']} "[:w-40], curses.color_pair(self.colours_start+20) | curses.A_BOLD)
|
|
203
|
+
if state["search_query"]:
|
|
204
|
+
self.stdscr.addstr(h - 3, 2, f" Search: {state['search_query']} [{state['search_index']}/{state['search_count']}] "[:w-3], curses.color_pair(self.colours_start+20) | curses.A_BOLD)
|
|
205
|
+
self.height = 3
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
if state["footer_string"]:
|
|
209
|
+
footer_string_width = min(w-1, len(state["footer_string"])+2)
|
|
210
|
+
disp_string = f"{state["footer_string"][:footer_string_width]}"
|
|
211
|
+
disp_string = f" {disp_string:>{footer_string_width-2}} "
|
|
212
|
+
self.stdscr.addstr(h - 1, w-footer_string_width-1, " "*footer_string_width, curses.color_pair(self.colours_start+24))
|
|
213
|
+
self.stdscr.addstr(h - 1, w-footer_string_width-1, f"{disp_string}", curses.color_pair(self.colours_start+24))
|
|
@@ -1,10 +1,12 @@
|
|
|
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=
|
|
4
|
-
listpick/
|
|
3
|
+
listpick/listpick_app.py,sha256=6KULvZKkHpI8y0Z48Qo5_hrKfd1S3khdScLLJtlPIjI,166651
|
|
4
|
+
listpick/listpick_app_1.py,sha256=6KULvZKkHpI8y0Z48Qo5_hrKfd1S3khdScLLJtlPIjI,166651
|
|
5
|
+
listpick/lpapp2.py,sha256=x26FOsUPgwjiAecF8gGE8GbfCQF6eJGgf4hccqSZIBU,162376
|
|
5
6
|
listpick/ui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
7
|
listpick/ui/build_help.py,sha256=_rVKKrX3HfFJtw-pyeNb2lQWbml4-AAw8sZIUYGn97Y,8731
|
|
7
|
-
listpick/ui/footer.py,sha256=
|
|
8
|
+
listpick/ui/footer.py,sha256=Mpn0gFAnX_Ely-Jl5KPP6sdZRnk8makt8EVBh9wdr4Y,10710
|
|
9
|
+
listpick/ui/footer_1.py,sha256=po8abQfaVNoWxYJCw8fENENIdOvNmLIZYfuqTwagz00,10713
|
|
8
10
|
listpick/ui/help_screen.py,sha256=zbfGIgb-IXtATpl4_Sx7nPbsnRXZ7eiMYlCKGS9EFmw,5608
|
|
9
11
|
listpick/ui/input_field.py,sha256=eyoWHoApdZybjfXcp7Eth7xwb-C-856ZVnq5j_Q3Ojs,30412
|
|
10
12
|
listpick/ui/keys.py,sha256=TzaadgBP_rC7jbp--RFJZDOkHd0EB4K1wToDTiVs6CI,13029
|
|
@@ -24,9 +26,9 @@ listpick/utils/searching.py,sha256=Xk5UIqamNHL2L90z3ACB_Giqdpi9iRKoAJ6pKaqaD7Q,3
|
|
|
24
26
|
listpick/utils/sorting.py,sha256=WZZiVlVA3Zkcpwji3U5SNFlQ14zVEk3cZJtQirBkecQ,5329
|
|
25
27
|
listpick/utils/table_to_list_of_lists.py,sha256=T-i-nV1p6g8UagdgUPKrhIGpKY_YXZDxf4xZzcPepNA,7635
|
|
26
28
|
listpick/utils/utils.py,sha256=bEE7-g3cyZd4QFHOxo4P6lXmuo0NwHTS_ovFC92po5w,13826
|
|
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.
|
|
32
|
-
listpick-0.1.13.
|
|
29
|
+
listpick-0.1.13.55.dist-info/licenses/LICENSE.txt,sha256=2mP-MRHJptADDNE9VInMNg1tE-C6Qv93Z4CCQKrpg9w,1061
|
|
30
|
+
listpick-0.1.13.55.dist-info/METADATA,sha256=tfHsx31zDd3hpMCp1sGgTnVci5PrrOegqUVfswqPJoo,7988
|
|
31
|
+
listpick-0.1.13.55.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
32
|
+
listpick-0.1.13.55.dist-info/entry_points.txt,sha256=-QCf_BKIkUz35Y9nkYpjZWs2Qg0KfRna2PAs5DnF6BE,43
|
|
33
|
+
listpick-0.1.13.55.dist-info/top_level.txt,sha256=5mtsGEz86rz3qQDe0D463gGjAfSp6A3EWg4J4AGYr-Q,9
|
|
34
|
+
listpick-0.1.13.55.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|