Am Sonntag, 21. Mai 2017 um 08:51:01, schrieb Scott Kostyshak <skost...@lyx.org> > On Fri, May 19, 2017 at 08:53:47PM +0200, Kornel Benko wrote: > > Am Freitag, 19. Mai 2017 um 14:04:48, schrieb Scott Kostyshak > > <skost...@lyx.org> > > > On Fri, May 19, 2017 at 04:35:17PM +0200, Kornel Benko wrote: > > > > Hi all, > > > > can we please add use of an extra environment variable to set the > > > > default binding file please? > > > > env: LYX_DEFAULT_BINDFILE > > > > value: Path to default bind file > > > > > > What is the use case? Is it for the keytests? > > > > > > Scott > > > > Yes, for keystests. We have the following problem: > > Search for a string with advanced find dialog. > > We may want to continue, but in some cases it is not possible to enter > > a command. (Manually it is possible, but not through xvkbd). > > Say, I want to enter regex from the dialog. The command string is > > \Axregexp-mode\[Return] > > I can see the command in the panel, but the command does not start, e.g. > > \[Return] is not accepted. > > OTOH, if I use a a bound key for the job, it works. > > > > So starting lyx with some special bindings helps. > > > > I am playing with function keys (not used in any bind file) like > > \bind "C-F20" "regexp-mode" > > or > > \bind "C-F21" "command-sequence dialog-show findreplaceadv ; buffer-end > > ; buffer-begin-select ; char-delete-forward ;" > > to clean the search buffer. > > Does your recent commit (fa3e656a) mean this patch is no longer > necessary?
Yes, though from my POV it is only a second choice. And realized, because no one else responded. > If you are still proposing the patch: > > I was going to ask why we couldn't set the bind file in preferences, > which we already control with the -userdir option. Because I did not want to mess preferences (or any other file in userdir) If it were only for cmake tests, then you are right. But I had to account for automake build too. So, now we are changing user.bind but only with function keys F20-F35, which are unlikely at any keyboard that I know of. Which Ctrl, Shift and Meta we should be able to create 16*4=64 different bindings. > Scott Kornel
signature.asc
Description: This is a digitally signed message part.