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:
Alexis Hildebrandt 2013-04-16 23:54:34 +02:00
parent 51b775cfd4
commit 3d7f31b23d
3 changed files with 11 additions and 3 deletions

View File

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

View File

@ -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")]

View File

@ -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")]