From 946030367fee0d624a29ba57a11d5f2d1dea4105 Mon Sep 17 00:00:00 2001 From: Jake Drahos Date: Thu, 11 Jun 2015 20:31:54 -0500 Subject: [PATCH] Added unmark all functionality - 'U' to unmark all marked flows --- libmproxy/console/flowlist.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libmproxy/console/flowlist.py b/libmproxy/console/flowlist.py index 87e7c77a1..bb23df75a 100644 --- a/libmproxy/console/flowlist.py +++ b/libmproxy/console/flowlist.py @@ -21,6 +21,7 @@ def _mkhelp(): ("n", "create a new request"), ("P", "copy flow to clipboard"), ("r", "replay request"), + ("U", "unmark all marked flows"), ("V", "revert changes to request"), ("w", "save flows "), ("W", "stream flows to file"), @@ -215,6 +216,10 @@ class ConnectionItem(urwid.WidgetWrap): ), callback = self.stop_server_playback_prompt, ) + elif key == "U": + for f in self.state.flows: + self.state.set_flow_marked(f, False) + signals.flowlist_change.send(self) elif key == "V": if not self.flow.modified(): signals.status_message.send(message="Flow not modified.")