--- title: "Hacker News" date: 2018-08-02T16:36:08-04:00 draft: false --- Added in `v0.1.2`. Displays stories from Hacker News. hackernews screenshot ## Source Code ```bash wtf/hackernews/ ``` ## Keyboard Commands Key: `[return]`
Action: Open the selected story in the browser. Key: `j`
Action: Select the next story in the list. Key: `k`
Action: Select the previous story in the list. Key: `r`
Action: Refresh the data. Key: `↓`
Action: Select the next story in the list. Key: `↑`
Action: Select the previous story in the list. ## Configuration ```yaml hackernews: enabled: true numberOfStories: 10 position: top: 4 left: 1 height: 1 width: 2 storyType: top refreshInterval: 900 ``` ### Attributes `enabled`
Determines whether or not this module is executed and if its data displayed onscreen.
Values: `true`, `false`. `numberOfStories`
_Optional_
Defines number of stories to be displayed. Default is `10`
`position`
Defines where in the grid this module's widget will be displayed.
`storyType`
_Optional_
Values: `new`, `top`, `job`, `ask` `refreshInterval`
How often, in seconds, this module will update its data.
Values: A positive integer, `0..n`.