Re: [code] [textadept] custom key assigment in init.lua

From: Robert Gieseke <rob.g.att.web.de>
Date: Sun, 26 Jan 2014 16:59:09 +0100

Hi,

Am 1/26/14, 4:47 PM, schrieb tastyminerals:
> Hi everyone,
> I am getting acquainted with textadept and can't assign a custom key to
> highlight all the words in the document.
>
> I want to reassign highlight all words function and use
> ~/.textadept/init.lua file for it:
> keys['ch'] = textadept.editing.highlight_word()
> I also tried
> keys.ch = textadept.editing.highlight_word()
> This does not activate the function unfortunately, so how do I do it?

you need the function itself

keys.ch = textadept.editing.highlight_word

not the function invocation.

> I would also like to mention that including ctrl + shift OR ctrl + alt
> combinations is a bad idea, since most ppl use them for keyboard layout.
> So in my case, default highlight word (shift+ctrl+alt+h) does not work
> at all.

Which platform is this?

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 Sun 26 Jan 2014 - 10:59:09 EST

This archive was generated by hypermail 2.2.0 : Mon 27 Jan 2014 - 06:27:09 EST