Merge pull request #116 from afh/pull/highlight_key_help

Correct display mode highlight keys
This commit is contained in:
Aldo Cortesi 2013-04-19 17:17:32 -07:00
commit 7bd3e1d2a4
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")]