1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00
wtf/_site/content/posts/modules/hackernews.md
Anand Sudhir Prayaga 5c529270eb Add hackernews module
2018-08-03 17:24:55 +02:00

1.8 KiB

title, date, draft
title date draft
Hacker News 2018-08-02T16:36:08-04:00 false

Added in v0.1.2.

Displays stories from Hacker News.

hackernews screenshot

Source Code

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

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 <br / Defines type of stories to be displayed. Default is top stories
Values: new, top, job, ask

refreshInterval
How often, in seconds, this module will update its data.
Values: A positive integer, 0..n.