LoginSignup
1
0

More than 5 years have passed since last update.

Codaのzen-codingのプラグインTEA-for-Codaで、展開コマンドを変更する方法

Last updated at Posted at 2012-04-24

前回に引き続きCoda関連ですが、展開コマンド[^(コントロールキー)]+[,])のショートカットコマンドを自分好みのものに変えてしまおうというものです。

  1. ショートカットコマンドは、以下に登録されています。
    「/Users/username/Library/Application Support/Coda/Plug-ins/TEA for Coda.codaplugin」を右クリックし、「パッケージの内容を表示」を選択します。

  2. 表示されたパッケージの中からさらに階層を潜り、
    「Contents/Resources/English.lproj/TextActions.plist」
    へとアクセスします。

展開コマンドはこちらの35行目あたりにある「Expand Abbreviation」に登録されています。

35行目あたり
        <key>Expand Abbreviation</key>
        <dict>
            <key>action</key>
            <string>TEASnippetWithWord</string>
            <key>options</key>
            <dict>
                <key>alpha_numeric</key>
                <true/>
                <key>bidirectional</key>
                <true/>
                <key>extra_characters</key>
                <string>_-#.&gt;+*:$!@</string>
                <key>mode</key>
                <string>zen</string>
                <key>snippet</key>
                <string>&lt;$SELECTED_TEXT&gt;$0&lt;/$WORD&gt;</string>
            </dict>
            <key>shortcut</key>
            <string>^,</string>
            <key>submenu</key>
            <string>Zen</string>
        </dict>

デフォルト設定(^,)では以下のようになっているはず

<key>shortcut</key>
<string>^,</string>

このの中身を好きなものにすればオッケー。

ちなみに、キー登録時の記法ですが、
「^=control」$=shift」「@=command」「~=option」
となっています。

1
0
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
1
0