my xfce4 dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.4 KiB

3 years ago
  1. # sublime
  2. Plugin for [Sublime Text](https://www.sublimetext.com/), a cross platform text and code editor,
  3. available for Linux, macOS, and Windows.
  4. To use the plugin, add `sublime` to the plugins array of your zshrc file:
  5. ```zsh
  6. plugins=(... sublime)
  7. ```
  8. Sublime Text has to be installed to use the plugin.
  9. ## Usage
  10. The plugin defines several aliases, such as:
  11. - `st`: opens Sublime Text. If passed a file or directory, Sublime Text will open it.
  12. - `stt`: open Sublime Text on the current directory.
  13. - `sst`: if `sudo` is available, `sst` will open Sublime Text with root permissions, so that
  14. you can modify any file or directory that you pass it. Useful to edit system files.
  15. There are also a few functions available:
  16. - `find_project` (or `stp` alias): if called, the function will search for a `.sublime-project` file
  17. on the current directory or its parents, until it finds none.
  18. If there is no `.sublime-project` file but the current folder is in a Git repository, it will open
  19. Sublime Text on the root directory of the repository.
  20. If there is no Git repository, it will then open Sublime Text on the current directory.
  21. - `create_project` (or `stn` alias): if called without an argument, create a stub `.sublime-project`
  22. file in the current working directory, if one does not already exist. If passed a directory, create
  23. a stub `.sublime-project` file in it.