Sublime Text 2のみbackspace
の単語を削除しないキーバインドに問題があります。スペースを戻すには、削除したい文字を強調表示してバックスペースを押すか、戻るために使用する必要があります。また、1 文字だけではなく、入力した単語を消去します。また、backspace と同じことを行うと仮定しても、効果はありません。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
プラグインをインストールして競合があるかどうかを確認しましたが、出力は問題ないようです。
[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
、ぜひ聞きたいです。