From 33682c206ef1568a44de342bc5e9ec998762becf Mon Sep 17 00:00:00 2001 From: Sujal Singh Date: Thu, 27 Apr 2023 21:44:11 +0530 Subject: [PATCH] Allow focus-follow shortcut to work in flow view context. (#6088) * add follow new shortcut to flowview context * update changelog * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> --- CHANGELOG.md | 2 ++ mitmproxy/tools/console/defaultkeys.py | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 34591de21..fe888cffe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,8 @@ ([#5904](https://github.com/mitmproxy/mitmproxy/pull/5904), @truebit) * mitmproxy now requires Python 3.10 or above. ([#5954](https://github.com/mitmproxy/mitmproxy/pull/5954), @mhils) +* focus-follow shortcut will now work in flow view context too. + ([#6088](https://github.com/mitmproxy/mitmproxy/pull/6088), @sujaldev) ### Breaking Changes diff --git a/mitmproxy/tools/console/defaultkeys.py b/mitmproxy/tools/console/defaultkeys.py index a316a90c9..f93b5228e 100644 --- a/mitmproxy/tools/console/defaultkeys.py +++ b/mitmproxy/tools/console/defaultkeys.py @@ -82,7 +82,12 @@ def map(km: Keymap) -> None: "Export this flow to file", ) km.add("f", "console.command.set view_filter", ["flowlist"], "Set view filter") - km.add("F", "set console_focus_follow toggle", ["flowlist"], "Set focus follow") + km.add( + "F", + "set console_focus_follow toggle", + ["flowlist", "flowview"], + "Set focus follow", + ) km.add( "ctrl l", "console.command cut.clip ",