listpick 0.1.15.0__py3-none-any.whl → 0.1.15.1__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 +12 -6
- listpick/pane/pane_utils.py +0 -1
- listpick/ui/build_help.py +10 -4
- listpick/ui/keys.py +3 -0
- {listpick-0.1.15.0.dist-info → listpick-0.1.15.1.dist-info}/METADATA +2 -1
- {listpick-0.1.15.0.dist-info → listpick-0.1.15.1.dist-info}/RECORD +10 -10
- {listpick-0.1.15.0.dist-info → listpick-0.1.15.1.dist-info}/WHEEL +0 -0
- {listpick-0.1.15.0.dist-info → listpick-0.1.15.1.dist-info}/entry_points.txt +0 -0
- {listpick-0.1.15.0.dist-info → listpick-0.1.15.1.dist-info}/licenses/LICENSE.txt +0 -0
- {listpick-0.1.15.0.dist-info → listpick-0.1.15.1.dist-info}/top_level.txt +0 -0
listpick/listpick_app.py
CHANGED
|
@@ -2386,7 +2386,7 @@ class Picker:
|
|
|
2386
2386
|
"highlight_full_row": True,
|
|
2387
2387
|
"top_gap": 0,
|
|
2388
2388
|
"paginate": self.paginate,
|
|
2389
|
-
"centre_in_terminal":
|
|
2389
|
+
"centre_in_terminal": False,
|
|
2390
2390
|
"centre_in_terminal_vertical": True,
|
|
2391
2391
|
"hidden_columns": [],
|
|
2392
2392
|
"reset_colours": False,
|
|
@@ -3222,6 +3222,9 @@ class Picker:
|
|
|
3222
3222
|
elif self.check_key("file_prev", key, self.keys_dict):
|
|
3223
3223
|
self.switch_file(increment=-1)
|
|
3224
3224
|
|
|
3225
|
+
elif self.check_key("toggle_right_pane", key, self.keys_dict):
|
|
3226
|
+
self.toggle_right_pane()
|
|
3227
|
+
|
|
3225
3228
|
elif self.check_key("pipe_input", key, self.keys_dict):
|
|
3226
3229
|
self.logger.info(f"key_function pipe_input")
|
|
3227
3230
|
# usrtxt = "xargs -d '\n' -I{} "
|
|
@@ -3744,17 +3747,20 @@ def main() -> None:
|
|
|
3744
3747
|
# function_data["paginate"] = True
|
|
3745
3748
|
# function_data["debug"] = True
|
|
3746
3749
|
# function_data["debug_level"] = 1
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
+
|
|
3751
|
+
function_data["split_right"] = True
|
|
3752
|
+
function_data["split_right_proportion"] = 2/3
|
|
3753
|
+
function_data["split_right_refresh_data"] = data_refresh_randint_title
|
|
3754
|
+
function_data["split_right_function"] = right_split_display_list
|
|
3755
|
+
function_data["split_right_data"] = ["Files", [str(x) for x in range(100)]]
|
|
3756
|
+
|
|
3757
|
+
|
|
3750
3758
|
# function_data["split_right_refresh_data"] = get_dl
|
|
3751
3759
|
|
|
3752
3760
|
|
|
3753
3761
|
# function_data["split_right_function"] = right_split_file_attributes
|
|
3754
3762
|
# function_data["split_right_auto_refresh"] = True
|
|
3755
3763
|
# function_data["split_right_function"] = right_split_graph
|
|
3756
|
-
# function_data["split_right_function"] = right_split_display_list
|
|
3757
|
-
# function_data["split_right_data"] = ["Files", [str(x) for x in range(100)]]
|
|
3758
3764
|
|
|
3759
3765
|
stdscr = start_curses()
|
|
3760
3766
|
try:
|
listpick/pane/pane_utils.py
CHANGED
|
@@ -27,7 +27,6 @@ def get_graph_string(x_vals, y_vals, width=50, height=20, title=None, x_label=No
|
|
|
27
27
|
fig.plot(x_vals, y_vals)
|
|
28
28
|
|
|
29
29
|
# Set the dimensions of the graph
|
|
30
|
-
fig.title = "hi"
|
|
31
30
|
fig.width = width-10
|
|
32
31
|
fig.height = height-4
|
|
33
32
|
fig.x_ticks_fkt = lambda x, _: f"{int(x)}s"
|
listpick/ui/build_help.py
CHANGED
|
@@ -142,14 +142,15 @@ def build_help_rows(keys_dict: dict, debug: bool = False) -> list[list[str]]:
|
|
|
142
142
|
"file_prev": "Go to the previous open file.",
|
|
143
143
|
"sheet_next": "Go to the next sheet.",
|
|
144
144
|
"sheet_prev": "Go to the previous sheet.",
|
|
145
|
+
"toggle_right_pane": "Toggle the right pane",
|
|
145
146
|
}
|
|
146
147
|
sections = {
|
|
147
148
|
"Navigation:": [ "cursor_down", "cursor_up", "half_page_up", "half_page_down", "page_up", "page_down", "cursor_bottom", "cursor_top", "five_up", "five_down", "scroll_right", "scroll_left", "scroll_far_right", "scroll_far_left" ],
|
|
148
149
|
"Selection:": [ "toggle_select", "select_all", "select_none", "visual_selection_toggle", "visual_deselection_toggle", "enter" ],
|
|
149
|
-
"UI:": [ "toggle_footer", "redraw_screen", "decrease_lines_per_page", "increase_lines_per_page", "increase_column_width", "decrease_column_width", "notification_toggle" ],
|
|
150
|
+
"UI:": [ "toggle_footer", "redraw_screen", "decrease_lines_per_page", "increase_lines_per_page", "increase_column_width", "decrease_column_width", "notification_toggle", "toggle_right_pane"],
|
|
150
151
|
"Sort:": [ "cycle_sort_method", "cycle_sort_method_reverse", "cycle_sort_order", ] ,
|
|
151
152
|
"Data manipulation:": [ "delete", "delete_column", "edit", "edit_picker", "edit_ipython", "add_column_before", "add_column_after", "add_row_before", "add_row_after"],
|
|
152
|
-
"Filter and sort:": [ "filter_input", "
|
|
153
|
+
"Filter and sort:": [ "filter_input", "search_input", "continue_search_forward", "continue_search_backward", ] ,
|
|
153
154
|
"Settings:": [ "settings_input", "settings_options" ],
|
|
154
155
|
"Cancel:": [ "opts_input", "opts_select", "mode_next", "mode_prev", "pipe_input", "reset_opts", "col_select", "col_select_next", "col_select_prev", "col_hide" ],
|
|
155
156
|
"Save, load, copy and paste:": [ "save", "load", "open", "copy", "paste" ],
|
|
@@ -197,15 +198,20 @@ def build_help_rows(keys_dict: dict, debug: bool = False) -> list[list[str]]:
|
|
|
197
198
|
row = [f" {str(keys)[1:-1]}", description]
|
|
198
199
|
section_rows.append(row)
|
|
199
200
|
if section_rows:
|
|
200
|
-
items.append([section_name, ""])
|
|
201
|
+
items.append([f" {section_name}", ""])
|
|
201
202
|
items += section_rows
|
|
202
203
|
items.append(["",""])
|
|
203
204
|
|
|
205
|
+
if debug:
|
|
206
|
+
for operation in keys_dict:
|
|
207
|
+
if operation not in help_descriptions:
|
|
208
|
+
print(f"Note that {operation} is not in the help_descriptions")
|
|
209
|
+
|
|
204
210
|
return items
|
|
205
211
|
|
|
206
212
|
if __name__ == "__main__":
|
|
207
213
|
items = build_help_rows(picker_keys, debug=True)
|
|
208
|
-
items = build_help_rows(notification_keys, debug=True)
|
|
214
|
+
# items = build_help_rows(notification_keys, debug=True)
|
|
209
215
|
|
|
210
216
|
# from listpick.listpick_app import Picker, start_curses, close_curses
|
|
211
217
|
# stdscr = start_curses()
|
listpick/ui/keys.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: listpick
|
|
3
|
-
Version: 0.1.15.
|
|
3
|
+
Version: 0.1.15.1
|
|
4
4
|
Summary: Listpick is a powerful TUI data tool for creating TUI apps or viewing/comparing tabulated data.
|
|
5
5
|
Home-page: https://github.com/grimandgreedy/listpick
|
|
6
6
|
Author: Grim
|
|
@@ -27,6 +27,7 @@ Requires-Dist: pyperclip; extra == "full"
|
|
|
27
27
|
Requires-Dist: toml; extra == "full"
|
|
28
28
|
Requires-Dist: traitlets; extra == "full"
|
|
29
29
|
Requires-Dist: odfpy; extra == "full"
|
|
30
|
+
Requires-Dist: plotille; extra == "full"
|
|
30
31
|
Dynamic: author
|
|
31
32
|
Dynamic: author-email
|
|
32
33
|
Dynamic: classifier
|
|
@@ -1,16 +1,16 @@
|
|
|
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=iWa6N4PVeOoLa9Yi9CMUojDHoXzSQviObnfv5vPgpiA,193216
|
|
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=7xynpd3HjZnt6s9W0ZsJlrmYvGCMstAI5OJ7EuQSzdg,3092
|
|
7
|
-
listpick/pane/pane_utils.py,sha256=
|
|
7
|
+
listpick/pane/pane_utils.py,sha256=tMp8KlFng6ZQgNjd8iFrl1zWZLPXMH_Y1A_QeuQYAk0,2537
|
|
8
8
|
listpick/ui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
|
-
listpick/ui/build_help.py,sha256=
|
|
9
|
+
listpick/ui/build_help.py,sha256=NY-bDVV5NYQ2mEJo3-tTUsFpG7R6hwROPZPgc8NGfA0,10451
|
|
10
10
|
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
|
-
listpick/ui/keys.py,sha256=
|
|
13
|
+
listpick/ui/keys.py,sha256=82uzU_cMo6NFHVi3P6cP0uE2ZN0h1EaVLYIVKuB26AU,13494
|
|
14
14
|
listpick/ui/picker_colours.py,sha256=wftDxmUI6tGmOIPwBe4rUUsrPTtpFGgztptCifa_tqA,12287
|
|
15
15
|
listpick/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
16
|
listpick/utils/clipboard_operations.py,sha256=ORdNm2kgGbfs51xJSvgJPERgoSmBgT11axuMkvSoP9A,3133
|
|
@@ -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=McOl9uT3jh7l4TIWeSd8ZGjK_e7r0YZF0Gl20yI6fl0,13873
|
|
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.1.dist-info/licenses/LICENSE.txt,sha256=2mP-MRHJptADDNE9VInMNg1tE-C6Qv93Z4CCQKrpg9w,1061
|
|
33
|
+
listpick-0.1.15.1.dist-info/METADATA,sha256=aQnHr2pHjI9T5RcXrHPqfOPoK5fR792K_79TOradL3E,8131
|
|
34
|
+
listpick-0.1.15.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
35
|
+
listpick-0.1.15.1.dist-info/entry_points.txt,sha256=-QCf_BKIkUz35Y9nkYpjZWs2Qg0KfRna2PAs5DnF6BE,43
|
|
36
|
+
listpick-0.1.15.1.dist-info/top_level.txt,sha256=5mtsGEz86rz3qQDe0D463gGjAfSp6A3EWg4J4AGYr-Q,9
|
|
37
|
+
listpick-0.1.15.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|