2018-10-10 21:04:01 -07:00
|
|
|
# TextMate plugin
|
|
|
|
|
2018-10-12 17:08:18 -07:00
|
|
|
The plugin adds a function for the [TextMate](https://macromates.com) editor.
|
2018-10-10 21:04:01 -07:00
|
|
|
|
|
|
|
To use it, add `textmate` to the plugins array of your zshrc file:
|
2020-03-11 11:57:46 -07:00
|
|
|
|
|
|
|
```zsh
|
2018-10-10 21:04:01 -07:00
|
|
|
plugins=(... textmate)
|
|
|
|
```
|
|
|
|
|
2018-10-12 17:08:18 -07:00
|
|
|
## Function
|
2018-10-10 21:04:01 -07:00
|
|
|
|
2018-10-12 17:08:18 -07:00
|
|
|
The `tm` function provides the following options:
|
|
|
|
|
|
|
|
- No arguments: Run `mate` in the current directory.
|
|
|
|
- Argument that is a directory: Run `mate` in the given directory and cd to it.
|
|
|
|
- Other arguments: Pass all arguments to `mate`. This allows for easy opening of multiple files.
|