{
    "id": "org_mode_cheat_sheet",
    "name": "Org mode",
    "description": "A cheat sheet for Org mode, software for note-taking and document authoring.",

    "metadata": {
        "sourceName": "Org mode card",
        "sourceUrl" : "http://orgmode.org/orgcard.pdf"
    },

    "aliases": [
        "org-mode", "orgmode"
    ],

    "template_type": "keyboard",

    "section_order": [
        "TODO Items and Checkboxes",
        "Timestamps",
        "Clocking Time",
        "Tables",
        "Tags",
        "Agenda Views",
        "Exporting and Publishing",
        "Working with Code (Babel)",
        "Capture - Refile - Archiving",
        "Filtering and Sparse Trees",
        "Links",
        "Structure Editing"
    ],

    "sections": {
        "Timestamps": [
            {
                "key": "[C-c] [.]",
                "val": "prompt for date and insert timestamp"
            },
            {
                "key": "[C-u] [C-c] [.]",
                "val": "like C-c . but insert date and time format"
            },
            {
                "key": "[C-c] [!]",
                "val": "like C-c . but make stamp inactive"
            },
            {
                "key": "[C-c] [C-d]",
                "val": "insert DEADLINE timestamp"
            },
            {
                "key": "[C-c] [C-s]",
                "val": "insert SCHEDULED timestamp"
            },
            {
                "key": "[C-c] [/] [d]",
                "val": "create sparse tree with all deadlines due"
            },
            {
                "key": "[C-c] [C-y]",
                "val": "the time between 2 dates in a time range"
            },
            {
                "key": "S-RIGHT/LEFT",
                "val": "change timestamp at cursor ±1 day"
            },
            {
                "key": "S-UP/DOWN",
                "val": "change year/month/day at cursor by ±1"
            },
            {
                "key": "[C-c] [>]",
                "val": "access the calendar for the current date"
            },
            {
                "key": "[C-c] [<]",
                "val": "insert timestamp matching date in calendar"
            },
            {
                "key": "[C-c] [C-o]",
                "val": "access agenda for current date"
            },
            {
                "key": "mouse-1/RET",
                "val": "select date while prompted"
            },
            {
                "key": "[C-c] [C-x] [C-t]",
                "val": "toggle custom format display for dates/times"
            }
        ],
        "Clocking Time": [
            {
                "key": "[C-c] [C-x] [C-i]",
                "val": "start clock on current item"
            },
            {
                "key": "[C-c] [C-x] [C-o/x]",
                "val": "stop/cancel clock on current item"
            },
            {
                "key": "[C-c] [C-x] [C-d]",
                "val": "display total subtree times"
            },
            {
                "key": "[C-c] [C-c]",
                "val": "remove displayed times"
            },
            {
                "key": "[C-c] [C-x] [C-r]",
                "val": "insert/update table with clock report"
            }
        ],
        "TODO Items and Checkboxes": [
            {
                "key": "[C-c] [C-t]",
                "val": "rotate the state of the current item"
            },
            {
                "key": "S-LEFT/RIGHT",
                "val": "select next/previous state"
            },
            {
                "key": "C-S-LEFT/RIGHT",
                "val": "select next/previous set"
            },
            {
                "key": "[C-c] [C-x] [o]",
                "val": "toggle ORDERED property"
            },
            {
                "key": "[C-c] [C-v]",
                "val": "view TODO items in sparse tree"
            },
            {
                "key": "[C-3] [C-c] [C-v]",
                "val": "view 3rd TODO keyword's sparse tree"
            },
            {
                "key": "[C-c] [,] [ABC]",
                "val": "set the priority of the current item"
            },
            {
                "key": "[C-c] [,] [SPC]",
                "val": "remove priority cookie from current item"
            },
            {
                "key": "S-UP/DOWN",
                "val": "raise/lower priority of current item"
            },
            {
                "key": "M-S-RET",
                "val": "insert new checkbox item in plain list"
            },
            {
                "key": "[C-c] [C-x] [C-b]",
                "val": "toggle checkbox(es) in region/entry/at point"
            },
            {
                "key": "[C-c] [C-c]",
                "val": "toggle checkbox at point"
            },
            {
                "key": "[C-c] [#]",
                "val": "update checkbox statistics (C-u: whole file)"
            }
        ],
        "Tags": [
            {
                "key": "[C-c] [C-q]",
                "val": "set tags for the current heading"
            },
            {
                "key": "[C-u] [C-c] [C-q]",
                "val": "realign tags in all headings"
            },
            {
                "key": "[C-c] \\",
                "val": "create sparse tree with matching tags"
            },
            {
                "key": "[C-c] [C-o]",
                "val": "globally (agenda) match tags at cursor"
            }
        ],
        "Agenda Views": [
            {
                "key": "[C-c] [",
                "val": "add/move current file to front agenda"
            },
            {
                "key": "[C-c] ]",
                "val": "remove current file from your agenda"
            },
            {
                "key": "[C-c] [']",
                "val": "cycle through agenda file list"
            },
            {
                "key": "[C-c] [C-x] [</>]",
                "val": "set/remove restriction lock"
            },
            {
                "key": "[C-c] [a] [a]",
                "val": "compile agenda for the current week"
            },
            {
                "key": "[C-c] [a] [t]",
                "val": "compile global TODO list"
            },
            {
                "key": "[C-c] [a] [T]",
                "val": "compile TODO list for specific keyword"
            },
            {
                "key": "[C-c] [a] [m]",
                "val": "match tags, TODO keywords, properties"
            },
            {
                "key": "[C-c] [a] [M]",
                "val": "match only TODO entries"
            },
            {
                "key": "[C-c] [a] [#]",
                "val": "find stuck projects"
            },
            {
                "key": "[C-c] [a] [L]",
                "val": "show timeline of current org file"
            },
            {
                "key": "[C-c] [a] [C]",
                "val": "configure custom commands"
            },
            {
                "key": "[C-c] [C-o]",
                "val": "agenda for date at cursor"
            }
        ],
        "Exporting and Publishing": [
            {
                "key": "[C-c] [C-e]",
                "val": "export/publish dispatcher"
            },
            {
                "key": "[C-c] [C-e] [v]",
                "val": "export visible part only"
            },
            {
                "key": "[C-c] [C-e] [t]",
                "val": "insert template of export options"
            },
            {
                "key": "[C-c] [:]",
                "val": "toggle fixed width for entry of region"
            },
            {
                "key": "[C-c] [C-x] \\",
                "val": "toggle pretty display of scripts, entities"
            },
            {
                "key": "[C-c] [;]",
                "val": "toggle COMMENT keyword on entry"
            }
        ],
        "Working with Code (Babel)": [
            {
                "key": "[C-c] [C-c]",
                "val": "execute code block at point"
            },
            {
                "key": "[C-c] [C-o]",
                "val": "open results of code block at point"
            },
            {
                "key": "[C-c] [C-v] [c]",
                "val": "check code block at point for errors"
            },
            {
                "key": "[C-c] [C-v] [j]",
                "val": "insert a header argument with completion"
            },
            {
                "key": "[C-c] [C-v] [v]",
                "val": "view expanded body of code block at point"
            },
            {
                "key": "[C-c] [C-v] [I]",
                "val": "view information about code block at point"
            },
            {
                "key": "[C-c] [C-v] [g]",
                "val": "go to named code block"
            },
            {
                "key": "[C-c] [C-v] [r]",
                "val": "go to named result"
            },
            {
                "key": "[C-c] [C-v] [u]",
                "val": "go to the head of the current code block"
            },
            {
                "key": "[C-c] [C-v] [n]",
                "val": "go to the next code block"
            },
            {
                "key": "[C-c] [C-v] [p]",
                "val": "go to the previous code block"
            },
            {
                "key": "[C-c] [C-v] [d]",
                "val": "demarcate a code block"
            },
            {
                "key": "[C-c] [C-v] [x]",
                "val": "execute the next key sequence in the code edit buffer"
            },
            {
                "key": "[C-c] [C-v] [b]",
                "val": "execute all code blocks in current buffer"
            },
            {
                "key": "[C-c] [C-v] [s]",
                "val": "execute all code block in current subtree"
            },
            {
                "key": "[C-c] [C-v] [t]",
                "val": "tangle code blocks in current file"
            },
            {
                "key": "[C-c] [C-v] [f]",
                "val": "tangle code blocks in supplied file"
            },
            {
                "key": "[C-c] [C-v] [i]",
                "val": "ingest all code blocks in supplied file into the Library of Babel"
            },
            {
                "key": "[C-c] [C-v] [z]",
                "val": "switch to the session of the current code block"
            },
            {
                "key": "[C-c] [C-v] [l]",
                "val": "load the current code block into a session"
            },
            {
                "key": "[C-c] [C-v] [a]",
                "val": "view sha1 hash of the current code block"
            }
        ],
        "Capture - Refile - Archiving": [
            {
                "key": "[C-c] [c]",
                "val": "capture a new item (C-u C-u = goto last)"
            },
            {
                "key": "[C-c] [C-w]",
                "val": "refile subtree (C-u C-u = goto last)"
            },
            {
                "key": "[C-c] [C-x] [C-a]",
                "val": "archive subtree using the default command"
            },
            {
                "key": "[C-c] [C-x] [C-s]",
                "val": "move subtree to archive file"
            },
            {
                "key": "[C-c] [C-x] [a/A]",
                "val": "toggle ARCHIVE tag / to ARCHIVE sibling"
            },
            {
                "key": "C-TAB",
                "val": "force cycling of an ARCHIVEd tree"
            }
        ],
        "Filtering and Sparse Trees": [
            {
                "key": "[C-c] [/]",
                "val": "construct a sparse tree by various criteria"
            },
            {
                "key": "[C-c] [/] [t/T]",
                "val": "view TODO's in sparse tree"
            },
            {
                "key": "[C-c] [a] [t]",
                "val": "global TODO list in agenda mode"
            },
            {
                "key": "[C-c] [a] [L]",
                "val": "time sorted of current org file"
            }
        ],
        "Tables": [
            {
                "key": "[C-c] [|]",
                "val": "convert region to table"
            }
        ],
        "Links": [
            {
                "key": "[C-c] [l]",
                "val": "globally store link to the current location"
            },
            {
                "key": "[C-c] [C-l]",
                "val": "insert a link (TAB completes stored links)"
            },
            {
                "key": "[C-u] [C-c] [C-l]",
                "val": "insert file link with the file name completion"
            },
            {
                "key": "[C-c] [C-l]",
                "val": "edit (also hidden part of) link at point"
            },
            {
                "key": "[C-c] [C-o]",
                "val": "open file link in emacs"
            },
            {
                "key": "[C-u] [C-c] [C-o]",
                "val": "force open file link in emacs/other window"
            },
            {
                "key": "mouse-1/2",
                "val": "open link at point"
            },
            {
                "key": "mouse-3",
                "val": "force open link in emacs/other window"
            },
            {
                "key": "[C-c] [%]",
                "val": "record a position in mark ring"
            },
            {
                "key": "[C-c] [&]",
                "val": "jump back to last followed link(s)"
            },
            {
                "key": "[C-c] [C-x] [C-n]",
                "val": "find next link"
            },
            {
                "key": "[C-c] [C-x] [C-p]",
                "val": "find previous link"
            },
            {
                "key": "[C-c] [']",
                "val": "edit code snippet of file at point"
            },
            {
                "key": "[C-c] [C-x] [C-v]",
                "val": "toggle inline display of linked images"
            }
        ],
        "Structure Editing": [
            {
                "key": "M-RET",
                "val": "insert new heading/item at current level"
            },
            {
                "key": "C-RET",
                "val": "insert new heading after subtree"
            },
            {
                "key": "M-S-RET",
                "val": "insert new TODO entry/checkbox item"
            },
            {
                "key": "C-S-RET",
                "val": "insert TODO entry/checkbox after subtree"
            },
            {
                "key": "[C-c] [-]",
                "val": "turn (head)line into item, cycle item type"
            },
            {
                "key": "[C-c] [*]",
                "val": "turn item/line into headline"
            },
            {
                "key": "M-LEFT/RIGHT",
                "val": "promote/demote heading"
            },
            {
                "key": "M-S-UP/DOWN",
                "val": "move subtree/list item up/down"
            },
            {
                "key": "[C-c] [^]",
                "val": "sort subtree/region/plain-list"
            },
            {
                "key": "[C-c] [C-x] [c]",
                "val": "clone a subtree"
            },
            {
                "key": "[C-c] [C-x] [v]",
                "val": "copy visible text"
            },
            {
                "key": "[C-c] [C-x] [C-w/M-w]",
                "val": "kill/copy subtree"
            },
            {
                "key": "[C-c] [C-x] [C-y] or [C-y]",
                "val": "yank subtree"
            },
            {
                "key": "[C-x] [n] [s/w]",
                "val": "narrow buffer to subtree / widen"
            }
        ]
    }
}
