Sublime Text 3 で日本語を検索したとき文字が消える不具合を直す

Sublime Text を使っていて困るのが、日本語で検索しようとした時で、Enterを押すと入力した文字が消えるので検索できない。

調べたところ、下記の方法で解決できるという情報を見つけた。

方法

上記Gistがとても参考になるので、そっちを読めばいい気もするけど、手順を記す。

まず、Sublime Text 3では「Default (OSX).sublime-keymap」を編集可能にする必要がある。

Preferences -> Key Bindings - Default を開き、内容をコピーする。次に、 ~/Library/Application Support/Sublime Text 3/Packages/ の中に Default フォルダを作って、Default (OSX).sublime-keymapを入れたら編集できるようになる。

次に、該当箇所をコメントアウトする。

Find panel key bindingsと書かれている行を探し、その下3行をコメントアウトする。

// Find panel key bindings
// { "keys": ["enter"], "command": "find_next", "context":
//  [{"key": "panel", "operand": "find"}, {"key": "panel_has_focus"}]
// },

さらに、その下のReplace panel key bindingsIncremental find panel key bindingsの下3行も、コメントアウトする。

// Replace panel key bindings
// { "keys": ["enter"], "command": "find_next", "context":
//  [{"key": "panel", "operand": "replace"}, {"key": "panel_has_focus"}]
// },


// Incremental find panel key bindings
// { "keys": ["enter"], "command": "hide_panel", "context":
//  [{"key": "panel", "operand": "incremental_find"}, {"key": "panel_has_focus"}]
// },

解決

試しに⌘+Fで日本語を検索したところ、きちんと検索できるようになった。めっちゃ困ってたので情報見つかって助かった。ありがとうございます。

これ結構皆困ってると思うのだけど、調べてもあまり解決方法が出てこないので、皆様どうしているのでしょうか。

  1. warabizsanographix-memoからリブログしました
  2. himaneko-6035sanographix-memoからリブログしました
  3. akaushisanographix-memoからリブログしました
  4. sanographix-memoの投稿です

この記事をシェア

最近の記事

Loading...