[texworks] scripts

Jonathan Kew jfkthame at googlemail.com
Thu Dec 17 20:56:41 CET 2009


On 17 Dec 2009, at 19:51, Alain Delmotte wrote:

> Hi!
> 
> Stefan Löffler a écrit :
>> Hi,
>> 
>> Am 2009-12-17 13:50, schrieb Benny Lautrup:
>>  
>>> How can I associate a script with a keystroke. The method that works for built-in commands seem not to work for scripts. Any suggestions?
>>>      
>> 
>> Unfortunately, this is not implemented yet. It will certainly be
>> included in the overhaul of the shortcut system, but at the moment this
>> doesn't work.
>> 
>> Cheers,
>> Stefan
> As I did with the scripts (which I still use - so I am still with version 0.1r424 !!):
> the scripts appears in the Scripts menu.
> In the definition of the script I did put & in front of a letter, this will serve as accelerator.
> But I am not sure that the Scripts menu has an accelerator (I did put one, S, for the French version I use)
> So I can do Alt+S then the letter associated with the script.
> 
> This keyboard shortcut system is very important when you really want to work on long documents, especially if you work on a text which is already typed.
> (When you create from time to time small documents, using the mouse in enough)
> I would suggest to implement this asap!

It seems to me the natural way to implement this is to allow a "Shortcut" entry in the script header, along with the name that appears in the Scripts menu.

Ultimately, a Manage Scripts dialog could provide an interface to modify these things, but it's not in place yet.

JK



More information about the texworks mailing list