coolicer
V2EX  ›  问与答

Sublime text key-bindings怎么写?

  •  
  •   coolicer · Dec 9, 2013 · 4174 views
    This topic created in 4726 days ago, the information mentioned may be changed or developed.
    [
    { "keys": ["f12"], "command": "reindent"},
    { "keys": ["ctrl+alt+n"], "command": "new_snippet"},
    { "keys" : ["n","n"], "command": "advanced_new_file",
    "context":[{"key": "setting.command_mode","operand": true}]},

    { "keys":["j","j"], "command": "exit_insert_mode",
    "context":[
    { "key": "setting.command_mode", "operand": false},
    { "key": "setting.is_widget", "operand": false}
    ]
    }
    ]

    这些command是自己命名的吗?http://www.sublimetext.com/docs/commands这里没有上面的命令。
    3 replies  •  2015-10-24 13:07:05 +08:00
    ooh
    ooh
    Dec 9, 2013
    1
    cmd能自己命名吗?自己命名系统怎么知道执行什么?
    coolicer
    coolicer
    OP
    Dec 10, 2013
    2
    @ooh 我已经知道怎么弄了,哈哈。
    laputa6616
    laputa6616
    Oct 24, 2015
    3
    @ooh ctrl+` 调出控制台,输入 sublime.log_commands(True),你后面所有的操作 都会在控制台显示出来,然后 把里面的 command 照搬过来就行了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2212 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 14:24 · PVG 22:24 · LAX 06:24 · JFK 09:24
    ♥ Do have faith in what you're doing.