美文网首页
jupyterlab 键盘默认快捷键与修改方法

jupyterlab 键盘默认快捷键与修改方法

作者: mudssky | 来源:发表于2021-05-20 22:34 被阅读0次

    jupyterlab是jupyter notebook的下一代产品,虽然功能差不多。但是jupyterlab的ui更完善一些,更像一个应用程序。

    很明显的区别就是jupyterlab他基础就自带一些不错的功能,比如有文件目录,并且你的markdown标题toc功能也是自带的。

    但是快捷键也是和jupyter notebook有些不同的

    从菜单的setting,里面选中Advanced Settings Editor,打开就是配置文件管理器了。

    里面有一项就是 Keyboard Shortcuts,里面的json就记录的是键位配置文件,修改在右边的用户设置里改就行了。

    这里我就整理一下。

    键位 作用
    Ctrl Shift ] 向右切换tab选项卡
    Ctrl Shift [ 向左切换tab选项卡
    Ctrl Shift . application:activate-next-tab-bar
    Alt W 关闭tab选项卡
    Accel B(ctrl+b) 开关左侧区域
    Accel Shift D 左下角simple模式的切换
    Accel Shift C 打开命令面板
    Accel P print ,就是利用浏览器自带功能打印成pdf
    Accel Enter 执行选中的cell
    Shift Enter 执行选中cell,并且移动到下一个cell
    Accel S 保存文件
    Accel Shift S 另存为
    Accel G 执行搜索以后,跳到下一个高亮的值
    Accel Shift G Accel G相反方向
    Accel Shift Z 重做
    Accel Z 撤销之前的操作
    Accel Shift L 创建 mian launcher
    Accel Shift F 开关文件浏览器
    Ctrl Shift Q 退出并清理
    I I 中断内核
    00 重启内核
    Y 改变cell为代码格
    M 改变cell为markdown格
    R 改变cell为raw格式
    C 复制cell
    X 剪切cell
    DD 删除cell
    1 设置当前cell为标题1
    2 设置当前cell为标题2
    3 设置当前cell为标题3
    4 设置当前cell为标题4
    5 设置当前cell为标题5
    6 设置当前cell为标题6
    ESC 进入命令模式
    Ctrl M 进入命令模式
    Shift K 扩展上面的cell
    Shift J 扩展下面的cell
    Shift End 扩展到最底部的cell
    Shift Home 扩展到最顶部的cell
    A 在当前cell上方插入cell
    B 在当前cell下方插入cell
    Shift M 合并选中的cell
    ArrowDown或者j 向上
    ArrowUp或者k 向下
    V 粘贴cell在当前cell的下方
    Shift ArrowUp 向上选中
    Shift ArrowDown 向下选中
    Shift Z 重做cell操作
    Accel A 全选
    Ctrl Shift - 输入模式下,分隔光标上下为两个cell
    Shift L 开关所有cell的行号显示
    L 开关当前cell的行号显示
    Z 撤销cell操作
    Accel , 打开设置编辑界面
    Ctrl Shift , application:activate-previous-tab-bar
    Ctrl Shift . application:activate-next-tab-bar

    下面是codeSnippet插件的快捷键

    键位 作用
    Accel Shift A 作为snippet保存

    下面这份默认的配置文件就当参考了

    {
        // Keyboard Shortcuts
        // @jupyterlab/shortcuts-extension:shortcuts
        // Keyboard shortcut settings.
        // *****************************************
    
        // 
        // Note: To disable a system default shortcut,
        // copy it to User Preferences and add the
        // "disabled" key, for example:
        // {
        //     "command": "application:activate-next-tab",
        //     "keys": [
        //         "Ctrl Shift ]"
        //     ],
        //     "selector": "body",
        //     "disabled": true
        // }
        // 
        // List of commands followed by keyboard shortcuts:
        // completer:invoke
        // completer:select
        // tooltip:dismiss
        // router:tree
        // apputils:activate-command-palette
        // sidebar:switch
        // apputils:print
        // apputils:run-first-enabled
        // editmenu:undo
        // editmenu:redo
        // editmenu:clear-current
        // editmenu:clear-all
        // editmenu:go-to-line
        // filemenu:close-and-cleanup
        // filemenu:create-console
        // filemenu:shutdown
        // filemenu:logout
        // kernelmenu:interrupt
        // kernelmenu:reconnect-to-kernel
        // kernelmenu:restart
        // kernelmenu:restart-and-clear
        // kernelmenu:change
        // kernelmenu:shutdown
        // kernelmenu:shutdownAll
        // runmenu:run
        // runmenu:run-all
        // runmenu:restart-and-run-all
        // viewmenu:line-numbering
        // viewmenu:match-brackets
        // viewmenu:word-wrap
        // tabsmenu:activate-by-id
        // tabsmenu:activate-previously-used-tab
        // editmenu:open
        // filemenu:open
        // kernelmenu:open
        // runmenu:open
        // viewmenu:open
        // settingsmenu:open
        // tabsmenu:open
        // helpmenu:open
        // mainmenu:open-first
        // launcher:create
        // apputils:load-statedb
        // apputils:reset
        // apputils:reset-on-load
        // apputils:change-theme
        // apputils:theme-scrollbars
        // apputils:change-font
        // apputils:incr-font-size
        // apputils:decr-font-size
        // __internal:context-menu-info
        // application:activate-next-tab
        // application:activate-previous-tab
        // application:activate-next-tab-bar
        // application:activate-previous-tab-bar
        // application:close
        // application:close-all
        // application:close-other-tabs
        // application:close-right-tabs
        // application:toggle-left-area
        // application:toggle-right-area
        // application:toggle-presentation-mode
        // application:set-mode
        // application:toggle-mode
        // lsp:completer-about-themes
        // docmanager:clone
        // docmanager:rename
        // docmanager:delete
        // docmanager:show-in-file-browser
        // docmanager:delete-file
        // docmanager:new-untitled
        // docmanager:open
        // docmanager:open-browser-tab
        // docmanager:reload
        // docmanager:restore-checkpoint
        // docmanager:save
        // docmanager:save-all
        // docmanager:save-as
        // docmanager:download
        // docmanager:toggle-autosave
        // statusbar:toggle
        // documentsearch:start
        // documentsearch:startWithReplace
        // documentsearch:highlightNext
        // documentsearch:highlightPrevious
        // jp-codeSnippet-editor:save
        // jp-codeSnippet-editor:open
        // codeSnippet:save-as-snippet
        // variableinspector:open
        // inspector:open
        // htmlviewer:trust-html
        // imageviewer:zoom-in
        // imageviewer:zoom-out
        // imageviewer:reset-image
        // imageviewer:rotate-clockwise
        // imageviewer:rotate-counterclockwise
        // imageviewer:flip-horizontal
        // imageviewer:flip-vertical
        // imageviewer:invert-colors
        // rendermime:handle-local-link
        // extensionmanager:toggle
        // markdownviewer:open
        // markdownviewer:edit
        // settingeditor:open
        // settingeditor:revert
        // settingeditor:save
        // help:about
        // help:open
        // help:launch-classic-notebook
        // terminal:create-new
        // terminal:open
        // terminal:refresh
        // terminal:increase-font
        // terminal:decrease-font
        // terminal:set-theme
        // workspace-ui:save-as
        // workspace-ui:save
        // filebrowser:delete
        // filebrowser:copy
        // filebrowser:cut
        // filebrowser:download
        // filebrowser:duplicate
        // filebrowser:hide-main
        // filebrowser:go-to-path
        // filebrowser:open-path
        // filebrowser:open
        // filebrowser:open-browser-tab
        // filebrowser:copy-download-link
        // filebrowser:paste
        // filebrowser:create-new-directory
        // filebrowser:create-new-file
        // filebrowser:create-new-markdown-file
        // filebrowser:rename
        // filebrowser:copy-path
        // filebrowser:activate
        // filebrowser:shutdown
        // filebrowser:toggle-main
        // filebrowser:create-main-launcher
        // filebrowser:toggle-navigate-to-current-directory
        // filebrowser:toggle-last-modified
        // filebrowser:search
        // filebrowser:share-main
        // notebook:run-cell-and-select-next
        // notebook:run-cell
        // notebook:run-cell-and-insert-below
        // notebook:run-in-console
        // notebook:run-all-cells
        // notebook:run-all-above
        // notebook:run-all-below
        // notebook:render-all-markdown
        // notebook:restart-kernel
        // notebook:close-and-shutdown
        // notebook:trust
        // notebook:export-to-format
        // notebook:restart-clear-output
        // notebook:restart-and-run-to-selected
        // notebook:restart-run-all
        // notebook:clear-all-cell-outputs
        // notebook:clear-cell-output
        // notebook:interrupt-kernel
        // notebook:change-cell-to-code
        // notebook:change-cell-to-markdown
        // notebook:change-cell-to-raw
        // notebook:cut-cell
        // notebook:copy-cell
        // notebook:paste-cell-below
        // notebook:paste-cell-above
        // notebook:paste-and-replace-cell
        // notebook:delete-cell
        // notebook:split-cell-at-cursor
        // notebook:merge-cells
        // notebook:insert-cell-above
        // notebook:insert-cell-below
        // notebook:move-cursor-up
        // notebook:move-cursor-down
        // notebook:extend-marked-cells-above
        // notebook:extend-marked-cells-top
        // notebook:extend-marked-cells-below
        // notebook:extend-marked-cells-bottom
        // notebook:select-all
        // notebook:deselect-all
        // notebook:move-cell-up
        // notebook:move-cell-down
        // notebook:toggle-all-cell-line-numbers
        // notebook:enter-command-mode
        // notebook:enter-edit-mode
        // notebook:undo-cell-action
        // notebook:redo-cell-action
        // notebook:change-kernel
        // notebook:reconnect-to-kernel
        // notebook:create-output-view
        // notebook:create-console
        // notebook:change-cell-to-heading-1
        // notebook:change-cell-to-heading-2
        // notebook:change-cell-to-heading-3
        // notebook:change-cell-to-heading-4
        // notebook:change-cell-to-heading-5
        // notebook:change-cell-to-heading-6
        // notebook:hide-cell-code
        // notebook:show-cell-code
        // notebook:hide-all-cell-code
        // notebook:show-all-cell-code
        // notebook:hide-cell-outputs
        // notebook:show-cell-outputs
        // notebook:hide-all-cell-outputs
        // notebook:show-all-cell-outputs
        // notebook:enable-output-scrolling
        // notebook:disable-output-scrolling
        // notebook:select-last-run-cell
        // notebook:replace-selection
        // notebook:create-new
        // console:open
        // console:create
        // console:clear
        // console:run-unforced
        // console:run-forced
        // console:linebreak
        // console:replace-selection
        // console:interrupt-kernel
        // console:restart-kernel
        // console:close-and-shutdown
        // console:inject
        // console:change-kernel
        // console:interaction-mode
        // completer:invoke-notebook
        // completer:select-notebook
        // logconsole:open
        // logconsole:add-checkpoint
        // logconsole:clear
        // logconsole:set-level
        // tooltip:launch-notebook
        // Collapsible_Headings:Toggle_Collapse
        // Collapsible_Headings:Manually_Update_Collapse_Buttons
        // Collapsible_Headings:Manually_Update_Notebook_Collapse_State
        // Collapsible_Headings:Collapse_All
        // Collapsible_Headings:UnCollapse_All
        // Collapsible_Headings:Add_Header_Above
        // Collapsible_Headings:Add_Header_Below
        // Collapsible_Headings:Uncollapse_Header
        // Collapsible_Headings:Collapse_Header
        // Collapsible_Headings:HandleUp
        // Collapsible_Headings:HandleDown
        // lsp:rename-symbol-notebook
        // lsp:highlight-references-notebook
        // lsp:highlight-type-definition-notebook
        // lsp:show-diagnostics-panel-notebook
        // completer:invoke-console
        // completer:select-console
        // console:toggle-show-all-kernel-activity
        // tooltip:launch-console
        // fileeditor:change-font-size
        // fileeditor:toggle-line-numbers
        // fileeditor:toggle-line-wrap
        // fileeditor:change-tabs
        // fileeditor:toggle-match-brackets
        // fileeditor:toggle-autoclosing-brackets
        // fileeditor:replace-selection
        // fileeditor:create-console
        // fileeditor:run-code
        // fileeditor:run-all
        // fileeditor:markdown-preview
        // fileeditor:create-new
        // fileeditor:create-new-markdown-file
        // fileeditor:undo
        // fileeditor:redo
        // fileeditor:cut
        // fileeditor:copy
        // fileeditor:paste
        // fileeditor:select-all
        // codemirror:change-theme
        // codemirror:change-keymap
        // codemirror:find
        // codemirror:go-to-line
        // codemirror:change-mode
        // completer:invoke-file
        // completer:select-file
        // tooltip:launch-file
        // lsp:rename-symbol-file_editor
        // lsp:highlight-references-file_editor
        // lsp:highlight-type-definition-file_editor
        // lsp:show-diagnostics-panel-file_editor
        // lsp:jump-to-definition-notebook
        // lsp:jump-back-notebook
        // lsp:jump-to-definition-file_editor
        // lsp:jump-back-file_editor
        // debugger:inspect-variable
        // jupyterlab-translation:en
        // jupyterlab_code_formatter:format
        // jupyterlab_code_formatter:format_all
        // jupyterlab_code_formatter:black
        // jupyterlab_code_formatter:autopep8
        // jupyterlab_code_formatter:yapf
        // jupyterlab_code_formatter:isort
        // 
        // List of keyboard shortcuts:
        "shortcuts": [
            {
                "command": "application:activate-next-tab",
                "keys": [
                    "Ctrl Shift ]"
                ],
                "selector": "body"
            },
            {
                "command": "application:activate-next-tab-bar",
                "keys": [
                    "Ctrl Shift ."
                ],
                "selector": "body"
            },
            {
                "command": "application:activate-previous-tab",
                "keys": [
                    "Ctrl Shift ["
                ],
                "selector": "body"
            },
            {
                "command": "application:activate-previous-tab-bar",
                "keys": [
                    "Ctrl Shift ,"
                ],
                "selector": "body"
            },
            {
                "command": "application:close",
                "keys": [
                    "Alt W"
                ],
                "selector": ".jp-Activity"
            },
            {
                "command": "application:toggle-left-area",
                "keys": [
                    "Accel B"
                ],
                "selector": "body"
            },
            {
                "command": "application:toggle-mode",
                "keys": [
                    "Accel Shift D"
                ],
                "selector": "body"
            },
            {
                "command": "application:toggle-presentation-mode",
                "keys": [
                    ""
                ],
                "selector": "body"
            },
            {
                "command": "application:toggle-right-area",
                "keys": [
                    ""
                ],
                "selector": "body"
            },
            {
                "command": "apputils:activate-command-palette",
                "keys": [
                    "Accel Shift C"
                ],
                "selector": "body"
            },
            {
                "command": "apputils:print",
                "keys": [
                    "Accel P"
                ],
                "selector": "body"
            },
            {
                "command": "codeSnippet:save-as-snippet",
                "keys": [
                    "Accel Shift A"
                ],
                "selector": ".jp-Notebook"
            },
            {
                "command": "codeSnippet:save-as-snippet",
                "keys": [
                    "Accel Shift A"
                ],
                "selector": ".jp-FileEditor"
            },
            {
                "command": "Collapsible_Headings:Add_Header_Above",
                "keys": [
                    "Shift A"
                ],
                "selector": ".jp-Notebook:focus"
            },
            {
                "command": "Collapsible_Headings:Add_Header_Below",
                "keys": [
                    "Shift B"
                ],
                "selector": ".jp-Notebook:focus"
            },
            {
                "command": "Collapsible_Headings:Collapse_Header",
                "keys": [
                    "ArrowLeft"
                ],
                "selector": ".jp-Notebook:focus"
            },
            {
                "command": "Collapsible_Headings:Toggle_Collapse",
                "keys": [
                    "Accel Q"
                ],
                "selector": ".jp-Notebook:focus"
            },
            {
                "command": "Collapsible_Headings:Toggle_Collapse",
                "keys": [
                    "T"
                ],
                "selector": ".jp-Notebook:focus"
            },
            {
                "command": "Collapsible_Headings:Uncollapse_Header",
                "keys": [
                    "ArrowRight"
                ],
                "selector": ".jp-Notebook:focus"
            },
            {
                "command": "completer:invoke-console",
                "keys": [
                    "Tab"
                ],
                "selector": ".jp-CodeConsole-promptCell .jp-mod-completer-enabled"
            },
            {
                "command": "completer:invoke-file",
                "keys": [
                    "Tab"
                ],
                "selector": ".jp-FileEditor .jp-mod-completer-enabled"
            },
            {
                "command": "completer:invoke-notebook",
                "keys": [
                    "Tab"
                ],
                "selector": ".jp-Notebook.jp-mod-editMode .jp-mod-completer-enabled"
            },
            {
                "command": "console:linebreak",
                "keys": [
                    "Enter"
                ],
                "selector": ".jp-CodeConsole[data-jp-interaction-mode='notebook'] .jp-CodeConsole-promptCell"
            },
            {
                "command": "console:linebreak",
                "keys": [
                    "Accel Enter"
                ],
                "selector": ".jp-CodeConsole[data-jp-interaction-mode='terminal'] .jp-CodeConsole-promptCell"
            },
            {
                "command": "console:run-forced",
                "keys": [
                    "Shift Enter"
                ],
                "selector": ".jp-CodeConsole[data-jp-interaction-mode='notebook'] .jp-CodeConsole-promptCell"
            },
            {
                "command": "console:run-forced",
                "keys": [
                    "Shift Enter"
                ],
                "selector": ".jp-CodeConsole[data-jp-interaction-mode='terminal'] .jp-CodeConsole-promptCell"
            },
            {
                "command": "console:run-unforced",
                "keys": [
                    "Enter"
                ],
                "selector": ".jp-CodeConsole[data-jp-interaction-mode='terminal'] .jp-CodeConsole-promptCell"
            },
            {
                "command": "debugger:debug-console",
                "keys": [
                    "Accel Shift I"
                ],
                "selector": ".jp-CodeConsole"
            },
            {
                "command": "debugger:debug-file",
                "keys": [
                    "Accel Shift I"
                ],
                "selector": ".jp-FileEditor"
            },
            {
                "command": "debugger:debug-notebook",
                "keys": [
                    "Accel Shift I"
                ],
                "selector": ".jp-Notebook"
            },
            {
                "command": "docmanager:save",
                "keys": [
                    "Accel S"
                ],
                "selector": "body"
            },
            {
                "command": "docmanager:save-as",
                "keys": [
                    "Accel Shift S"
                ],
                "selector": "body"
            },
            {
                "command": "documentsearch:highlightNext",
                "keys": [
                    "Accel G"
                ],
                "selector": ".jp-mod-searchable"
            },
            {
                "command": "documentsearch:highlightPrevious",
                "keys": [
                    "Accel Shift G"
                ],
                "selector": ".jp-mod-searchable"
            },
            {
                "command": "documentsearch:start",
                "keys": [
                    "Accel F"
                ],
                "selector": ".jp-mod-searchable"
            },
            {
                "command": "editmenu:clear-all",
                "keys": [
                    ""
                ],
                "selector": "[data-jp-undoer]"
            },
            {
                "command": "editmenu:clear-current",
                "keys": [
                    ""
                ],
                "selector": "[data-jp-undoer]"
            },
            {
                "command": "editmenu:find",
                "keys": [
                    ""
                ],
                "selector": "[data-jp-undoer]"
            },
            {
                "command": "editmenu:find-and-replace",
                "keys": [
                    ""
                ],
                "selector": "[data-jp-undoer]"
            },
            {
                "command": "editmenu:redo",
                "keys": [
                    "Accel Shift Z"
                ],
                "selector": "[data-jp-undoer]"
            },
            {
                "command": "editmenu:undo",
                "keys": [
                    "Accel Z"
                ],
                "selector": "[data-jp-undoer]"
            },
            {
                "command": "filebrowser:create-main-launcher",
                "keys": [
                    "Accel Shift L"
                ],
                "selector": "body"
            },
            {
                "command": "filebrowser:toggle-main",
                "keys": [
                    "Accel Shift F"
                ],
                "selector": "body"
            },
            {
                "command": "filemenu:close-and-cleanup",
                "keys": [
                    "Ctrl Shift Q"
                ],
                "selector": ".jp-Activity"
            },
            {
                "command": "imageviewer:flip-horizontal",
                "keys": [
                    "H"
                ],
                "selector": ".jp-ImageViewer"
            },
            {
                "command": "imageviewer:flip-vertical",
                "keys": [
                    "V"
                ],
                "selector": ".jp-ImageViewer"
            },
            {
                "command": "imageviewer:invert-colors",
                "keys": [
                    "I"
                ],
                "selector": ".jp-ImageViewer"
            },
            {
                "command": "imageviewer:reset-image",
                "keys": [
                    "0"
                ],
                "selector": ".jp-ImageViewer"
            },
            {
                "command": "imageviewer:rotate-clockwise",
                "keys": [
                    "]"
                ],
                "selector": ".jp-ImageViewer"
            },
            {
                "command": "imageviewer:rotate-counterclockwise",
                "keys": [
                    "["
                ],
                "selector": ".jp-ImageViewer"
            },
            {
                "command": "imageviewer:zoom-in",
                "keys": [
                    "="
                ],
                "selector": ".jp-ImageViewer"
            },
            {
                "command": "imageviewer:zoom-out",
                "keys": [
                    "-"
                ],
                "selector": ".jp-ImageViewer"
            },
            {
                "command": "inspector:open",
                "keys": [
                    "Accel I"
                ],
                "selector": "body"
            },
            {
                "command": "kernelmenu:interrupt",
                "keys": [
                    "I",
                    "I"
                ],
                "selector": "[data-jp-kernel-user]:focus"
            },
            {
                "command": "kernelmenu:restart",
                "keys": [
                    "0",
                    "0"
                ],
                "selector": "[data-jp-kernel-user]:focus"
            },
            {
                "command": "kernelmenu:restart-and-clear",
                "keys": [
                    ""
                ],
                "selector": "[data-jp-kernel-user]:focus"
            },
            {
                "command": "kernelmenu:shutdown",
                "keys": [
                    ""
                ],
                "selector": "[data-jp-kernel-user]:focus"
            },
            {
                "command": "launcher:create",
                "keys": [
                    ""
                ],
                "selector": "body"
            },
            {
                "command": "lsp:jump-back-file_editor",
                "keys": [
                    "Alt O"
                ],
                "selector": ".jp-FileEditor"
            },
            {
                "command": "lsp:jump-back-notebook",
                "keys": [
                    "Alt O"
                ],
                "selector": ".jp-Notebook .jp-CodeCell"
            },
            {
                "command": "lsp:jump-to-definition-file_editor",
                "keys": [
                    "Accel B"
                ],
                "selector": ".jp-FileEditor"
            },
            {
                "command": "lsp:jump-to-definition-notebook",
                "keys": [
                    "Accel B"
                ],
                "selector": ".jp-Notebook .jp-CodeCell"
            },
            {
                "command": "lsp:rename-symbol-file_editor'",
                "keys": [
                    "F2"
                ],
                "selector": ".jp-FileEditor"
            },
            {
                "command": "lsp:rename-symbol-notebook",
                "keys": [
                    "F2"
                ],
                "selector": ".jp-Notebook .jp-CodeCell"
            },
            {
                "command": "notebook:change-cell-to-code",
                "keys": [
                    "Y"
                ],
                "selector": ".jp-Notebook:focus"
            },
            {
                "command": "notebook:change-cell-to-heading-1",
                "keys": [
                    "1"
                ],
                "selector": ".jp-Notebook:focus"
            },
            {
                "command": "notebook:change-cell-to-heading-2",
                "keys": [
                    "2"
                ],
                "selector": ".jp-Notebook:focus"
            },
            {
                "command": "notebook:change-cell-to-heading-3",
                "keys": [
                    "3"
                ],
                "selector": ".jp-Notebook:focus"
            },
            {
                "command": "notebook:change-cell-to-heading-4",
                "keys": [
                    "4"
                ],
                "selector": ".jp-Notebook:focus"
            },
            {
                "command": "notebook:change-cell-to-heading-5",
                "keys": [
                    "5"
                ],
                "selector": ".jp-Notebook:focus"
            },
            {
                "command": "notebook:change-cell-to-heading-6",
                "keys": [
                    "6"
                ],
                "selector": ".jp-Notebook:focus"
            },
            {
                "command": "notebook:change-cell-to-markdown",
                "keys": [
                    "M"
                ],
                "selector": ".jp-Notebook:focus"
            },
            {
                "command": "notebook:change-cell-to-raw",
                "keys": [
                    "R"
                ],
                "selector": ".jp-Notebook:focus"
            },
            {
                "command": "notebook:copy-cell",
                "keys": [
                    "C"
                ],
                "selector": ".jp-Notebook:focus"
            },
            {
                "command": "notebook:cut-cell",
                "keys": [
                    "X"
                ],
                "selector": ".jp-Notebook:focus"
            },
            {
                "command": "notebook:delete-cell",
                "keys": [
                    "D",
                    "D"
                ],
                "selector": ".jp-Notebook:focus"
            },
            {
                "command": "notebook:enter-command-mode",
                "keys": [
                    "Escape"
                ],
                "selector": ".jp-Notebook.jp-mod-editMode"
            },
            {
                "command": "notebook:enter-command-mode",
                "keys": [
                    "Ctrl M"
                ],
                "selector": ".jp-Notebook.jp-mod-editMode"
            },
            {
                "command": "notebook:enter-edit-mode",
                "keys": [
                    "Enter"
                ],
                "selector": ".jp-Notebook:focus"
            },
            {
                "command": "notebook:extend-marked-cells-above",
                "keys": [
                    "Shift ArrowUp"
                ],
                "selector": ".jp-Notebook:focus"
            },
            {
                "command": "notebook:extend-marked-cells-above",
                "keys": [
                    "Shift K"
                ],
                "selector": ".jp-Notebook:focus"
            },
            {
                "command": "notebook:extend-marked-cells-below",
                "keys": [
                    "Shift ArrowDown"
                ],
                "selector": ".jp-Notebook:focus"
            },
            {
                "command": "notebook:extend-marked-cells-below",
                "keys": [
                    "Shift J"
                ],
                "selector": ".jp-Notebook:focus"
            },
            {
                "command": "notebook:extend-marked-cells-bottom",
                "keys": [
                    "Shift End"
                ],
                "selector": ".jp-Notebook:focus"
            },
            {
                "command": "notebook:extend-marked-cells-top",
                "keys": [
                    "Shift Home"
                ],
                "selector": ".jp-Notebook:focus"
            },
            {
                "command": "notebook:insert-cell-above",
                "keys": [
                    "A"
                ],
                "selector": ".jp-Notebook:focus"
            },
            {
                "command": "notebook:insert-cell-below",
                "keys": [
                    "B"
                ],
                "selector": ".jp-Notebook:focus"
            },
            {
                "command": "notebook:merge-cells",
                "keys": [
                    "Shift M"
                ],
                "selector": ".jp-Notebook:focus"
            },
            {
                "command": "notebook:move-cursor-down",
                "keys": [
                    "ArrowDown"
                ],
                "selector": ".jp-Notebook:focus"
            },
            {
                "command": "notebook:move-cursor-down",
                "keys": [
                    "J"
                ],
                "selector": ".jp-Notebook:focus"
            },
            {
                "command": "notebook:move-cursor-up",
                "keys": [
                    "ArrowUp"
                ],
                "selector": ".jp-Notebook:focus"
            },
            {
                "command": "notebook:move-cursor-up",
                "keys": [
                    "K"
                ],
                "selector": ".jp-Notebook:focus"
            },
            {
                "command": "notebook:paste-cell-below",
                "keys": [
                    "V"
                ],
                "selector": ".jp-Notebook:focus"
            },
            {
                "command": "notebook:redo-cell-action",
                "keys": [
                    "Shift Z"
                ],
                "selector": ".jp-Notebook:focus"
            },
            {
                "command": "notebook:run-cell",
                "keys": [
                    "Ctrl Enter"
                ],
                "selector": ".jp-Notebook:focus"
            },
            {
                "command": "notebook:run-cell",
                "keys": [
                    "Ctrl Enter"
                ],
                "selector": ".jp-Notebook.jp-mod-editMode"
            },
            {
                "command": "notebook:run-cell-and-insert-below",
                "keys": [
                    "Alt Enter"
                ],
                "selector": ".jp-Notebook:focus"
            },
            {
                "command": "notebook:run-cell-and-insert-below",
                "keys": [
                    "Alt Enter"
                ],
                "selector": ".jp-Notebook.jp-mod-editMode"
            },
            {
                "command": "notebook:run-cell-and-select-next",
                "keys": [
                    "Shift Enter"
                ],
                "selector": ".jp-Notebook.jp-mod-editMode"
            },
            {
                "command": "notebook:run-in-console",
                "keys": [
                    ""
                ],
                "selector": ".jp-Notebook.jp-mod-editMode"
            },
            {
                "command": "notebook:select-all",
                "keys": [
                    "Accel A"
                ],
                "selector": ".jp-Notebook:focus"
            },
            {
                "command": "notebook:split-cell-at-cursor",
                "keys": [
                    "Ctrl Shift -"
                ],
                "selector": ".jp-Notebook.jp-mod-editMode"
            },
            {
                "command": "notebook:toggle-all-cell-line-numbers",
                "keys": [
                    "Shift L"
                ],
                "selector": ".jp-Notebook:focus"
            },
            {
                "command": "notebook:toggle-cell-line-numbers",
                "keys": [
                    "L"
                ],
                "selector": ".jp-Notebook:focus"
            },
            {
                "command": "notebook:undo-cell-action",
                "keys": [
                    "Z"
                ],
                "selector": ".jp-Notebook:focus"
            },
            {
                "command": "runmenu:restart-and-run-all",
                "keys": [
                    ""
                ],
                "selector": "[data-jp-code-runner]"
            },
            {
                "command": "runmenu:run",
                "keys": [
                    "Shift Enter"
                ],
                "selector": "[data-jp-code-runner]"
            },
            {
                "command": "runmenu:run-all",
                "keys": [
                    ""
                ],
                "selector": "[data-jp-code-runner]"
            },
            {
                "command": "settingeditor:open",
                "keys": [
                    "Accel ,"
                ],
                "selector": "body"
            },
            {
                "command": "settingeditor:save",
                "keys": [
                    "Accel S"
                ],
                "selector": ".jp-SettingEditor"
            },
            {
                "command": "tabsmenu:activate-previously-used-tab",
                "keys": [
                    "Accel Shift '"
                ],
                "selector": "body"
            },
            {
                "command": "tooltip:dismiss",
                "keys": [
                    "Escape"
                ],
                "selector": "body.jp-mod-tooltip .jp-Notebook"
            },
            {
                "command": "tooltip:dismiss",
                "keys": [
                    "Escape"
                ],
                "selector": "body.jp-mod-tooltip .jp-CodeConsole-promptCell"
            },
            {
                "command": "tooltip:launch-console",
                "keys": [
                    "Shift Tab"
                ],
                "selector": ".jp-CodeConsole-promptCell .jp-InputArea-editor:not(.jp-mod-has-primary-selection):not(.jp-mod-in-leading-whitespace)"
            },
            {
                "command": "tooltip:launch-file",
                "keys": [
                    "Shift Tab"
                ],
                "selector": ".jp-FileEditor .jp-CodeMirrorEditor:not(.jp-mod-has-primary-selection):not(.jp-mod-in-leading-whitespace)"
            },
            {
                "command": "tooltip:launch-notebook",
                "keys": [
                    "Shift Tab"
                ],
                "selector": ".jp-Notebook.jp-mod-editMode .jp-InputArea-editor:not(.jp-mod-has-primary-selection):not(.jp-mod-in-leading-whitespace)"
            },
            {
                "command": "viewmenu:line-numbering",
                "keys": [
                    ""
                ],
                "selector": ".jp-Notebook.jp-mod-commandMode"
            },
            {
                "command": "viewmenu:match-brackets",
                "keys": [
                    ""
                ],
                "selector": ".jp-Notebook.jp-mod-commandMode"
            }
        ]
    }
    

    相关文章

      网友评论

          本文标题:jupyterlab 键盘默认快捷键与修改方法

          本文链接:https://www.haomeiwen.com/subject/saqijltx.html