Skip to content

janlelis/ripl-auto_indent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A ripl plugin that indents your entered Ruby code.

Install the gem with

gem install ripl-auto_indent

Add the following line to your ~/.riplrc

require 'ripl/auto_indent'

The plugin rewrites the last line (if the there are closing elements). If this is too buggy for you or your terminal does not support it, you can deactivate it with Ripl.config[:auto_indent_rewrite] = false. You can change the default two spaces used for indention (per level) with Ripl.config[:auto_indent_space]. The plugin depends on ripl-multi_line, so you can set the multi-line prompt with Ripl.config[:multi_line_prompt]

  • Not 100% correct ;)

J-_-L

About

This ripl plugin indents your multi-line Ruby input.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages