lunarphase

package
v0.0.0-...-9c5270f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2023 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Settings

type Settings struct {
	*cfg.Common
	// contains filtered or unexported fields
}

func NewSettingsFromYAML

func NewSettingsFromYAML(name string, ymlConfig *config.Config, globalConfig *config.Config) *Settings

type Widget

type Widget struct {
	view.ScrollableWidget
	// contains filtered or unexported fields
}

func NewWidget

func NewWidget(tviewApp *tview.Application, redrawChan chan bool, pages *tview.Pages, settings *Settings) *Widget

func (*Widget) DisableWidget

func (widget *Widget) DisableWidget()

Disable/Enable the widget (Ctrl-D)

func (*Widget) NextDay

func (widget *Widget) NextDay()

NextDay shows the next day's lunar phase (KeyRight / 'n')

func (*Widget) NextWeek

func (widget *Widget) NextWeek()

NextWeek shows the next week's lunar phase (KeyUp / 'N')

func (*Widget) OpenMoonPhase

func (widget *Widget) OpenMoonPhase()

Open nineplanets.org in a browser (Enter / 'o')

func (*Widget) PrevDay

func (widget *Widget) PrevDay()

PrevDay shows the previous day's lunar phase (KeyLeft / 'p')

func (*Widget) PrevWeek

func (widget *Widget) PrevWeek()

PrevWeek shows the previous week's lunar phase (KeyDown / 'P')

func (*Widget) Refresh

func (widget *Widget) Refresh()

func (*Widget) RefreshTitle

func (widget *Widget) RefreshTitle()

func (*Widget) Today

func (widget *Widget) Today()

Today shows the current day's lunar phase ('t')

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL