Re: Keyboard macros: disabled commands and autocomplete

2015-08-13 Thread David
Am 13.08.2015 um 16:03 schrieb Richard Heck:
> On 08/13/2015 05:35 AM, David wrote:
>> Dear list,
>>
>> I would like to bring up the following topic again in the hope that
>> someone has an answer.
> 
> PS You can also change the delay time under Tools> Preferences> Editing>
> Input Completion.
> 
> Richard
> 
> 

Good to know, thank you!




Re: Keyboard macros: disabled commands and autocomplete

2015-08-13 Thread Richard Heck

On 08/13/2015 05:35 AM, David wrote:

Dear list,

I would like to bring up the following topic again in the hope that
someone has an answer.


PS You can also change the delay time under Tools> Preferences> Editing> 
Input Completion.


Richard



Re: Keyboard macros: disabled commands and autocomplete

2015-08-13 Thread Richard Heck

On 08/13/2015 05:35 AM, David wrote:

Dear list,

I would like to bring up the following topic again in the hope that
someone has an answer.


There isn't one set, but you can set one yourself. Go to Tools> 
Preferences> Editing> Shortcuts, enter "completion" in the search field, 
select "completion-popup", hit "Modify", put the cursor in the blank 
field to the left of the "Delete Key" button, and then enter the 
shortcut that works for you. Alt-Shift-Down Arrow seems to be available 
here and makes some kind of sense.


Richard





Am 30.07.2015 um 13:51 schrieb David Rörich:


2) I work on a document with many math macros having long names, several
of them beginning with the same string. When entering an ambiguous
string, an autocomplete window opens offering a choice of commands and
macros that begin with that string (see image attached). This is very
helpful. However, the delay between entering the string and the
autocomplete window appearance is bothering me. Many IDEs have shortkeys
for opening the autocompletion. Does such a shortkey in Lyx exist? If
not, can I create one? What would be the corresponding command?


Best,
David





Re: Keyboard macros: disabled commands and autocomplete

2015-08-13 Thread David
Dear list,

I would like to bring up the following topic again in the hope that
someone has an answer.

Am 30.07.2015 um 13:51 schrieb David Rörich:

> 
> 2) I work on a document with many math macros having long names, several
> of them beginning with the same string. When entering an ambiguous
> string, an autocomplete window opens offering a choice of commands and
> macros that begin with that string (see image attached). This is very
> helpful. However, the delay between entering the string and the
> autocomplete window appearance is bothering me. Many IDEs have shortkeys
> for opening the autocompletion. Does such a shortkey in Lyx exist? If
> not, can I create one? What would be the corresponding command?
> 

Best,
David



Re: Keyboard macros: disabled commands and autocomplete

2015-07-30 Thread David
Am 31.07.2015 um 20:03 schrieb aparsloe:

> A hackish way is to insert and then delete a space character, to 'dirty'
> the document, which should enable the buffer-write:
> 
> command-sequence space-insert normal; char-delete-backward;
> buffer-write; master-buffer-update;
> 
> but I suspect  "buffer-write; master-buffer-update" is incompatible with
> "command-sequence" as it presently exists. As I understand it, the
> buffer-write operation is a threaded process and so the
> master-buffer-update command will be started generally before the
> buffer-write is complete so that the overall effect won't be what you
> want. (I'm ignorant of LyX internals but I've tried command sequences
> involving saving/exporting operations before and this is what happens.
> See bug #8346.)

In this case the order of commands does not matter, because Lyx takes
the current state of the file from the editor, not from disk. So your
suggestion works perferctly for me. Thank you, Andrew!



Re: Keyboard macros: disabled commands and autocomplete

2015-07-30 Thread aparsloe

On 30/07/2015 4:51 a.m., David Rörich wrote:

I have two questions concerning keyboard macros / commands:

1) I'd like to bind a shortkey to the following command sequence:

command-sequence buffer-write; master-buffer-update;

i.e. save the current document, then update the preview of the master
document. In principle, this works. However, if the document is already
saved, the "buffer-write" command is disabled and consequently the
second command is not executed, neither. Is it possible to enforce
execution of the second command?

Thanks a lot.

David
A hackish way is to insert and then delete a space character, to 'dirty' 
the document, which should enable the buffer-write:


command-sequence space-insert normal; char-delete-backward; buffer-write; 
master-buffer-update;

but I suspect  "buffer-write; master-buffer-update" is incompatible with 
"command-sequence" as it presently exists. As I understand it, the 
buffer-write operation is a threaded process and so the 
master-buffer-update command will be started generally before the 
buffer-write is complete so that the overall effect won't be what you 
want. (I'm ignorant of LyX internals but I've tried command sequences 
involving saving/exporting operations before and this is what happens. 
See bug #8346.)


Andrew

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Keyboard macros: disabled commands and autocomplete

2015-07-30 Thread David Rörich
I have two questions concerning keyboard macros / commands:

1) I'd like to bind a shortkey to the following command sequence:

command-sequence buffer-write; master-buffer-update;

i.e. save the current document, then update the preview of the master
document. In principle, this works. However, if the document is already
saved, the "buffer-write" command is disabled and consequently the
second command is not executed, neither. Is it possible to enforce
execution of the second command?

2) I work on a document with many math macros having long names, several
of them beginning with the same string. When entering an ambiguous
string, an autocomplete window opens offering a choice of commands and
macros that begin with that string (see image attached). This is very
helpful. However, the delay between entering the string and the
autocomplete window appearance is bothering me. Many IDEs have shortkeys
for opening the autocompletion. Does such a shortkey in Lyx exist? If
not, can I create one? What would be the corresponding command?

Thanks a lot.

David


signature.asc
Description: OpenPGP digital signature