deadpixi / sam

An updated version of the sam text editor.
Other
436 stars 47 forks source link

optional autoindent #64

Closed dtolpin closed 7 years ago

dtolpin commented 7 years ago

This patch implements autoindent. The implementation is non-aggressive: a new line immediately following an indented line is indented, however an empty line cancels the indentation. By default autoindent is off, and is controlled by an option in .samrc.

I had a 'sticky' autoindent implementation in my version of sam (which I branched from SAM 4.3 years ago), but I think this milder version is more appropriate for a general feature.

Just found this code base and thought I could contribute some of the features I privately introduced and used.

dtolpin commented 7 years ago

Of course I read the roadmap and this is not a planned feature, it is entirely up to you --- just thought might worth considering.

deadpixi commented 7 years ago

If I may say, beautiful code. Thanks for your help! Merged in.

deadpixi commented 7 years ago

@dtolpin Please let me know how you'd like to be credited in the README.

dtolpin commented 7 years ago

Thank you! I think it is "David Tolpin added support for optional automatic indentation", in the style of other credits.