LoginSignup
2
1

More than 5 years have passed since last update.

[Sublime Text, LaTeXtools] SublimeとSkimでforward, inverse searchのキーバインドを統一する

Last updated at Posted at 2016-05-29

sublime + LaTeXtools + Skimでforward search, inverse searchのキーバインドを統一してみました.


Skimのinverse searchのデフォルトコマンドはMacではcommand+shift+ダブルクリックなので割と感覚的に扱えますが,LaTeXtoolsのforward searchのデフォルトコマンドはcommand+lの後にjを押すというものでなかなか覚えておくことができません(ぼくは).

そこで,両サーチキーバインドをcommand+shift+ダブルクリックに統一を試みたのでメモしておきます.
これはSkimに限らず,SumatraPDF,Evinceなどでも同様な処理をすることで扱えます.
以下,手順となります.

Preference > Browse Packages で設定ファイルが入っているディレクトリファイルを開いてその中のUserディレクトリの中に

Default (OSX).sublime-mousemapというファイルを作成します.()内にはそれぞれOS(OSX, Linux, Windows)が入ります.
ファイル内に以下を記述します.

[
{
    "button": "button1",
    "modifiers": ["super","shift"],
    "count": 2,
        "context":  [
            {"key": "selector", "operator": "equal", "operand": "text.tex.latex"}],
        "command": "jump_to_pdf", "args": {"from_keybinding": true}}
]

この内容はLaTeXtoolsのデフォルトのキーマップからcommandとcontextを引っ張ってきて,キーとボタンを加えただけのものです.

これでSublime, Skim双方同じコマンドでforward, inverse searchが行えます.

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1