Merge pull request #116 from afh/pull/highlight_key_help
Correct display mode highlight keys
This commit is contained in:
commit
7bd3e1d2a4
|
@ -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