Am 15.07.2010 um 09:22 schrieb Stephan Witt: > Am 15.07.2010 um 02:46 schrieb BH: > >> On Wed, Jul 14, 2010 at 1:18 PM, Pavel Sanda <sa...@lyx.org> wrote: >>> i dont use macros myself so i really have no idea how is this unfold macro >>> important. >> >> Same for me on math macros. But I agree with <Cmd>minus/plus for zoom >> out/in: that's the Mac standard. > > Thanks. I've played with some Linux applications and apparently it's standard > here too. > The list of applications I tried and conforming to: firefox, nautilus, > evolution, gnome-terminal. > Ok, that's the Gnome desktop... > On Windows, I tried Safari :-) and IE8 - same result: <ctrl>minus/plus for > zoom out/in. > I think we should change LyX bindings to conform here too.
Here is an more complete patch to achieve that. I don't know what to do with emacs binding. I guess it should be left as is. Then it would be complete. One side effect is questionable: C-minus was "specialchar-insert hyphenation" in text mode. This is moved to C-S-underscore now. I like that move - but others may insist. But then I don't know how to proceed. (C-M-minus is "specialchar-insert nobreakdash".) Stephan
Index: lib/bind/cua.bind =================================================================== --- lib/bind/cua.bind (Revision 34896) +++ lib/bind/cua.bind (Arbeitskopie) @@ -89,7 +89,7 @@ \bind "C-S-E" "changes-track" # it's what MS Word uses \bind "~S-M-quotedbl" "quote-insert single" \bind "~S-C-quotedbl" "self-insert \"" -\bind "C-minus" "command-alternatives math-macro-fold;specialchar-insert hyphenation" +\bind "C-S-underscore" "command-alternatives math-macro-fold;specialchar-insert hyphenation" \bind "C-M-minus" "specialchar-insert nobreakdash" \bind "M-S-Right" "depth-increment" \bind "M-S-Left" "depth-decrement" @@ -119,9 +119,8 @@ \bind "F11" "ui-toggle fullscreen" -\bind "M-equal" "buffer-zoom-in" -\bind "M-plus" "buffer-zoom-in" -\bind "M-minus" "buffer-zoom-out" +\bind "C-plus" "buffer-zoom-in" +\bind "C-minus" "buffer-zoom-out" # # Motion group Index: lib/bind/math.bind =================================================================== --- lib/bind/math.bind (Revision 34896) +++ lib/bind/math.bind (Arbeitskopie) @@ -141,7 +141,7 @@ #\bind "C-Tab" "cell-split" # math-macros -\bind "C-plus" "math-macro-unfold" +\bind "C-S-asterisk" "math-macro-unfold" # Defined in cua.bind as command-alternative to specialchar-insert hyphenation #\bind "C-minus" "math-macro-fold" Index: lib/bind/mac.bind =================================================================== --- lib/bind/mac.bind (Revision 34896) +++ lib/bind/mac.bind (Arbeitskopie) @@ -79,7 +79,7 @@ \bind "C-S-E" "changes-track" # it's what MS Word uses \bind "~S-M-quotedbl" "quote-insert single" \bind "~S-C-quotedbl" "self-insert \"" -\bind "C-minus" "command-alternatives math-macro-fold;specialchar-insert hyphenation" +\bind "C-S-underscore" "command-alternatives math-macro-fold;specialchar-insert hyphenation" \bind "C-M-minus" "specialchar-insert nobreakdash" \bind "M-C-Right" "depth-increment" \bind "M-C-Left" "depth-decrement" @@ -103,9 +103,8 @@ \bind "M-x" "command-execute" \bind "M-o" "dialog-show toc" -\bind "M-equal" "buffer-zoom-in" -\bind "M-plus" "buffer-zoom-in" -\bind "M-minus" "buffer-zoom-out" +\bind "C-plus" "buffer-zoom-in" +\bind "C-minus" "buffer-zoom-out" # # Motion group