Correct display mode highlight keys
Add html display mode to the help documentation. Correct html and hex display mode highlight keys (help used 'h' for hex). Correct json display mode highlight keys.
This commit is contained in:
parent
51b775cfd4
commit
3d7f31b23d
|
@ -137,7 +137,7 @@ class ViewXML:
|
|||
|
||||
class ViewJSON:
|
||||
name = "JSON"
|
||||
prompt = ("json", "j")
|
||||
prompt = ("json", "s")
|
||||
content_types = ["application/json"]
|
||||
def __call__(self, hdrs, content, limit):
|
||||
lines = utils.pretty_json(content)
|
||||
|
|
|
@ -34,9 +34,13 @@ def _mkhelp():
|
|||
[("text", ": automatic detection")]
|
||||
),
|
||||
(None,
|
||||
common.highlight_key("hex", "h") +
|
||||
common.highlight_key("hex", "e") +
|
||||
[("text", ": Hex")]
|
||||
),
|
||||
(None,
|
||||
common.highlight_key("html", "h") +
|
||||
[("text", ": HTML")]
|
||||
),
|
||||
(None,
|
||||
common.highlight_key("image", "i") +
|
||||
[("text", ": Image")]
|
||||
|
|
|
@ -57,9 +57,13 @@ class HelpView(urwid.ListBox):
|
|||
[("text", ": automatic detection")]
|
||||
),
|
||||
(None,
|
||||
common.highlight_key("hex", "h") +
|
||||
common.highlight_key("hex", "e") +
|
||||
[("text", ": Hex")]
|
||||
),
|
||||
(None,
|
||||
common.highlight_key("html", "h") +
|
||||
[("text", ": HTML")]
|
||||
),
|
||||
(None,
|
||||
common.highlight_key("image", "i") +
|
||||
[("text", ": Image")]
|
||||
|
|
Loading…
Reference in New Issue