Skip to content

Sublime text 2 & 3 package which append any symbol at the end of a line by pressing a hotkey.

Notifications You must be signed in to change notification settings

Semehin/appendSymbol

Repository files navigation

appendSymbol

Sublime text 2 & 3 package allows you to append any symbol at the end of a line by pressing a hotkey. Also it can jump to EOL or add new line after appending symbol.

Hotkeys

Linux & Windows

  • Ctrl+; - appends ";" at EOL
  • Ctrl+Alt+; - appends ";" to EOL and jumps there
  • Ctrl+shift+; - appends ";" to EOL and adds new line below and jumps there

Mac

Same as linux & windows but use Super instead of Ctrl.

Symbols

There are three predefined symbols which you can use with default hotkeys above:

  • "."
  • ";"
  • ","

Config

Symbols

You can configure any symbol what you need via "args" key in key bindings:

{ "keys": ["ctrl+#"], "command": "append_symbol", "args": {"symb": "#"} }

Where are "#" - any symbol you need.

Callbacks

To use callbacks define one of them at "args" key

{ "keys": ["ctrl+#"], "command": "append_symbol", "args": {"symb": "#", "callback": "*"} }

Where are "*" - one of two callbacks:

  • "jumpToEOL"
  • "addLine"

Installation

Download and extract it into your Sublime Text Packages folder.

Inspired by

AppendSemiColon

License

MIT © INHQ.PRO

About

Sublime text 2 & 3 package which append any symbol at the end of a line by pressing a hotkey.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages