Skip to content

Issue Layout

You can define how an Issue section displays items in its table by setting options for the available columns. You can define a column’s width, whether it grows to fill available space, and whether the column should be visible at all.

Note that if the length of a column’s text exceeds the defined column width, the view truncates the column’s text to two characters shorter than the column’s width. For example, if the width is 6, gh-dash displays as gh-d.

Column headings have their color defined by the theme.colors.text.primary setting.

By default, Issue views display the following columns in the order they’re listed:

  1. updatedAt with a width of 7 columns.
  2. state with a width of 3 columns.
  3. repo with a width of 15 columns.
  4. title, set to grow to fill available space.
  5. creator with a width of 10 columns.
  6. comments with a width of 3 columns.
  7. reactions with a width of 3 columns.
title:
grow: true
assignees:
hidden: true
width: 20
creator:
width: 10
repo:
width: 15
updatedAt:
width: 7
PropertyTypeDefault
updatedAtyaml
width: 7

This column displays how recently the Issue was updated. The entry shows the time elapsed since the last update, like 1h or 3d.

The heading for this column is

PropertyTypeDefault
stateyaml
width: 3

This column displays the issue’s state. When an issue is open, the column displays the icon with the color set to #42a0fa. When an issue is closed, the column displays the icon with the color set to theme.colors.text.faint.

The heading for this column is .

PropertyTypeDefault
repoyaml
width: 15

This column displays the name of the repository the Issue is filed in. The entry shows the name of the repository without the owner, like gh-dash for the https://github.com/dlvhdr/gh-dash repository.

The heading for this column is

PropertyTypeDefault
titleyaml
grow: true

This column displays the Issue’s number followed by its title. This column is always displayed unless you set hidden to false. By default, it grows to fill the available space in the terminal after accounting for other column widths.

The heading for this column is Title.

The theme.colors.text.primary setting defines the issue number’s color.

PropertyTypeDefault
creatoryaml
width: 10

This column displays the username for the person who created the Issue.

The heading for this column is Creator.

PropertyTypeDefault
creatorIconyaml
hidden: true

This setting affects display of the role icon for the person who created the Issue.

PropertyTypeDefault
assigneesyaml
width: 20
hidden: true

This column displays the usernames for the people assigned to the Issue.

The heading for this column is Assignees.

PropertyTypeDefault
commentsyaml
width: 3

This column displays the count of comments on the issue as an integer.

The heading for this column is

PropertyTypeDefault
reactionsyaml
width: 3

This column displays the count of all reactions on the issue as an integer.

The heading for this column is