Re: [code] Eval lua inside textadept

From: Robert Gieseke <rob.g.att.web.de>
Date: Sat, 12 Jul 2014 12:36:21 +0200

Hi Carlos,
Am 12/07/14 04:33, schrieb Carlos Pita:
> Hi all,
>
> which is the best/recommended way to evaluate the contents of the
> current buffer (and selection?) inside ta? Currently I'm just calling
> dofile with <C-e> passing it the buffer's path, but maybe there is
> some inbuilt shortcut that I don't know.
>

something like

keys.f8 = function()
   load(buffer:get_text())()
end

might be a starting point. Adding 'buffer:get_sel_text' before that to
evaluate only the selection …

Cheers,
Robert

-- 
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 Sat 12 Jul 2014 - 06:36:21 EDT

This archive was generated by hypermail 2.2.0 : Sun 13 Jul 2014 - 06:39:31 EDT