SublimeText 3でMarkdown再挑戦(其の2)

SublimeText 3 or Sublime Text 4での

日本語での検索で問題が起きる事を体験。

問題の解決法がネット検索で見つかった。

https://gist.github.com/chibicode/ad1f50b3b191ee694556

 

これに先立って下準備(詳細がサイト内に書かれています)

PreferencesからKey Bindings - Defaultを開き、表示されたDefault (OSX).sublime-keymapの内容を全部コピーします。

~/Library/Application Support/Sublime Text 3/Packages/Default

のフォルダーを作成しておいて此のファイル「Default (OSX).sublime-keymap」を保存。

 

以下が書き換えた部分。

 

Find panel key bindingsと書かれている行を探します。

 

// Find panel key bindings

{ "keys": ["enter"], "command": "find_next", "context":

 [{"key": "panel", "operand": "find"}, {"key": "panel_has_focus"}]

},

その下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"}]

// },

 

『注意事項: 複数ファイルを検索しようとすると失敗します』

と言う内容がここに書かれていますが、検索欄の下で「フォルダー指定」が

出来ますので、複数のファイルでの検索は機能します。

 

複数タブが開いているので、此のサイトの設定を追記して

タブの切り替えの順番を変えました。

 

https://sanographix.net/2013/02/sublime-text-2/

 

 

デフォルトだと Ctrl + Tab でタブ切り替えの順番が保存した順なので、

タブの順番に切り替わるようにする。 Key Bindings – User に下記を記述

 

[

    { "keys": ["ctrl+tab"], "command": "next_view" },

    { "keys": ["ctrl+shift+tab"], "command": "prev_view" },

    { "keys": ["ctrl+pagedown"], "command": "next_view_in_stack" },

    { "keys": ["ctrl+pageup"], "command": "prev_view_in_stack" }

]