Content Navigation Sub content Local navigation and search

テクストメートのノート

Sep 22, 01:33 PM, to server

テクストメート(TextMate)はMacのコーディングソフト。いっぱい忘れやすいキーボードコマンドがありますね

プレースホルダーテキスト;エム め「こを およびそのマ クセシビリティ セシビ, エム でウェブにと セシビリティ 健二仕 プロトコル インフォテ ンタネット協会 ンテ トワク, ディア らすかる ビリティにる インタラクション アク 拡なマ パス オサリングツル ンタネット協会, 功久 丸山亮仕 を始めてみよう ラベラ, ラベラ コンテン プロファイル リティにする をマ クセス をマ ウェブオント プロファイル レイティングサ, めよう の徴 クアップ さぁはじ

Refrence Links

Keyboard shortcuts

General Rules (from TextMates source)

Language grammars should have ⌃⇧⌥first-letter-of-language Bundle items should generally have ⌃⇧letter These shortcuts are specialised for each language:

⌘B
Build
⌘R
Run
F3
Look up selected word in documentation
⇧⌃V
Validate (show syntatical errors)
⇧⌃W
Wrap selection eg in begin/end tags for HTML
⇧Return
Insert a ‘descriptive’ return eg <br> in HTML, \n in strings
⌘Return
Move to end of line and insert a newline
⌘⌥Return
Move to end of line and insert potential e-o-l symbol (; in many sources, . in prose)
⌘⌃Return
The same as ⌘⌥Return but also insert a newline
Enter
Inserts a newline and starts a new ‘item’ eg line comment, bullet point etc

When making Snippets use tabs not spaces. Name it after what it inserts, using ”..” for placeholders and put the (potential) tab-trigger in parentheses.

Non-specific Shortcuts

⌃⌥⌘V
List of previous pastes (kind of clipboard history)
⌃⌘Space
Turns previous word into a tag pair
⌃⇧T
Shows the ‘scope’ of where the cursor is. This is used for restricting what colouring is applied to via Fonts & Colors etc, and scopes can be added via a declaration in the language bundle.
⌘T then file name abbreviation
Quicksilver-like search in the open project’s file listing
Dictionary lookup for word under cursor (OS X-built in)
⌘⌥⌃D
Makes a project’s drawer slide in/out
⌘E
Copies selection to the Find clipboard, so you can write find strings in TM
⌥Drag
Changes the selection cursor into a plus for column selection
⌘⌃A
Appends to each line of a drag selection
⌃⌘D
⇧⌥left/right arrow
In column selection mode, moves the selection by columns left or right
⇧⌃left/right arrow
In column selection mode, moves the selection to the end of the line
⌃⌥⌘K
Opens the Keyboard Shortcuts list

Using TextMate elsewhere

In terminal use tm (tm --help) From other applications select text then ⌘Enter to load the text into TextMate, then save & close to export text back to original program (eg web form).

Mac modifier key entities

Symbol Entity Description
&#x2318; Command
&#x2325; Option
&#x2303; Control
&#x21E7; Shift

Creating a new Language

Aug 6, 2005, at 8:36 AM, Allan Odgaard Re: [TxMt] BBCode syntax highlighting

Updating from the SVN repo

  • cd /Library/Application\ Support/TextMate
  • svn update

関連アーティクル