cheatsheet do
  title 'Xcode'
  docset_file_name 'Xcode_Shortcuts'
  keyword 'xcode'
  source_url 'http://cheat.kapeli.com'

  category do
    id 'Editor Navigation'
    entry do
      command 'CMD+SHIFT+O'
      name 'Open quickly'
    end
    entry do
      command 'CMD+J'
      name 'Move focus to editor'
    end
    entry do
      command 'CMD+SHIFT+J'
      name 'Select current file in project navigator'
    end
    entry do
      command 'CTRL+`'
      name 'Move focus to next editor'
    end
    entry do
      command 'CMD+SHIFT+{`'
      name 'Select previous tab'
    end
    entry do
      command 'CMD+SHIFT+}`'
      name 'Select next tab'
    end
    entry do
      command 'CMD+CTRL+Arrow Up'
      name 'Next counterpart'
    end
    entry do
      command 'CMD+CTRL+Arrow Down'
      name 'Previous counterpart'
    end
    entry do
      command 'CMD+OPTION+SHIFT+Z'
      name 'View counterpart in assistant editor'
    end
    entry do
      command 'CMD+CTRL+Arrow Left'
      name 'Previous recent file'
    end
    entry do
      command 'CMD+CTRL+Arrow Right'
      name 'Next recent file'
    end
    entry do
      command 'CMD+Click'
      name 'Definition of symbol'
    end
    entry do
      command 'CMD+L'
      name 'Go to line'
    end
    entry do
      command 'CMD+OPTION+Arrow Left'
      name 'Fold section'
    end
    entry do
      command 'CMD+OPTION+Arrow Right'
      name 'Unfold section'
    end
    entry do
      command 'CTRL+1'
      name 'Show related items'
    end
    entry do
      command 'CTRL+2'
      name 'Show previous history'
    end
    entry do
      command 'CTRL+3'
      name 'Show next history'
    end
    entry do
      command 'CTRL+4'
      name 'Show top level items'
    end
    entry do
      command 'CTRL+5'
      name 'Show group files'
    end
    entry do
      command 'CTRL+6'
      name 'Show document items'
    end
  end

  category do
    id 'Editing'
    entry do
      command 'CMD+OPTION+Return'
      name 'Show assistant editor'
    end
    entry do
      command 'CMD+Return'
      name 'Hide assistant editor'
    end
    entry do
      command 'CTRL+Space'
      name 'Toggle completion'
    end
    entry do
      command 'Esc'
      name 'Toggle auto completion'
    end
    entry do
      command 'CMD+CTRL+E'
      name 'Edit all in scope'
    end
    entry do
      command 'CMD+]'
      name 'Increase indentation'
    end
    entry do
      command 'CMD+['
      name 'Decrease indentation'
    end
    entry do
      command 'CTRL+I'
      name 'Fix indentation'
    end
    entry do
      command 'CMD+/'
      name 'Comment or uncomment'
    end
    entry do
      command 'CMD+OPTION+['
      name 'Move line up'
    end
    entry do
      command 'CMD+OPTION+]'
      name 'Move line down'
    end
  end


  category do
    id 'Search'
    entry do
      command 'CMD+F'
      name 'Find in file'
    end
    entry do
      command 'CMD+OPTION+F'
      name 'Find and replace in file'
    end
    entry do
      command 'CMD+SHIFT+F'
      name 'Find in project'
    end
    entry do
      command 'CMD+OPTION+SHIFT+F'
      name 'Find and replace in project'
    end
  end


  category do
    id 'Navigator'
    entry do
      command 'CMD+0'
      name 'Show or hide navigator'
    end
    entry do
      command 'CMD+1'
      name 'Project navigator'
    end
    entry do
      command 'CMD+2'
      name 'Symbol navigator'
    end
    entry do
      command 'CMD+3'
      name 'Find navigator'
    end
    entry do
      command 'CMD+4'
      name 'Issue navigator'
    end
    entry do
      command 'CMD+5'
      name 'Test navigator'
    end
    entry do
      command 'CMD+6'
      name 'Debug navigator'
    end
    entry do
      command 'CMD+7'
      name 'Breakpoint navigator'
    end
    entry do
      command 'CMD+8'
      name 'Log navigator'
    end
    entry do
      command 'OPTION+Click'
      name 'Open in assistant navigator'
    end
    entry do
      command 'OPTION+SHIFT+Click'
      name 'Decide where to open'
    end
  end

  category do
    id 'Debugging'
    entry do
      command 'CMD+SHIFT+Y'
      name 'Toggle debug area'
    end
    entry do
      command 'CMD+\''
      name 'Next issue'
    end
    entry do
      command 'CMD+"'
      name 'Previous issue'
    end
    entry do
      command 'CMD+\\'
      name 'Add breakpoint'
    end
    entry do
      command 'CMD+Y'
      name 'Toggle breakpoints'
    end
    entry do
      command 'CMD+K'
      name 'Clear console'
    end
  end


  category do
    id 'Documentation'
    entry do
      command 'CMD+OPTION+?'
      name 'Show documentation'
    end
    entry do
      command 'OPTION+Click'
      command 'CMD+CTRL+?'
      name 'Show quick help for symbol'
    end
    entry do
      command 'OPTION+Double Click'
      command 'CMD+CTRL+OPTION+/'
      name 'Show documentation for symbol'
    end
  end


  category do
    id 'Build & Run'
    entry do
      command 'CMD+B'
      name 'Build'
    end
    entry do
      command 'CMD+R'
      name 'Run'
    end
    entry do
      command 'CMD+.'
      name 'Stop'
    end
    entry do
      command 'CMD+SHIFT+B'
      name 'Analyze'
    end
    entry do
      command 'CMD+I'
      name 'Profile'
    end
    entry do
      command 'CMD+U'
      name 'Test'
    end
    entry do
      command 'CMD+SHIFT+K'
      name 'Clean'
    end
  end


  category do
    id 'Utilities'
    entry do
      command 'CMD+OPTION+0'
      name 'Show or hide'
    end
    entry do
      command 'CMD+OPTION+1'
      name 'File inspector'
    end
    entry do
      command 'CMD+OPTION+2'
      name 'Quick help inspector'
    end
    entry do
      command 'CMD+OPTION+3'
      name 'Identity inspector'
    end
    entry do
      command 'CMD+OPTION+4'
      name 'Attributes inspector'
    end
    entry do
      command 'CMD+OPTION+5'
      name 'Size inspector'
    end
    entry do
      command 'CMD+OPTION+6'
      name 'Connections inspector'
    end
    entry do
      command 'CMD+CTRL+OPTION+1'
      name 'File template library'
    end
    entry do
      command 'CMD+CTRL+OPTION+2'
      name 'Code snippet library'
    end
    entry do
      command 'CMD+CTRL+OPTION+3'
      name 'Object library'
    end
    entry do
      command 'CMD+CTRL+OPTION+4'
      name 'Media library'
    end
  end
end
