]> git.lyx.org Git - lyx.git/blobdiff - lib/bind/cua.bind
useful bindings for LyX/Mac
[lyx.git] / lib / bind / cua.bind
index 438fc0cc4debdd2ac58a19d238bf140201e5aaf0..0b3f8a3e61b17afc35658dc6143388c239c54915 100644 (file)
@@ -1,17 +1,24 @@
-# This file is part of
-# ==================================================================
-#
-#                  LyX, the High Level Word Processor
-# 
-#         Copyright (C) 1995-1997 Asger Alstrup & The LyX Team
-#
-# ==================================================================
+# -*- text -*-
+
+# file cua.bind
+# This file is part of LyX, the document processor.
+# Licence details can be found in the file COPYING.
+
+# author Asger Alstrup
+# author Lars Gullik Bjønnes
+# author Jean-Marc Lasgouttes
+# author Angus Leeming
+# author John Levon
+# author Jürgen Spitzmüller
+# author Dekel Tsur
+# author Jürgen Vigna
+# author Andrew Zabolotny
+
+# Full author contact details are available in file CREDITS.
 
-#
 # This is the CUA (Common User Access) flavour bind file, based on 
 # bindings found in the Windows, Mac and Motif world.
-#
-#
+
 # DO NOT CHANGE THIS DEFAULT BINDING FILE! It will be replaced
 # with every new install of LyX and your changes will be lost. 
 # Instead, customize a copy of this file placed in 
 #\bind "C-j"
 #\bind "C-y"
 
-## Documents menu
-#
-# These are now defined in cua or emacs bind files so their "standard"
-# bindings are available. (eg M-d "word-delete-forward" in emacs) ARRae
-
-\bind "M-d p"                  "buffer-previous"
-\bind "M-d space"              "menu-open Documents"
 
 ###
 
 \bind "C-n"                    "buffer-new"
 \bind "C-S-N"                  "buffer-new-template"
-\bind "C-o"                    "buffer-open"
+\bind "C-o"                    "file-open"
 \bind "C-r"                    "buffer-reload"
 \bind "C-w"                    "buffer-close"
 \bind "C-s"                    "buffer-write"
 \bind "C-S-S"                  "buffer-write-as"
-\bind "C-p"                    "buffer-print" 
-\bind "C-d"                    "buffer-view"           # 'd' for dvi
-\bind "C-t"                    "buffer-view-ps"
-\bind "C-S-D"                  "buffer-typeset"        # 'd' for dvi
-\bind "C-S-T"                  "buffer-typeset-ps"
+\bind "C-p"                    "dialog-show print" 
+\bind "C-d"                    "buffer-view dvi"       # 'd' for dvi
+\bind "C-t"                    "buffer-view ps"
+\bind "C-S-D"                  "buffer-update dvi"     # 'd' for dvi
+\bind "C-S-T"                  "buffer-update ps"
 \bind "C-q"                    "lyx-quit"
 
 \bind "C-b"                    "font-bold"
 \bind "C-e"                    "font-emph"
-\bind "C-k"                    "font-noun"             # 'k' for capitals
-\bind "C-l"                    "tex-mode"              # 'l' for LaTeX
+# used below for line-delete-forward
+#\bind "C-k"                   "font-noun"             # 'k' for capitals
 \bind "C-u"                    "font-underline"
 \bind "C-S-P"                  "font-code"             # 'P' for program
 
 \bind "C-m"                    "math-mode"
 \bind "C-S-M"                  "math-display"
 
-\bind "C-f"                    "find-replace"
+\bind "C-f"                    "dialog-show findreplace"
 \bind "C-g"                    "error-next"
-\bind "C-i"                    "open-stuff"            # 'i' for Inset
+\bind "C-i"                    "inset-toggle"          # 'i' for Inset
 
 \bind "C-c"                    "copy"
 \bind "C-x"                    "cut"
 \bind "C-v"                    "paste"
 
-\bind "C-S-C"                  "layout-copy"
-\bind "C-S-V"                  "layout-paste"
-
 \bind "C-z"                    "undo"
 \bind "C-S-Z"                  "redo"
 
