Re: [code] [textadept] New Code Autocompletion "Framework"

From: Richard Philips <richard.philips.att.gmail.com>
Date: Wed, 28 May 2014 10:14:45 +0200

Hi Mitchell,

I saw in Hg that you committed this.

Thank you for that!

Nevertheless,

I think you have to update textadept/modules/textadept/editing.lua:

function M.autocomplete(name)
  if not M.autocompleters[name] then return end
  local len_entered, list = M.autocompleters[name]()
  if not len_entered or not list or #list == 0 then return end
  buffer.auto_c_order = buffer.ORDER_PERFORMSORT
---> buffer:auto_c_show(len_entered, table.concat(list, ' ')) -- should
make use of buffer.auto_c_separator
  return true
end

I work with the nightly build, but perhaps I should wait for another day :-)

Richard

On Tuesday, May 27, 2014, Mitchell <m.att.foicica.com> wrote:

> Hi Richard,
>
> On Tue, 27 May 2014, Richard Philips wrote:
>
> Hi Mitchell,
>>
>> Is there a way that the possible completions can contain spaces?
>>
>> In editing.lua, I see:
>>
>> buffer:auto_c_show(len_entered, table.concat(list, ' '))
>>
>>
>> Would it be possible to use another character instead of ' '?
>>
>
> Yes, I will commit a fix that utilizes `buffer.auto_c_separator`; you'll
> then be able to set that field and use whatever character you'd like.
>
> Cheers,
> Mitchell
> --
> You are subscribed to code.att.foicica.com.
> To change subscription settings, send an e-mail to code+help.att.foicica.com.
> To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
>
>

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Wed 28 May 2014 - 04:14:45 EDT

This archive was generated by hypermail 2.2.0 : Wed 28 May 2014 - 06:40:32 EDT