aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/console/connlist.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2012-02-08 22:55:48 +1300
committerAldo Cortesi <aldo@nullcube.com>2012-02-08 22:55:48 +1300
commit5df0b9e9610b803241f8c4870ddfe3afb450a048 (patch)
tree750be1224dcf8d10d1b63bc9665b1357184566ac /libmproxy/console/connlist.py
parent866a93a8bc28fed47dde04f49c13592a7163bff4 (diff)
downloadmitmproxy-5df0b9e9610b803241f8c4870ddfe3afb450a048.tar.gz
mitmproxy-5df0b9e9610b803241f8c4870ddfe3afb450a048.tar.bz2
mitmproxy-5df0b9e9610b803241f8c4870ddfe3afb450a048.zip
Further keybinding consolidation.
Also, move KVEditor's "i" binding to "A" to avoid clashes with global bindings.
Diffstat (limited to 'libmproxy/console/connlist.py')
-rw-r--r--libmproxy/console/connlist.py25
1 files changed, 23 insertions, 2 deletions
diff --git a/libmproxy/console/connlist.py b/libmproxy/console/connlist.py
index d9ef258b..0f238322 100644
--- a/libmproxy/console/connlist.py
+++ b/libmproxy/console/connlist.py
@@ -8,7 +8,13 @@ def _mkhelp():
("a", "accept this intercepted connection"),
("C", "clear connection list or eventlog"),
("d", "delete connection from view"),
+ ("l", "set limit filter pattern"),
+ ("L", "load saved flows"),
+ ("r", "replay request"),
+ ("R", "revert changes to request"),
("v", "toggle eventlog"),
+ ("w", "save all flows matching current limit"),
+ ("W", "save this flow"),
("X", "kill and delete connection, even if it's mid-intercept"),
("tab", "tab between eventlog and connection list"),
("enter", "view connection"),
@@ -96,6 +102,15 @@ class ConnectionItem(common.WWrap):
self.flow.kill(self.master)
self.state.delete_flow(self.flow)
self.master.sync_list_view()
+ elif key == "l":
+ self.master.prompt("Limit: ", self.state.limit_txt, self.master.set_limit)
+ self.master.sync_list_view()
+ elif key == "L":
+ self.master.path_prompt(
+ "Load flows: ",
+ self.state.last_saveload,
+ self.master.load_flows_callback
+ )
elif key == "r":
r = self.master.replay_request(self.flow)
if r:
@@ -104,6 +119,12 @@ class ConnectionItem(common.WWrap):
elif key == "R":
self.state.revert(self.flow)
self.master.sync_list_view()
+ elif key == "w":
+ self.master.path_prompt(
+ "Save flows: ",
+ self.state.last_saveload,
+ self.master.save_flows
+ )
elif key == "W":
self.master.path_prompt(
"Save this flow: ",
@@ -120,9 +141,9 @@ class ConnectionItem(common.WWrap):
self.master.view_flow(self.flow)
elif key == "|":
self.master.path_prompt(
- "Send flow to script: ",
+ "Send flow to script: ",
self.state.last_script,
- self.master.run_script_once,
+ self.master.run_script_once,
self.flow
)
else: