MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / focus_next

Method focus_next

mitmproxy/addons/view.py:280–289  ·  view source on GitHub ↗

Set focus to the next flow.

(self)

Source from the content-addressed store, hash-verified

278
279 @command.command("view.focus.next")
280 def focus_next(self) -> None:
281 """
282 Set focus to the next flow.
283 """
284 if self.focus.index is not None:
285 idx = self.focus.index + 1
286 if self.inbounds(idx):
287 self.focus.flow = self[idx]
288 else:
289 pass
290
291 @command.command("view.focus.prev")
292 def focus_prev(self) -> None:

Callers 1

test_movementFunction · 0.95

Calls 1

inboundsMethod · 0.95

Tested by 1

test_movementFunction · 0.76