Re: [code] [code}[textadept] elastic tabstops 'unleashed' version release

From: Peter Rolf <>
Date: Tue, 21 Nov 2017 19:33:41 +0100

Hi Justin

Thanks for the pointer. Notepad++ is my 'emergency' editor (every time I
brick textadept) and I haven't installed elastic tabstops on it yet.
Will do so the next few days. I'll also look into your implementation
(may take some more time) :)


Am 21.11.2017 um 17:30 schrieb Justin Dailey:
> Peter,
> You are correct that the original algorithm for computing the tabstops
> is horribly inefficient. I haven't had a chance to look at your code but
> wanted to provide a bit of extra info.
> About a year ago I implemented elastic tabstops for Notepad++ (see
> ) as a plugin using the
> original algorithm. I've gone through a couple of rewrites of the core
> to optimize it a great deal so that it has to look at as little as text
> as possible when editing the file (or when running macros or replacing
> multiple results). Though I haven't directly compared it to see how much
> more "optimized" it is from previous implementations, it does seem to be
> substantially faster in the worst-case scenarios. My current
> implementation is here
> if you or anyone is interested :)
> Justin
> On Tuesday, November 21, 2017, 9:17:31 AM EST, Peter Rolf
> <> wrote:
> Hi,
> I just finished my code cleanup on the original "Elastic Tabstops"
> module by Joshua Krämer (thanks!). This version is about 2-561 bazillion
> times faster than the reference code (of course this is just a rough
> approximation). If you know how to profile this module, let me know. The
> best I could find was "pepperfish" for Lua 5.1 (profiling doesn't seem
> popular in Lua).
> Aside from the speed improvements, I added support for multi style text
> elements and the level of indentation is modifiable now. There is also
> an single gif which shows part of my 'init.lua'. Be sure to use a
> 'correct' scaling value (best at 100%, 200%, 400%...), otherwise it will
> mess up the picture.
> The module is not tested much (only with a hand full of texts I use) and
> I also haven't read the Scintilla related part (so my understanding of
> the algorithm is still limited). Let me know if you find a bug or have
> suggestions for improvement.
> Best wishes,  Peter
> --
> You are subscribed to <>
> To change subscription settings, send an e-mail to
> <>
> To unsubscribe, send an e-mail to
> <>

You are subscribed to
To change subscription settings, send an e-mail to
To unsubscribe, send an e-mail to
Received on Tue 21 Nov 2017 - 13:33:41 EST

This archive was generated by hypermail 2.2.0 : Wed 22 Nov 2017 - 06:41:10 EST