您需要为十六进制查看器键盘映射添加键绑定。
为此,通过 Package Control 安装 Hex Viewer 后,导航到Package Settings -> Hex Viewer -> Key Bindings - Default
并添加以下内容:
[
{
"keys": ["ctrl+shift+h"],
"command": "hex_viewer"
}
]
要保存文件,您需要确保%APPDATA%\Sublime Text 3\Packages\HexViewer
目录存在,假设这是您的包目录。
您提到的 GitHub 链接上还有一个示例键映射以及其他可用命令。
示例.sublime-keymap
[
{
"keys": ["ctrl+shift+b","ctrl+shift+h"],
"command": "hex_viewer"
},
{
"keys": ["ctrl+shift+b","ctrl+shift+i"],
"command": "hex_show_inspector"
},
{
"keys": ["ctrl+shift+b","ctrl+shift+f"],
"command": "hex_finder"
},
{
"keys": ["ctrl+shift+b","ctrl+shift+e"],
"command": "hex_editor"
},
{
"keys": ["ctrl+shift+b","ctrl+shift+x"],
"command": "hex_writer"
},
{
"keys": ["ctrl+shift+b","ctrl+shift+u"],
"command": "hex_discard_edits"
},
{
"keys": ["ctrl+shift+b","ctrl+shift+="],
"command": "hex_checksum",
"args": {"panel": true}
},
{
"keys": ["ctrl+shift+b","ctrl+shift+-"],
"command": "hash_selection"
},
{
"keys": ["ctrl+shift+b","ctrl+shift+g"],
"command": "hash_eval"
}
]