mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-27 02:24:18 +00:00
s/console_order/view_order s/console_order_reversed/view_order_reversed
This commit is contained in:
parent
1c769b0991
commit
012b938254
@ -238,7 +238,7 @@ class View(collections.Sequence):
|
||||
@command.command("view.order.options")
|
||||
def order_options(self) -> typing.Sequence[str]:
|
||||
"""
|
||||
Choices supported by the console_order option.
|
||||
Choices supported by the view_order option.
|
||||
"""
|
||||
return list(sorted(self.orders.keys()))
|
||||
|
||||
|
@ -44,8 +44,6 @@ class Options(optmanager.OptManager):
|
||||
console_layout = None # type: str
|
||||
console_layout_headers = None # type: bool
|
||||
console_mouse = None # type: bool
|
||||
console_order = None # type: str
|
||||
console_order_reversed = None # type: bool
|
||||
console_palette = None # type: str
|
||||
console_palette_transparent = None # type: bool
|
||||
default_contentview = None # type: str
|
||||
@ -98,6 +96,8 @@ class Options(optmanager.OptManager):
|
||||
upstream_cert = None # type: bool
|
||||
verbosity = None # type: str
|
||||
view_filter = None # type: Optional[str]
|
||||
view_order = None # type: str
|
||||
view_order_reversed = None # type: bool
|
||||
web_debug = None # type: bool
|
||||
web_iface = None # type: str
|
||||
web_open_browser = None # type: bool
|
||||
|
@ -67,14 +67,14 @@ def map(km):
|
||||
"o",
|
||||
"""
|
||||
console.choose.cmd Order view.order.options
|
||||
set console_order={choice}
|
||||
set view_order={choice}
|
||||
""",
|
||||
["flowlist"],
|
||||
"Set flow list order"
|
||||
)
|
||||
km.add("r", "replay.client @focus", ["flowlist", "flowview"], "Replay this flow")
|
||||
km.add("S", "console.command replay.server ", ["flowlist"], "Start server replay")
|
||||
km.add("v", "set console_order_reversed=toggle", ["flowlist"], "Reverse flow list order")
|
||||
km.add("v", "set view_order_reversed=toggle", ["flowlist"], "Reverse flow list order")
|
||||
km.add("U", "flow.mark @all false", ["flowlist"], "Un-set all marks")
|
||||
km.add("w", "console.command save.file @shown ", ["flowlist"], "Save listed flows to file")
|
||||
km.add("V", "flow.revert @focus", ["flowlist", "flowview"], "Revert changes to this flow")
|
||||
|
@ -66,9 +66,9 @@ REPLACEMENTS = {
|
||||
"--palette": "console_palette",
|
||||
"--palette-transparent": "console_palette_transparent:",
|
||||
"--follow": "console_focus_follow",
|
||||
"--order": "console_order",
|
||||
"--order": "view_order",
|
||||
"--no-mouse": "console_mouse",
|
||||
"--reverse": "console_order_reversed",
|
||||
"--reverse": "view_order_reversed",
|
||||
"--no-http2-priority": "http2_priority",
|
||||
"--no-websocket": "websocket",
|
||||
"--no-upstream-cert": "upstream_cert",
|
||||
|
Loading…
Reference in New Issue
Block a user