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

Method keybindings

mitmproxy/tools/console/help.py:50–70  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

48 return common.format_keyvals(kvs)
49
50 def keybindings(self):
51 text = [urwid.Text([("title", "Common Keybindings")])]
52
53 text.extend(self.format_keys(self.master.keymap.list("commonkey")))
54
55 text.append(urwid.Text(["\n", ("title", "Keybindings for this view")]))
56 if self.helpctx:
57 text.extend(self.format_keys(self.master.keymap.list(self.helpctx)))
58
59 text.append(
60 urwid.Text(
61 [
62 "\n",
63 ("title", "Global Keybindings"),
64 ]
65 )
66 )
67
68 text.extend(self.format_keys(self.master.keymap.list("global")))
69
70 return CListBox(text)
71
72 def filtexp_title(self):
73 return "Filter Expressions"

Callers

nothing calls this directly

Calls 5

format_keysMethod · 0.95
CListBoxClass · 0.85
listMethod · 0.80
extendMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected