10 09/2014

sublime关闭搜索栏

最后更新: Wed Sep 10 2014 12:39:11 GMT+0800

sublime 打开搜索条容易,+f(Mac)。可没有关闭按钮,:( 按 esc 关闭(隐藏)搜索栏

可以自定义设置为:toggle 第一次开,第二次关

打开 Preferences | Key Bindings-User,配置

[
    { "keys": ["ctrl+f"], "command": "show_panel", "args": {"panel": "find"},
        "context":
     [
       { "key": "panel_visible", "operator": "equal", "operand": false }
     ]
  },
 { "keys": ["ctrl+f"], "command": "hide_panel", "args": {"cancel": true},
     "context":
     [
       { "key": "panel_visible", "operator": "equal", "operand": true }
     ]
  }
]

Mac 下把 ctrl+f 改成 Command+f 或者 Supper+f

[
  { "keys": ["command+f"], "command": "show_panel", "args": {"panel": "find"},
          "context":
       [
         { "key": "panel_visible", "operator": "equal", "operand": false }
       ]
  },
 { "keys": ["command+f"], "command": "hide_panel", "args": {"cancel": true},
     "context":
     [
       { "key": "panel_visible", "operator": "equal", "operand": true }
     ]
  }
]