Skip to content

Minor Sublime Text utils for personal use. Published as a backup and for code sharing.

Notifications You must be signed in to change notification settings

mitranim/sublime-misc

Repository files navigation

Overview

Collection of tiny Sublime Text utilities, fashioned as a single plugin. Mostly undocumented, published as a backup and for easy code sharing.

Installation

Clone the repo and symlink it to your Sublime packages directory. Example for MacOS:

git clone https://github.com/mitranim/sublime-misc.git
cd sublime-misc
ln -sf "$(pwd)" "$HOME/Library/Application Support/Sublime Text/Packages/"

To find the packages directory on your system, use Sublime Text menu → Preferences → Browse Packages.

Keymaps

To enable the comment continuation feature, add the following to your keymap:

{
  "keys": ["enter"],
  "command": "run_macro_file",
  "args": {"file": "res://Packages/sublime-misc/continue_line_comment.sublime-macro"},
  "context": [{"key": "selector", "operand": "comment.line - punctuation.definition.comment"}],
},

License

https://unlicense.org

Small pieces of code were ported from ST internals (C++). Samples were courteously provided by ST creator. Different conditions might apply.

About

Minor Sublime Text utils for personal use. Published as a backup and for code sharing.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published