cheatsheet do
  title 'Sketch'
  docset_file_name 'Sketch'
  keyword 'sketch'
  source_url 'http://cheat.kapeli.com'

  category do
    id 'Insert'

    entry do
      name 'New artboard'
      command 'A'
    end

    entry do
      name 'Slice'
      command 'S'
    end

    entry do
      name 'Rectangle'
      command 'R'
    end

    entry do
      name 'Rounded rectangle'
      command 'U'
    end

    entry do
      name 'Oval'
      command 'O'
    end

    entry do
      name 'Line'
      command 'L'
    end

    entry do
      name 'Vector point'
      command 'V'
    end

    entry do
      name 'Pencil'
      command 'P'
    end

    entry do
      name 'Text'
      command 'T'
    end
  end

  category do
    id 'Type'

    entry do
      name 'Bold'
      command 'CMD+B'
    end

    entry do
      name 'Italic'
      command 'CMD+I'
    end

    entry do
      name 'Underline'
      command 'CMD+U'
    end

    entry do
      name 'Increase font size'
      command 'CMD+OPTION+(+)'
    end

    entry do
      name 'Decrease font size'
      command 'CMD+OPTION+(-)'
    end

    entry do
      name 'Increase character spacing'
      command 'OPTION+CTRL+L'
    end

    entry do
      name 'Decrease character spacing'
      command 'OPTION+CTRL+T'
    end

    entry do
      name 'Change font'
      command 'CMD+T'
    end

    entry do
      name 'Convert text to outlines'
      command 'CMD+SHIFT+O'
    end

    entry do
      name 'Align left'
      command 'CMD+SHIFT+{'
    end

    entry do
      name 'Align center'
      command 'CMD+SHIFT+|'
    end

    entry do
      name 'Align right'
      command 'CMD+SHIFT+}'
    end

    entry do
      name 'Special characters'
      command 'CMD+CTRL+Space'
    end
  end

  category do
    id 'Canvas View'

    entry do
      name 'Zoom in'
      command 'CMD+(+)'
    end

    entry do
      name 'Zoom out'
      command 'CMD+(-)'
    end

    entry do
      name 'Actual size'
      command 'CMD+0'
    end

    entry do
      name 'Center canvas'
      command 'CMD+1'
    end

    entry do
      name 'Zoom selection'
      command 'CMD+2'
    end

    entry do
      name 'Center selection'
      command 'CMD+3'
    end

    entry do
      name 'Temporary zoom to actual size'
      command '§'
    end

    entry do
      name 'Focus on first input field'
      command 'OPTION+Tab'
    end

    entry do
      name 'Toggle rulers'
      command 'CTRL+R'
    end

    entry do
      name 'Toggle grid'
      command 'CTRL+G'
    end

    entry do
      name 'Toggle layer guides'
      command 'CTRL+L'
    end

    entry do
      name 'Toggle pixels'
      command 'CTRL+P'
    end

    entry do
      name 'Toggle selection handles'
      command 'CTRL+H'
    end

    entry do
      name 'Toggle pixel grid'
      command 'CTRL+X'
    end

    entry do
      name 'Move canvas'
      command 'Space+Drag'
    end
  end

  category do
    id 'Window'

    entry do
      name 'Toggle between documents'
      command 'CMD+~'
    end

    entry do
      name 'Toggle layers list'
      command 'CMD+OPTION+1'
    end

    entry do
      name 'Toggle inpector'
      command 'CMD+OPTION+2'
    end

    entry do
      name 'Toggle layers, inspector'
      command 'CMD+OPTION+3'
    end

    entry do
      name 'Toggle toolbar'
      command 'CMD+OPTION+T'
    end

    entry do
      name 'Presentation mode'
      command 'CMD+.'
    end

    entry do
      name 'Fullscreen'
      command 'CMD+CTRL+F'
    end
  end

  category do
    id 'Editing Shapes'

    entry do
      name 'Keep current selection'
      command 'CMD+OPTION'
    end

    entry do
      name 'Use as mask span'
      command 'CMD+CTRL+M'
      notes 'Works for layers and groups.'
    end

    entry do
      name 'Union'
      command 'CMD+OPTION+U'
    end

    entry do
      name 'Substract'
      command 'CMD+OPTION+S'
    end

    entry do
      name 'Intersect'
      command 'CMD+OPTION+I'
    end

    entry do
      name 'Difference'
      command 'CMD+OPTION+X'
    end

    entry do
      name 'Change object size'
      command 'CMD+Arrows'
    end

    entry do
      name 'Change units by 10'
      command 'CMD+SHIFT+Arrows'
    end

    entry do
      name 'Change vector point style'
      command '1, 2, 3, 4'
    end
  end

  category do
    id 'Editing Layers'

    entry do
      name 'Show distance to other layers'
      command 'OPTION'
    end

    entry do
      name 'Show distance to other layers inside group'
      command 'CMD+OPTION'
    end

    entry do
      name 'Duplicate'
      command 'OPTION+Drag'
      notes 'Repeat with `CMD+D`.'
    end

    entry do
      name 'Copy style'
      command 'CMD+OPTION+C'
    end

    entry do
      name 'Paste style'
      command 'CMD+OPTION+V'
    end

    entry do
      name 'Color picker'
      command 'CTRL+C'
    end

    entry do
      name 'Transform'
      command 'CMD+T'
    end

    entry do
      name 'Rotate'
      command 'CMD+SHIFT+R'
    end

    entry do
      name 'Toggle fill'
      command 'F'
    end

    entry do
      name 'Toggle border'
      command 'B'
    end
  end

  category do
    id 'Arranging Layers, Groups and Artboards'

    entry do
      name 'Bring forward'
      command 'CMD+OPTION+Arrow Up'
    end

    entry do
      name 'Bring to front'
      command 'CMD+CTRL+OPTION+Arrow Up'
    end

    entry do
      name 'Send backward'
      command 'CMD+OPTION+Arrow Down'
    end

    entry do
      name 'Send to back'
      command 'CMD+CTRL+OPTION+Arrow Down'
    end

    entry do
      name 'Hide'
      command 'CMD+SHIFT+H'
    end

    entry do
      name 'Lock'
      command 'CMD+SHIFT+L'
    end

    entry do
      name 'Rename'
      command 'CMD+R'
    end

    entry do
      name 'Group layers'
      command 'CMD+G'
    end

    entry do
      name 'Ungroup layers'
      command 'CMD+SHIFT+G'
    end

    entry do
      name 'Select above layer'
      command 'SHIFT+Tab'
    end

    entry do
      name 'Select layer below'
      command 'Tab'
    end

    entry do
      name 'Select parent artboard'
      command 'Esc'
    end

    entry do
      name 'Find layer by name'
      command 'CMD+F'
    end

    entry do
      name 'Select above page'
      command 'Fn+Arrow Up'
    end

    entry do
      name 'Select page below'
      command 'Fn+Arrow Down'
    end
  end

  notes <<-'END'
    * Based on [sketchshortcuts.com](http://sketchshortcuts.com) by [Robert van Klinken](https://twitter.com/robertvklinken) & [Jeffrey de Groot](https://twitter.com/jeffreydgroot).
    * Converted by [Victor Wang](http://wjp2013.github.io/).
  END
end
