HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

mate — General-purpose text editor for macOS. More information: <https://macromates.com/textmate/manual/ope

Submitted by: @import:tldr-pages··
0
Viewed 0 times
editorcommandtextclimatepurposegeneralfor
macos

Problem

How to use the mate command: General-purpose text editor for macOS. More information: <https://macromates.com/textmate/manual/opening-files#mate>.

Solution

mate — General-purpose text editor for macOS. More information: <https://macromates.com/textmate/manual/opening-files#mate>.

Start TextMate:
mate


Open specific files:
mate {{path/to/file1 path/to/file2 ...}}


Specify the filetype of a file:
mate {{[-t|--type]}} {{filetype}} {{path/to/file}}


Open and wait until finished editing a specific file:
mate {{[-w|--wait]}} {{path/to/file}}


Open a file with the cursor at a specific line and column:
mate {{[-l|--line]}} {{line_number}}:{{column_number}} {{path/to/file}}

Code Snippets

Start TextMate

mate

Open specific files

mate {{path/to/file1 path/to/file2 ...}}

Specify the filetype of a file

mate {{[-t|--type]}} {{filetype}} {{path/to/file}}

Open and wait until finished editing a specific file

mate {{[-w|--wait]}} {{path/to/file}}

Open a file with the cursor at a specific line and column

mate {{[-l|--line]}} {{line_number}}:{{column_number}} {{path/to/file}}

Context

tldr-pages: osx/mate

Revisions (0)

No revisions yet.