ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

yasi-indenter

by nkmathew ALL

Sublime Text plugin for correct s-expression indentation using yasi

Details

Installs

  • Total 491
  • Win 277
  • Mac 134
  • Linux 80
May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Latest tag

sublime-yasi - yasi indenter meets Sublime Text

Enables correct lisp code indentation from within Sublime Text 3.

Installation

  • The repo way:

    • Hit Ctrl+Shift+P
    • Launch Add Repository
    • Paste https://github.com/nkmathew/sublime-yasi
    • Ctrl+Shift+P again
    • Click Install Package, lookup yasi and install it
  • Standard way(via Package Control):

    • Hit Ctrl+Shift+P > Install Package search for yasi and install it
  • Manually:

    • Clone repo or download master.zip
    • Run make VER=2 to install for Sublime 2 or make VER=3 for Sublime 3

Features

  • Indenting selections:

Hit Ctrl+r to indent the selection or alternatively navigate to the Selection menu then Format then Indent S-expression.

  • Indenting the current line:

Hitting Ctrl-r without an existing selection will result in the current line being reindented.

  • Auto-indentation:

Auto-indents the next line when the enter key is pressed

  • Indenting file on save(opt-out feature, see preferences)

Preferences

To turn off file auto-indentation on save go to the user settings in,

and change the value to false like so:

{
    "indent_sexp_on_save": false
}

Screencast