-\bind "S-C-quotedbl"           "quote-insert"
+\bind "C-S-E"                  "track-changes"  # it's what MS Word uses
+\bind "~S-C-quotedbl"          "self-insert \""
 \bind "C-minus"                        "hyphenation-point-insert"
 \bind "M-S-Right"              "depth-increment"
 \bind "M-S-Left"               "depth-decrement"
-\bind "C-S-space"              "protected-space-insert"
+\bind "C-S-L"                  "ligature-break-insert"
+\bind "C-l"                    "ert-insert"            # 'l' for LaTeX
 
 #bind "F1"                     "help"                  # Not yet implemented!
 #bind "C-F1"                   "help-context"          # Not yet implemented!
 \bind "F2"                     "buffer-write"
-\bind "F3"                     "buffer-open"
+\bind "F3"                     "file-open"
 \bind "C-F4"                   "buffer-close"
 \bind "F5"                     "screen-recenter"
 \bind "M-F4"                   "lyx-quit"
-\bind "F7"                     "spellchecker"
+\bind "F7"                     "dialog-show spellchecker"
+\bind "S-F7"                   "thesaurus-entry"
 
 \bind "M-x"                    "command-execute"
 
 \bind "C-End"                  "buffer-end"
 
 \bind "C-~S-greater"           "reference-goto"
-\bind "C-~S-less"              "reference-back"
+\bind "C-~S-less"              "bookmark-goto 0"
 
 
 #
 \bind "S-Insert"               "paste"
 \bind "S-Delete"               "cut"
 
+# Numeric keypad (if Shift+KP_XXX does not switch the NumLock state)
+\bind "S-KP_Right"              "forward-select"
+\bind "S-KP_Left"               "backward-select"
+\bind "S-KP_Up"                 "up-select"
+\bind "S-KP_Down"               "down-select"
+\bind "S-C-KP_Right"            "word-forward-select"
+\bind "S-C-KP_Left"             "word-backward-select"
+\bind "S-C-KP_Up"               "paragraph-up-select"
+\bind "S-C-KP_Down"             "paragraph-down-select"
+\bind "S-KP_Home"               "line-begin-select"
+\bind "S-KP_End"                "line-end-select"               
+\bind "S-KP_Prior"              "screen-up-select"
+\bind "S-KP_Next"               "screen-down-select"
+\bind "S-C-KP_Home"             "buffer-begin-select"
+\bind "S-C-KP_End"              "buffer-end-select"
+\bind "S-C-KP_Prior"            "buffer-begin-select"
+\bind "S-C-KP_Next"             "buffer-end-select"
+\bind "C-KP_Insert"             "copy"
+\bind "S-KP_Insert"             "paste"
+\bind "S-KP_Delete"             "cut"
+
+#
+# bookmarks
+#
+
+\bind "C-~S-1"                 "bookmark-goto 1"
+\bind "C-~S-2"                 "bookmark-goto 2"
+\bind "C-~S-3"                 "bookmark-goto 3"
+\bind "C-M-~S-1"               "bookmark-save 1"
+\bind "C-M-~S-2"               "bookmark-save 2"
+\bind "C-M-~S-3"               "bookmark-save 3"
+
+
 #
 # Edit group
 #
 \bind "C-BackSpace"            "word-delete-backward"
 \bind "M-Return"               "break-paragraph-keep-layout"
 \bind "C-Return"               "break-line"
-\bind "C-space"                        "protected-space-insert"
+\bind "C-k"                    "line-delete-forward"
+\bind "C-space"                        "space-insert protected"
+\bind "C-M-space"                      "space-insert normal"
+\bind "S-C-space"                      "space-insert thin"
 \bind "C-period"               "end-of-sentence-period-insert"
 \bind "M-period"               "dots-insert"
 \bind "Escape"                 "cancel"
 
 \bind_file menus.bind
 \bind_file math.bind
+\bind_file latinkeys.bind
+\bind_file cyrkeys.bind
+\bind_file greekkeys.bind