Re: [dev] another text user interface for sam

2016-03-02 Thread Maxime Coste
And we should probably continue that discussion on https://github.com/mawww/kakoune/issues/541

Re: [dev] another text user interface for sam

2016-03-02 Thread Maxime Coste
On Wed, Mar 02, 2016 at 06:32:08PM +, Connor Lane Smith wrote: > > * support lookaheads and lookbehinds, until I find a clean, alternative way > >to express 'a double quote that is not preceeded by a pair number of > >antislash' to match the closers of C strings (as an example of their

Re: [dev] another text user interface for sam

2016-03-02 Thread Connor Lane Smith
On 2 March 2016 at 18:26, Maxime Coste wrote: > Yeah, I'd really like to get rid of boost, and possibly migrate to a > lighter regex lib. The problem is that no currently available libs match > the required feature set Thanks for the list of issues. Perhaps we can work these in to a library. >

Re: [dev] another text user interface for sam

2016-03-02 Thread Maxime Coste
On Wed, Mar 02, 2016 at 04:16:02PM +, Connor Lane Smith wrote: > On 2 March 2016 at 15:45, Maxime Coste wrote: > > How does sam handles parallel grouping when we get multiple incompatible > > changes > > to the same range of text ? > > It panics. > > Incidentally, I notice that Kakoune uses

Re: [dev] another text user interface for sam

2016-03-02 Thread Greg Reagle
On 03/02/2016 11:22 AM, Connor Lane Smith wrote: > On 2 March 2016 at 16:06, Greg Reagle wrote: >> Well sam has ISRE, but it lacks a nano/vi/emacs-like (full screen >> interactive) TUI. > > I think the key to *interactive* structural regular expressions is > that it must be possible to position

Re: [dev] another text user interface for sam

2016-03-02 Thread Connor Lane Smith
On 2 March 2016 at 16:06, Greg Reagle wrote: > Well sam has ISRE, but it lacks a nano/vi/emacs-like (full screen > interactive) TUI. I think the key to *interactive* structural regular expressions is that it must be possible to position oneself 'within' an expression. Suppose you write x/re/, th

Re: [dev] another text user interface for sam

2016-03-02 Thread Greg Reagle
On 03/02/2016 10:45 AM, Maxime Coste wrote: > How does sam handles parallel grouping when we get multiple incompatible > changes > to the same range of text ? It looks like it refuses. Using `sam -d` from 9base, the following command: x/echo/ { c/AAA c/BBB } produces error message "?changes no

Re: [dev] another text user interface for sam

2016-03-02 Thread Connor Lane Smith
On 2 March 2016 at 15:45, Maxime Coste wrote: > How does sam handles parallel grouping when we get multiple incompatible > changes > to the same range of text ? It panics. Incidentally, I notice that Kakoune uses Boost's regular expressions, which means that reverse searches are very inefficien

Re: [dev] another text user interface for sam

2016-03-02 Thread Greg Reagle
On 03/02/2016 07:42 AM, Connor Lane Smith wrote: > On 2 March 2016 at 10:40, Maxime Coste wrote: >> That has been provided by Kakoune for a looong time I have never heard of Kakoune. Thanks for informing me of it. > Not as long as I've wanted it! > > (My first rant on this mailing list about '

Re: [dev] another text user interface for sam

2016-03-02 Thread Maxime Coste
On Wed, Mar 02, 2016 at 03:17:49PM +0100, Marc André Tanner wrote: > On Wed, Mar 02, 2016 at 10:40:51AM +, Maxime Coste wrote: > > On Wed, Mar 02, 2016 at 10:14:48AM +, Raphaël Proust wrote: > > > On 1 March 2016 at 17:12, Marc André Tanner wrote: > > > > I think structural regexp will int

Re: [dev] another text user interface for sam

2016-03-02 Thread Teodoro Santoni
2016-03-02 15:17 GMT+01:00, Marc André Tanner : > I want the possibility to store my most freqently used commands > in a regular "favorites" file where they can be exexcuted from. I > guess you could kind of hack something together with macros but that > is not the same. Like GNU sed's branches or

Re: [dev] another text user interface for sam

2016-03-02 Thread Marc André Tanner
On Wed, Mar 02, 2016 at 10:40:51AM +, Maxime Coste wrote: > On Wed, Mar 02, 2016 at 10:14:48AM +, Raphaël Proust wrote: > > On 1 March 2016 at 17:12, Marc André Tanner wrote: > > > I think structural regexp will integrate nicely with multiple selections. > > > > > > […] > > > > Yes! Inter

Re: [dev] another text user interface for sam

2016-03-02 Thread Connor Lane Smith
On 2 March 2016 at 10:40, Maxime Coste wrote: > That has been provided by Kakoune for a looong time Not as long as I've wanted it! (My first rant on this mailing list about 'interactive structural regular expressions' was in June 2011.) But this may be what I've been looking for, thanks. cls

Re: [dev] another text user interface for sam

2016-03-02 Thread Maxime Coste
On Wed, Mar 02, 2016 at 10:14:48AM +, Raphaël Proust wrote: > On 1 March 2016 at 17:12, Marc André Tanner wrote: > > I think structural regexp will integrate nicely with multiple selections. > > > > […] > > Yes! Interactive structural regexp would definitely be a Killer > Feature™ IMO. I woul

Re: [dev] another text user interface for sam

2016-03-02 Thread Raphaël Proust
On 1 March 2016 at 17:12, Marc André Tanner wrote: > I think structural regexp will integrate nicely with multiple selections. > > […] Yes! Interactive structural regexp would definitely be a Killer Feature™ IMO. I would probably use an editor like that almost exclusively. On 1 March 2016 at 20

[dev] [st] [patch] Remove redundant xtermclear code

2016-03-02 Thread Ton van den Heuvel
In case anything gets drawn in drawregion, xdrawglyphfontspecs ensures that the region that needs to be drawn to is cleaned up. In case this patch is not accepted; the current code contains an issue; -xtermclear(0, y, term.col, y); +xtermclear(0, y, term.col-1, y); Ton diff --git