我遇到了backspace
键绑定问题,它不会仅删除Sublime Text 2中的单词。为了退格,我必须突出显示要删除的字符并按退格键或用于ctrl + z
返回。并且,ctrl + backspace
删除输入的单词,而不仅仅是一个字符。此外,shift + backspace
即使它假设与退格键执行相同的操作,也没有任何效果。
我启用sublime_log_commands(True)
了实时显示键绑定,并且日志显示了正确的绑定,但是它根本没有删除任何字符。
backpace
=>command: left_delete
shift + backspace
=>command: left_delete
&
Ctrl + backspace
=> command: delete_word {"forward": false}
(这个我很好)
然后,我安装了FindKeyConflicts
插件,看看是否有任何冲突,但输出似乎很好,IMO。
[shift+backspace]
left_delete Default
.
.
.
[ctrl+shift+backspace]
left_delete Default
run_macro_file Default
.
.
[ctrl+backspace]
delete_word Default
.
.
[backspace]
left_delete Default
run_macro_file Default
[{"operator": "equal", "operand": true, "key": "setting.auto_match_enabled"}, {"operator":
"regex_contains", "operand": "^\"", "match_all": true, "key": "following_text"}, {"operator":
"regex_contains", "operand": "\"$", "match_all": true, "key": "preceding_text"}, {"operator":
"equal", "operand": true, "match_all": true, "key": "selection_empty"}]
run_macro_file Default
[{"operator": "equal", "operand": true, "key": "setting.auto_match_enabled"}, {"operator":
"regex_contains", "operand": "^'", "match_all": true, "key": "following_text"}, {"operator":
"regex_contains", "operand": "'$", "match_all": true, "key": "preceding_text"}, {"operator":
"equal", "operand": true, "match_all": true, "key": "selection_empty"}]
run_macro_file Default
[{"operator": "equal", "operand": true, "key": "setting.auto_match_enabled"}, {"operator":
"regex_contains", "operand": "^\\)", "match_all": true, "key": "following_text"},
{"operator": "regex_contains", "operand": "\\($", "match_all": true, "key": "preceding_text"},
{"operator": "equal", "operand": true, "match_all": true, "key": "selection_empty"}]
run_macro_file Default
[{"operator": "equal", "operand": true, "key": "setting.auto_match_enabled"}, {"operator":
"regex_contains", "operand": "^\\]", "match_all": true, "key": "following_text"}, {"operator":
"regex_contains", "operand": "\\[$", "match_all": true, "key": "preceding_text"}, {"operator":
"equal", "operand": true, "match_all": true, "key": "selection_empty"}]
run_macro_file Default
[{"operator": "equal", "operand": true, "key": "setting.auto_match_enabled"}, {"operator":
"regex_contains", "operand": "^\\}", "match_all": true, "key": "following_text"},
{"operator": "regex_contains", "operand": "\\{$", "match_all": true, "key":
"preceding_text"}, {"operator": "equal", "operand": true, "match_all": true, "key":
"selection_empty"}]
run_macro_file CSS
[{"operator": "equal", "operand": true, "key": "setting.auto_match_enabled"}, {"operator":
"regex_contains", "operand": "^;", "match_all": true, "key": "following_text"}, {"operator":
"regex_contains", "operand": ":$", "match_all": true, "key": "preceding_text"}, {"operator":
"equal", "operand": true, "match_all": true, "key": "selection_empty"}, {"operator":
"equal", "operand": "source.css - meta.selector.css", "match_all": true, "key": "selector"}]
如果有人对如何恢复正常操作有任何建议或解决方法backspace
,我很想听听。