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>
This commit is contained in:
Sujal Singh 2023-04-27 21:44:11 +05:30 committed by GitHub
parent 2261346334
commit 33682c206e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View file

@ -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

View file

@ -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 ",