listpick 0.1.15.10__py3-none-any.whl → 0.1.15.11__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 CHANGED
@@ -2960,11 +2960,24 @@ class Picker:
2960
2960
  row_width = sum(self.column_widths) + len(self.separator)*(len(self.column_widths)-1)
2961
2961
  if row_width-self.leftmost_char >= self.rows_w-self.startx-5:
2962
2962
  self.leftmost_char += 5
2963
+ self.leftmost_char = min(self.leftmost_char, row_width - (self.rows_w - self.startx) + 5)
2964
+
2965
+ elif self.check_key("scroll_right_25", key, self.keys_dict):
2966
+ self.logger.info(f"key_function scroll_right")
2967
+ if len(self.indexed_items):
2968
+ row_width = sum(self.column_widths) + len(self.separator)*(len(self.column_widths)-1)
2969
+ if row_width-self.leftmost_char >= self.rows_w-self.startx-25:
2970
+ self.leftmost_char += 25
2971
+ self.leftmost_char = min(self.leftmost_char, row_width - (self.rows_w - self.startx) + 5)
2963
2972
 
2964
2973
  elif self.check_key("scroll_left", key, self.keys_dict):
2965
2974
  self.logger.info(f"key_function scroll_left")
2966
2975
  self.leftmost_char = max(self.leftmost_char-5, 0)
2967
2976
 
2977
+ elif self.check_key("scroll_left_25", key, self.keys_dict):
2978
+ self.logger.info(f"key_function scroll_left")
2979
+ self.leftmost_char = max(self.leftmost_char-25, 0)
2980
+
2968
2981
  elif self.check_key("scroll_far_left", key, self.keys_dict):
2969
2982
  self.logger.info(f"key_function scroll_far_left")
2970
2983
  self.leftmost_char = 0
listpick/ui/build_help.py CHANGED
@@ -129,8 +129,10 @@ def build_help_rows(keys_dict: dict, debug: bool = False) -> list[list[str]]:
129
129
  "notification_toggle": "Toggle empty notification.",
130
130
  "redo": "Redo.",
131
131
  "undo": "Undo.",
132
- "scroll_right": "Scroll right.",
133
- "scroll_left": "Scroll left.",
132
+ "scroll_right": "Scroll right (5 chars).",
133
+ "scroll_left": "Scroll left (5 chars).",
134
+ "scroll_right_25": "Scroll right (25 chars).",
135
+ "scroll_left_25": "Scroll left (25 chars).",
134
136
  "scroll_far_right": "Scroll to the end of the column set.",
135
137
  "scroll_far_left": "Scroll to the left home.",
136
138
  "add_column_before": "Insert column before cursor.",
@@ -146,7 +148,7 @@ def build_help_rows(keys_dict: dict, debug: bool = False) -> list[list[str]]:
146
148
  "cycle_right_pane": "Cycle through right panes",
147
149
  }
148
150
  sections = {
149
- "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" ],
151
+ "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_right_25", "scroll_left_25", "scroll_far_right", "scroll_far_left" ],
150
152
  "Selection:": [ "toggle_select", "select_all", "select_none", "visual_selection_toggle", "visual_deselection_toggle", "enter" ],
151
153
  "UI:": [ "toggle_footer", "redraw_screen", "decrease_lines_per_page", "increase_lines_per_page", "increase_column_width", "decrease_column_width", "notification_toggle", "toggle_right_pane", "cycle_right_pane"],
152
154
  "Sort:": [ "cycle_sort_method", "cycle_sort_method_reverse", "cycle_sort_order", ] ,
listpick/ui/keys.py CHANGED
@@ -74,6 +74,8 @@ picker_keys = {
74
74
  "redo": [ord('.')],
75
75
  "undo": [26], # Ctrl+z
76
76
  "scroll_right": [ord('l'), curses.KEY_RIGHT],
77
+ "scroll_right_25": [keycodes.META_l],
78
+ "scroll_left_25": [keycodes.META_h],
77
79
  "scroll_left": [ord('h'), curses.KEY_LEFT],
78
80
  "scroll_far_right": [ord('L')],
79
81
  "scroll_far_left": [ord('H')],
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: listpick
3
- Version: 0.1.15.10
3
+ Version: 0.1.15.11
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
@@ -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=ttUfM3x4q-3wAD8nPGQOUcA1b6gZWZ572OJKbGH2Ovc,200530
3
+ listpick/listpick_app.py,sha256=wjHIPoc30jlkWrbR4ygU4F5_B1o8MMA2Nj3q3ZISkds,201371
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
7
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=fDEURRb51slvK7rpk2iPWcJAwIAVigv8dp6T4cziZb4,10544
9
+ listpick/ui/build_help.py,sha256=IpN4tX4U8ET3icRoTlF389VqVjVcPAon617vgstlPAc,10750
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=nAmUn95UGuqh3QQMHWsPsXWW3or2oVMVlkzJV1t3zLQ,13559
13
+ listpick/ui/keys.py,sha256=1NCsOPFxhNuVPbO5vflcArNZ1jbBBerPQ3oZUAZDyPs,13682
14
14
  listpick/ui/picker_colours.py,sha256=wq6FhXELejCoeBunWQgk9bsD0lLA3xM-I9WzZdWfWFE,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=QptLnqT15Z3G7xoq-6Q8e4-aZRFClTdb3h0l42di11s,13810
32
- listpick-0.1.15.10.dist-info/licenses/LICENSE.txt,sha256=2mP-MRHJptADDNE9VInMNg1tE-C6Qv93Z4CCQKrpg9w,1061
33
- listpick-0.1.15.10.dist-info/METADATA,sha256=FaUjvHk9A27z_fY8P14UrEYzrhCgsiMft5I1o_-qqEY,8132
34
- listpick-0.1.15.10.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
35
- listpick-0.1.15.10.dist-info/entry_points.txt,sha256=-QCf_BKIkUz35Y9nkYpjZWs2Qg0KfRna2PAs5DnF6BE,43
36
- listpick-0.1.15.10.dist-info/top_level.txt,sha256=5mtsGEz86rz3qQDe0D463gGjAfSp6A3EWg4J4AGYr-Q,9
37
- listpick-0.1.15.10.dist-info/RECORD,,
32
+ listpick-0.1.15.11.dist-info/licenses/LICENSE.txt,sha256=2mP-MRHJptADDNE9VInMNg1tE-C6Qv93Z4CCQKrpg9w,1061
33
+ listpick-0.1.15.11.dist-info/METADATA,sha256=SHUVDmE37RgaEoBFvhv8gjHYgOqbehryh_qVUXeskWs,8132
34
+ listpick-0.1.15.11.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
35
+ listpick-0.1.15.11.dist-info/entry_points.txt,sha256=-QCf_BKIkUz35Y9nkYpjZWs2Qg0KfRna2PAs5DnF6BE,43
36
+ listpick-0.1.15.11.dist-info/top_level.txt,sha256=5mtsGEz86rz3qQDe0D463gGjAfSp6A3EWg4J4AGYr-Q,9
37
+ listpick-0.1.15.11.dist-info/RECORD,,