cheatsheet do
  title 'Jira Shortcuts'
  docset_file_name 'Jira_Shortcuts'
  keyword 'jira'
  source_url 'http://cheat.kapeli.com'

  category do
    id 'Global Shortcuts'

    entry do
      command 'gd'
      name 'Go to dasboard'
    end

    entry do
      command 'gp'
      name 'Browse to a project'
    end

    entry do
      command 'ga'
      name 'Go to agile'
    end

    entry do
      command 'gi'
      name 'Find issues'
    end

    entry do
      command 'gg'
      name 'Administration quick search'
    end

    entry do
      command '/'
      name 'Quick search'
    end

    entry do
      command 'c'
      name 'Create an issue'
    end

    entry do
      command '.'
      name 'Quick operations'
    end

    entry do
      command '?'
      name 'Open shortcut help'
    end

    entry do
      command 'CTRL+OPTION+S'
      name 'Form submit'
    end
  end

  category do
    id 'Navigating Issues'

    entry do
      command 'o'
      command 'Enter'
      name 'View selected issue'
    end

    entry do
      command 'j'
      name 'Next issue'
    end

    entry do
      command 'k'
      name 'Previous issue'
    end

    entry do
      command '['
      name 'Dock/undock the filters panel'
    end

    entry do
      command 'n'
      name 'Next activity'
    end

    entry do
      command 'p'
      name 'Previous activity'
    end

    entry do
      command 'f'
      name 'Focus search field'
    end

    entry do
      command 'u'
      name 'Search for issues'
    end

    entry do
      command 't'
      name 'Switch filter view'
    end

    entry do
      command 'z'
      name 'Detail view order by'
    end
  end

  category do
    id 'Issue Actions'

    entry do
      command 'e'
      name 'Edit issue'
    end

    entry do
      command 'a'
      name 'Assign issue'
    end

    entry do
      command 'm'
      name 'Comment on issue'
    end

    entry do
      command 'l'
      name 'Edit issue labels'
    end

    entry do
      command ','
      name 'Just to fields for editing'
    end

    entry do
      command 'i'
      name 'Assign to me'
    end
  end

  category do
    id 'Agile Shortcuts'

    entry do
      command '1'
      name 'Plan mode'
    end

    entry do
      command '2'
      name 'Work mode'
    end

    entry do
      command '3'
      name 'Report mode'
    end

    entry do
      command 'z'
      name 'Presentation mode'
    end

    entry do
      command 'n'
      name 'Next column'
    end

    entry do
      command 'p'
      name 'Previous column'
    end

    entry do
      command 't'
      name 'Hide/show detail view'
    end

    entry do
      command '-'
      name 'Toggle all swimlanes'
    end

    entry do
      command 'st'
      name 'Send to top'
    end

    entry do
      command 'sb'
      name 'Send to bottom'
    end
  end

  notes <<-'END'
    * Created by [Mike Tierney](https://github.com/miketierney)
  END
end
