Re: [code] Some advice on textadept programming

From: Carlos Pita <carlosjosepita.att.gmail.com>
Date: Tue, 3 Mar 2015 02:01:02 -0300

> * Is it possible to eval a lua selection? If not, do you think it
> would be a worthy addition? Why?

For this part, I've written something like:

keys['cE'] = {function()
  local sel = buffer:get_sel_text()
  if sel ~= '' then load(sel)() else dofile(buffer.filename) end
end}

but please let me know if I'm duplicating inbuilt functionality I
don't know about.

Cheers

--
Carlos
-- 
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 Tue 03 Mar 2015 - 00:01:02 EST

This archive was generated by hypermail 2.2.0 : Tue 03 Mar 2015 - 06:44:30 EST