Ask Your Question
2

Keyboard shortcuts for Sage Cloud

asked 2013-11-25 11:08:54 +0100

nathancarter gravatar image

Does the Sagemath Cloud have a published list of keyboard shortcuts anywhere? I googled about, but didn't find any. Of course, Shift+Enter obviously works like it does in the regular notebook, but I'm concerned with the features that are unique to the cloud, such as switching among open files or projects, for example, or using any of the buttons on the toolbar closest to the document.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2013-11-26 14:57:48 +0100

William Stein gravatar image

Here's a current list inside the file editor, taken straight from the source code:

    extraKeys =
        "Alt-Enter"    : (editor)   => @action_key(execute: true, advance:false, split:false)
        "Cmd-Enter"    : (editor)   => @action_key(execute: true, advance:false, split:false)
        "Ctrl-Enter"   : (editor)   => @action_key(execute: true, advance:true, split:true)
        "Ctrl-;"       : (editor)   => @action_key(split:true, execute:false, advance:false)
        "Cmd-;"        : (editor)   => @action_key(split:true, execute:false, advance:false)
        "Ctrl-\\"      : (editor)   => @action_key(execute:false, toggle_input:true)
        #"Cmd-x"  : (editor)   => @action_key(execute:false, toggle_input:true)
        "Shift-Ctrl-\\" : (editor)   => @action_key(execute:false, toggle_output:true)
        #"Shift-Cmd-y"  : (editor)   => @action_key(execute:false, toggle_output:true)

        "Ctrl-S"       : (editor)   => @click_save_button()
        "Cmd-S"        : (editor)   => @click_save_button()

        "Ctrl-L"       : (editor)   => @goto_line(editor)
        "Cmd-L"        : (editor)   => @goto_line(editor)

        "Ctrl-I"       : (editor)   => @toggle_split_view(editor)
        "Cmd-I"        : (editor)   => @toggle_split_view(editor)

        "Shift-Ctrl-." : (editor)   => @change_font_size(editor, +1)
        "Shift-Ctrl-," : (editor)   => @change_font_size(editor, -1)
        "Shift-Cmd-."  : (editor)   => @change_font_size(editor, +1)
        "Shift-Cmd-,"  : (editor)   => @change_font_size(editor, -1)

        "Shift-Tab"    : (editor)   => editor.unindent_selection()

        "Ctrl-Space"   : "indentAuto"
        "Ctrl-'"       : "indentAuto"

        "Tab"          : (editor)   => @press_tab_key(editor)
        "Shift-Ctrl-C" : (editor)   => @interrupt_key()
edit flag offensive delete link more

Comments

Why am I not able to see this in a worksheet?

K.Miller gravatar imageK.Miller ( 2014-12-10 20:46:44 +0100 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-11-25 11:08:54 +0100

Seen: 2,668 times

Last updated: Nov 26 '13