From 8a2e1006b3b272126332aa064f3ad95387129544 Mon Sep 17 00:00:00 2001 From: Biswakalyan Bhuyan Date: Thu, 13 Feb 2025 14:13:49 +0530 Subject: new dot files --- .config/zsh/oh-my-zsh/plugins/sublime/README.md | 37 +++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .config/zsh/oh-my-zsh/plugins/sublime/README.md (limited to '.config/zsh/oh-my-zsh/plugins/sublime/README.md') diff --git a/.config/zsh/oh-my-zsh/plugins/sublime/README.md b/.config/zsh/oh-my-zsh/plugins/sublime/README.md new file mode 100644 index 0000000..2299924 --- /dev/null +++ b/.config/zsh/oh-my-zsh/plugins/sublime/README.md @@ -0,0 +1,37 @@ +# sublime + +Plugin for [Sublime Text](https://www.sublimetext.com/), a cross platform text and code editor, +available for Linux, macOS, and Windows. + +To use the plugin, add `sublime` to the plugins array of your zshrc file: + +```zsh +plugins=(... sublime) +``` + +Sublime Text has to be installed to use the plugin. + +## Usage + +The plugin defines several aliases, such as: + +- `st`: opens Sublime Text. If passed a file or directory, Sublime Text will open it. + +- `stt`: open Sublime Text on the current directory. + +- `sst`: if `sudo` is available, `sst` will open Sublime Text with root permissions, so that + you can modify any file or directory that you pass it. Useful to edit system files. + +There are also a few functions available: + +- `find_project` (or `stp` alias): if called, the function will search for a `.sublime-project` file + on the current directory or its parents, until it finds none. + + If there is no `.sublime-project` file but the current folder is in a Git repository, it will open + Sublime Text on the root directory of the repository. + + If there is no Git repository, it will then open Sublime Text on the current directory. + +- `create_project` (or `stn` alias): if called without an argument, create a stub `.sublime-project` + file in the current working directory, if one does not already exist. If passed a directory, create + a stub `.sublime-project` file in it. -- cgit v1.2.3-59-g8ed1b