Am Thu, 20 Feb 2020 22:10:17 +0100
schrieb Stephan Witt <st.w...@gmx.net>:

> Am 20.02.2020 um 19:24 schrieb Kornel Benko <kor...@lyx.org>:
> > 
> > Am Thu, 20 Feb 2020 18:10:30 +0100
> > schrieb Stephan Witt <st.w...@gmx.net>:
> >   
> >> Am 20.02.2020 um 17:37 schrieb Stephan Witt <st.w...@gmx.net>:  
> >>> 
> >>> Am 20.02.2020 um 17:08 schrieb Stephan Witt <st.w...@gmx.net>:    
> >>>> 
> >>>> Am 20.02.2020 um 16:49 schrieb Christopher Menzel 
> >>>> <chris.men...@gmail.com>:    
> >>>>>   
> >>>>>> while working with SyncTeX I came to the conclusion a standard
> >>>>>> key binding for "Navigate > Forward Search" would be very useful.    
> >>>>> 
> >>>>> That's certainly one of my most-used custom keybindings. I use emacs 
> >>>>> bindings so
> >>>>> have mapped it to C-c-f. You obviously wouldn't want to hijack C-c if 
> >>>>> you use CUA
> >>>>> bindings (and you use Windows or Linux rather than a Mac).   
> >>>>>> I’d like to propose:
> >>>>>> 
> >>>>>> \bind "C-S-F" "forward-search“    
> >>>>> 
> >>>>> As Scott pointed out, that is indeed the cua binding for advanced find; 
> >>>>> from
> >>>>> cua.bind:
> >>>>> 
> >>>>> \bind "C-S-f"                   "dialog-show findreplaceadv“'    
> >>>> 
> >>>> Yes, indeed. I’ve used case sensitive grep to search for a free binding 
> >>>> and missed
> >>>> it. :( The preferences and the menu present these with capital letters.
> >>>> 
> >>>> So a better grep shows the free keys are: C-S-c and C-S-h.    
> >>> 
> >>> Also working and IMO sensible is: C-S-Right.    
> >> 
> >> But also not free :(
> >> 
> >> I think this reveals a real problem. I’ve detected some other clashes
> >> introduced over time. E.g. in mac.bind
> >> 
> >> \bind "M-C-Right"  "depth-increment"
> >> \bind "C-M-Right"  "tabular-feature move-column-right"
> >> 
> >> I’ll see how to check for this with a script…
> >> 
> >> Stephan  
> > 
> > Thanks for the idea. Script is ready.
> > 
> > For mac, I get
> > $ bindCheck.pl mac
> >     file = /usr/src/lyx/lyx-git/lib/bind/mac.bind
> >     clash for key C-M-Right in line 365
> >             prev line(266)  value(depth-increment)
> >             new  line(365)  value(tabular-feature move-column-right)
> >     clash for key C-M-Left in line 366
> >             prev line(267)  value(depth-decrement)
> >             new  line(366)  value(tabular-feature move-column-left)
> > $ bindCheck.pl cua
> >     clash for key S-F7 in line 216
> >             prev line(120)  value(thesaurus-entry)
> >             new  line(216)  value(bookmark-save 7)  
> 
> :)
> 
> Plus Escape?
> 
> cua.bind:237:\bind "Escape"                   "cancel"
> mac.bind:362:\bind "Escape"                       "cancel"
> math.bind:139:\bind "Escape"          „escape"

I tested only one file, not a combination.
 
> Ok, now I propose this for forward-search:
> 
> \bind "C-S-colon"                    

> \bind "C-S-period"                   "forward-search"
> 
> The duplication is intentional to make it work for different keyboard layouts.
> Is this duplication acceptable or is there some other technique to solve this?
> 
> Stephan
> 

Normally one would use
\bind "C-~S-colon" "forward-search"
if colon and period share the same key

        Kornel


Attachment: pgpmVqPPBI03L.pgp
Description: Digitale Signatur von OpenPGP

-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to