定制Mathematica快捷键
有没有一个地方,我可以查看/更改全局快捷方式选项,如Command + 9 (转成input样式)?
特别是,我需要更快地创build项目列表。 单元格上下文菜单中的样式“项目”没有自己的快捷方式。
这是一篇不错的文章。
另外, 从这里 (未选中)
问题:如何修改前端以添加新的键盘快捷键? 答案:( mathgroup 2005年5月,特雷弗巴卡:)
我一直在KeyEventTranslations.tr中设置最近的键盘快捷键,我已经了解到,前端令牌非常酷。 这个狼页面给出了相当不错的文档。
无论如何,这里有三个我必须工作一点点(与math团体的好帮手,一如既往)。
- 对于退出的内核键盘快捷方式,请将以下内容添加到KeyEventTranslations.tr中:
Item [KeyEvent [“q”,Modifiers - > {Control,Option}], FrontEndExecute [ FrontEndToken [ SelectedNotebook [], “EvaluatorQuit” 自动 ] ] ]
- 对于初始化单元切换键盘快捷键(从前一个线程重复),将以下内容添加到KeyEventTranslations.tr:
Item [KeyEvent [“i”,Modifiers - > {Command,Control}], FrontEndExecute [ FrontEndToken [ SelectedNotebook [], “InitializationCell” “切换” ] ] ]
- 保存为包键盘快捷方式,将以下内容添加到KeyEventTranslations.tr:
Item [KeyEvent [“k”,Modifiers - > {Control,Option}], SaveRenameSpecial [ “套餐”]
编辑
我find了(无证)前端令牌的完整列表。 希望你会明白这些是不受支持的!
{"AllWindowsFront", "BackgroundDialog", "Balance", "BringToFront", "CellContextDialog", "CellGroup", "CellLabelsToTags", "CellMerge", "CellSplit", "CellTagsEditDialog", "CellTagsEmpty", "CellTagsFind", "CellUngroup", "Clear", "ClearCellOptions", "ClearNoAutoScroll", "Close", "CloseAll", "CloseMain", "ColorSelectorDialog", "ColorsPanel", "CompleteSelection", "Copy", "CopyCell", "CopySpecial", "CreateCounterBoxDialog", "CreateGridBoxDialog", "CreateHyperlinkDialog", "CreateInlineCell", "CreateValueBoxDialog", "Cut", "CycleNotebooksBackward", "CycleNotebooksForward", "DebuggerAbort", "DebuggerClearAllBreakpoints", "DebuggerContinue", "DebuggerContinueToSelection", "DebuggerFinish", "DebuggerResetProfile", "DebuggerShowProfile", "DebuggerStep", "DebuggerStepIn", "DebuggerStepInBody", "DebuggerStepOut", "DebuggerToggleBreakpoint", "DebuggerToggleWatchpoint", "DeleteGeneratedCells", "DeleteIndent", "DeleteInvisible", "DuplicatePreviousInput", "DuplicatePreviousOutput", "EditStyleDefinitions", "EnterSubsession", "Evaluate", "EvaluateCells", "EvaluateInitialization", "EvaluateNextCell", "EvaluateNotebook", "EvaluatorAbort", "EvaluatorHalt", "EvaluatorInterrupt", "EvaluatorQuit", "EvaluatorStart", "ExitSubsession", "ExpirationDialog", "ExplainBeepDialog", "ExplainColoringDialog", "ExpressionLinewrap", "FileNameDialog", "FindDialog", "FindEvaluatingCell", "FindNextMisspelling", "FindNextWarningColor", "FinishNesting", "FixCellHeight", "FixCellWidth", "FontColorDialog", "FontFamilyB", "FontPanel", "FontSizeDialog", "FrontEndHide", "FrontEndQuit", "FrontEndQuitNonInteractive", "GenerateImageCaches", "GenerateNotebook", "GeneratePalette", "GraphicsAlign", "GraphicsCoordinatesDialog", "GraphicsOriginalSize", "GraphicsPlotRangeAll", "GraphicsPlotRangeAutomatic", "GraphicsPlotRangeFixed", "GraphicsRender", "Group", "HandleShiftReturn", "HeadersFootersDialog", "HelpDialog", "HyperlinkGo", "HyperlinkGoBack", "HyperlinkGoForward", "Import", "ImportPictures", "ImportStyleDefinitions", "Indent", "InsertClipPlane", "InsertMatchingBraces", "InsertMatchingBrackets", "InsertMatchingParentheses", "InsertNewGraphic", "InsertObject", "InsertRawExpression", "InsertSoftReturn", "LicAuthFailureDialog", "MacintoshOpenDeskAccessory", "MenuListBoxFormFormatTypes", "MenuListCellEvaluators", "MenuListCellTags", "MenuListCommonDefaultFormatTypesInput", "MenuListCommonDefaultFormatTypesInputInline", "MenuListCommonDefaultFormatTypesOutput", "MenuListCommonDefaultFormatTypesOutputInline", "MenuListCommonDefaultFormatTypesText", "MenuListCommonDefaultFormatTypesTextInline", "MenuListConvertFormatTypes", "MenuListDisplayAsFormatTypes", "MenuListExportClipboardSpecial", "MenuListFonts", "MenuListFontSubstitutions", "MenuListGlobalEvaluators", "MenuListHelpWindows", "MenuListNotebookEvaluators", "MenuListNotebooksMenu", "MenuListPackageWindows", "MenuListPalettesMenu", "MenuListPaletteWindows", "MenuListPlayerWindows", "MenuListPlugInCommands", "MenuListPrintingStyleEnvironments", "MenuListQuitEvaluators", "MenuListRelatedFilesMenu", "MenuListSaveClipboardSpecial", "MenuListScreenStyleEnvironments", "MenuListStartEvaluators", "MenuListStyleDefinitions", "MenuListStyles", "MenuListStylesheetWindows", "MenuListTextWindows", "MenuListWindows", "ModifyBoxFormFormatTypes", "ModifyDefaultFontProperties", "ModifyEvaluatorNames", "ModifyFontSubstitutions", "ModifyNotebooksMenu", "ModifyRelatedFiles", "MoveBackward", "MoveForward", "MoveToBack", "MoveToFront", "New", "NewPackage", "NewText", "NextFunctionTemplate", "NotebookMail", "NotebookMailSelection", "NotebookOneNote", "NotebookOneNoteSelection", "NotebookStatisticsDialog", "Open", "OpenCloseGroup", "OpenFromNotebooksMenu", "OpenFromNotebooksMenuEmpty", "OpenFromPalettesMenu", "OpenFromRelatedFilesMenu", "OpenHelpLink", "OpenSelection", "OpenSelectionParents", "OpenURL", "OptionsDialog", "PasswordDialog", "Paste", "PasteApply", "PasteApplyNoAutoScroll", "PasteDiscard", "PasteDiscardNoAutoScroll", "PasteSpecial", "PlainFont", "PreferencesDialog", "PreviousFunctionTemplate", "PrintDialog", "PrintOptionsDialog", "PrintSelectionDialog", "PublishToPlayer", "RebuildHelpIndex", "RecordSoundDialog", "RefreshDynamicObjects", "RelatedFilesMenu", "RemoveFromEvaluationQueue", "Replace", "ReplaceAll", "ReplaceFind", "ReplaceParent", "Revert", "RunColorDialog", "RunEdgeColorDialog", "RunFaceColorDialog", "Save", "SaveRename", "SaveRenameSpecial", "ScrollLineDown", "ScrollLineUp", "ScrollNotebookEnd", "ScrollNotebookStart", "ScrollPageBottom", "ScrollPageDown", "ScrollPageFirst", "ScrollPageLast", "ScrollPageNext", "ScrollPagePrevious", "ScrollPageTop", "ScrollPageUp", "SelectGeneratedCells", "SelectionAnimate", "SelectionBrace", "SelectionBracket", "SelectionCloseAllGroups", "SelectionCloseUnselectedCells", "SelectionConvert", "SelectionConvertB", "SelectionDisplayAs", "SelectionDisplayAsB", "SelectionHelpDialog", "SelectionOpenAllGroups", "SelectionParenthesize", "SelectionSaveSpecial", "SelectionScroll", "SelectionSetFind", "SelectionSpeak", "SelectionSpeakSummary", "SelectionUnbracket", "SelectNotebookWindow", "SetDefaultGraphic", "SimilarCellBelow", "SoundPlay", "SpellCheckerDialog", "StackWindows", "Style", "StyleDefinitionsOther", "StyleOther", "SubsessionEvaluateCells", "SystemPrintOptionsDialog", "TemplateSelection", "TestEvaluateNotebook", "TileWindowsTall", "TileWindowsWide", "ToggleDebugFlag", "ToggleDynamicUpdating", "ToggleGrayBox", "ToggleOptionListElement", "ToggleShowExpression", "ToggleTestingFlag", "TrustNotebook", "Undo", "Ungroup", "WindowMiniaturize", "XInfoDialog", "ZoomWindow"}
不同types的单元格的快捷方式存储在样式表中 。 select您想要的样式并更改MenuKeyCommand
MenuCommandKey
值。 选项检查器中的下拉选项只允许你使用1-9,但是我用“`”和“=”来testing它们,它们工作正常。 有时,使用显示expression式 (Ctrl-Shift-E)而不是选项检查器更容易修改样式表。