Standard key binding for SyncTeX forward-search?

Kornel Benko kornel at lyx.org
Thu Feb 20 18:24:14 UTC 2020


Am Thu, 20 Feb 2020 18:10:30 +0100
schrieb Stephan Witt <st.witt at gmx.net>:

> Am 20.02.2020 um 17:37 schrieb Stephan Witt <st.witt at gmx.net>:
> > 
> > Am 20.02.2020 um 17:08 schrieb Stephan Witt <st.witt at gmx.net>:  
> >> 
> >> Am 20.02.2020 um 16:49 schrieb Christopher Menzel <chris.menzel at 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)

	Kornel
	
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: Digitale Signatur von OpenPGP
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20200220/67d307fd/attachment-0001.asc>


More information about the lyx-devel mailing list