aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@corte.si>2017-06-13 09:30:33 +1200
committerAldo Cortesi <aldo@corte.si>2017-06-13 09:30:33 +1200
commit06cb68c799e5cd302fdc21c2bc548adf30dd39b3 (patch)
tree8af9097fc15a2fbf993b48a3d33b0a136009762c
parent9da6cc4534af50e456c4bf93b5e4a2fc862d377c (diff)
downloadmitmproxy-06cb68c799e5cd302fdc21c2bc548adf30dd39b3.tar.gz
mitmproxy-06cb68c799e5cd302fdc21c2bc548adf30dd39b3.tar.bz2
mitmproxy-06cb68c799e5cd302fdc21c2bc548adf30dd39b3.zip
Minor: formatting, make default color scheme solarized-dark
-rw-r--r--mitmproxy/options.py2
-rw-r--r--mitmproxy/tools/console/defaultkeys.py30
2 files changed, 21 insertions, 11 deletions
diff --git a/mitmproxy/options.py b/mitmproxy/options.py
index db276a51..a3872679 100644
--- a/mitmproxy/options.py
+++ b/mitmproxy/options.py
@@ -394,7 +394,7 @@ class Options(optmanager.OptManager):
"Focus follows new flows."
)
self.add_option(
- "console_palette", str, "dark",
+ "console_palette", str, "solarized_dark",
"Color palette.",
choices=sorted(console_palettes),
)
diff --git a/mitmproxy/tools/console/defaultkeys.py b/mitmproxy/tools/console/defaultkeys.py
index d5b868d0..dbc170bc 100644
--- a/mitmproxy/tools/console/defaultkeys.py
+++ b/mitmproxy/tools/console/defaultkeys.py
@@ -36,8 +36,10 @@ def map(km):
km.add("D", "view.duplicate @focus", ["flowlist", "flowview"], "Duplicate flow")
km.add(
"e",
- "console.choose.cmd Format export.formats "
- "console.command export.file {choice} @focus ''",
+ """
+ console.choose.cmd Format export.formats
+ console.command export.file {choice} @focus ''
+ """,
["flowlist", "flowview"],
"Export this flow to file"
)
@@ -60,8 +62,10 @@ def map(km):
)
km.add(
"o",
- "console.choose.cmd Order view.order.options "
- "set console_order={choice}",
+ """
+ console.choose.cmd Order view.order.options
+ set console_order={choice}
+ """,
["flowlist"],
"Set flow list order"
)
@@ -83,8 +87,10 @@ def map(km):
km.add(
"e",
- "console.choose.cmd Part console.edit.focus.options "
- "console.edit.focus {choice}",
+ """
+ console.choose.cmd Part console.edit.focus.options
+ console.edit.focus {choice}
+ """,
["flowview"],
"Edit a flow component"
)
@@ -99,8 +105,10 @@ def map(km):
km.add(
"v",
- "console.choose \"View Part\" request,response "
- "console.bodyview @focus {choice}",
+ """
+ console.choose "View Part" request,response
+ console.bodyview @focus {choice}
+ """,
["flowview"],
"View flow body in an external viewer"
)
@@ -108,8 +116,10 @@ def map(km):
km.add("m", "console.flowview.mode.set", ["flowview"], "Set flow view mode")
km.add(
"z",
- "console.choose \"Part\" request,response "
- "flow.encode.toggle @focus {choice}",
+ """
+ console.choose "Part" request,response
+ flow.encode.toggle @focus {choice}
+ """,
["flowview"],
"Encode/decode flow body"
)