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

Method stacks_sorted_by_focus

mitmproxy/tools/console/window.py:241–248  ·  view source on GitHub ↗

Returns: self.stacks, with the focused stack first.

(self)

Source from the content-addressed store, hash-verified

239 self.focus_changed()
240
241 def stacks_sorted_by_focus(self):
242 """
243 Returns:
244 self.stacks, with the focused stack first.
245 """
246 stacks = self.stacks.copy()
247 stacks.insert(0, stacks.pop(self.pane))
248 return stacks
249
250 def current(self, keyctx):
251 """

Callers 2

currentMethod · 0.95
current_windowMethod · 0.95

Calls 3

copyMethod · 0.45
insertMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected