Hen*_*nno 25
ST2中有一个按钮。

以下是您需要添加到用户键绑定的内容:
{ "keys": ["alt+y"], "command": "toggle_in_selection", "context":
[
{ "key": "setting.is_widget", "operator": "equal", "operand": true }
]
},
Run Code Online (Sandbox Code Playgroud)
是的,没有默认的键绑定集是愚蠢的。
命令名称“ toggle_in_selection”也没有记录,但我猜到了,而且很幸运。
编辑添加:
/*
btw, the way i want to use find by default
(actually, i use replace by default, but same dif),
is for "in_selection" to be true by default,
*unless* the selection is empty.
(
the default is that "in_selection" is *false* by default,
unless the selection contains a newline.
)
i finally got around to digging up how to get that,
which is apparently by changing the *keybindings* you use to pop open the find(/replace) panel?
*/
{ "keys": ["ctrl+f"], "command": "show_panel", "args": {"panel": "replace", "in_selection": true}},
{ "keys": ["ctrl+f"], "command": "show_panel", "args": {"panel": "replace", "in_selection": false},
"context":
[
{ "key": "selection_empty", "operator": "equal", "operand": true}
]
},
Run Code Online (Sandbox Code Playgroud)
小智 7
如果您的选择包含换行符,“选择范围内”按钮将自动激活 - 在 ST2 上
不幸的是,智能激活在 ST3 上丢失了。你可以在这里跟进http://www.sublimetext.com/forum/viewtopic.php?f=3&t=11679
| 归档时间: |
|
| 查看次数: |
54078 次 |
| 最近记录: |