MCPcopy
hub / github.com/tanelpoder/0xtools / select_single_column_in_grouping

Function select_single_column_in_grouping

xtop/tests/test_tui_basic.py:104–125  ·  view source on GitHub ↗

Select a single column in the grouping menu using search

(pilot, column: str)

Source from the content-addressed store, hash-verified

102
103
104async def select_single_column_in_grouping(pilot, column: str):
105 """Select a single column in the grouping menu using search"""
106 await pilot.press("g") # Open grouping menu
107 await pilot.pause(1.0) # Give menu time to fully load
108
109 # Type the column name to search
110 search_text = column.lower()
111 for char in search_text:
112 await pilot.press(char)
113 await pilot.pause(0.1)
114
115 # Wait for search to filter
116 await pilot.pause(1.0)
117
118 # The first matching item should be highlighted
119 # Press space to toggle it
120 await pilot.press("space")
121 await pilot.pause(0.5)
122
123 # Apply the selection
124 await pilot.press("enter")
125 await pilot.pause(2.0) # Give more time for query to execute
126
127
128async def add_latency_columns(pilot, columns: list):

Callers 2

test_add_single_columnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected