Skip to content

Latest commit

 

History

146 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Status: Concept – Minimal or no implementation has been done yet, or the repository is only intended to be a limited example, demo, or proof-of-concept. CI Status codecov.io Minimum Supported Rust Version MIT License Built With Ratatui

nhmoon is a Rust program for viewing & scrolling through a slice of the calendar in your terminal. Days with new or full moons in NetHack are highlighted, though the code can easily be adjusted to use different highlighting criteria instead.

Screenshot of the program on startup on 2025 February 4:

Screenshot of the program

Installation

In order to install nhmoon, you first need to have Rust and Cargo installed. You can then build the latest version of nhmoon and install it in ~/.cargo/bin by running:

cargo install --git https://github.com/jwodder/nhmoon

Usage

nhmoon [<date>]

Opens a view of a proleptic Gregorian calendar centered on the given date, or centered on the current date if no date is given. Dates are given in the form YYYY-MM-DD using astronomical year numbering. Only dates from 10,000 BC (-9999 in astronomical year numbering) through 9,999 AD are supported.

The calendar highlights dates of NetHack full moons in bold yellow and new moons in bright blue.

Key Bindings

Key Command
k, Up Scroll up one week
j, Down Scroll down one week
w, Page Up Scroll up one page
z, Page Down Scroll down one page
0, Home Jump to today
g Input a date to jump to
? Show help
q, Escape Quit

Pressing g brings up an input prompt for entering a date in the form YYYY-MM-DD. (Enter digits only; the hyphens are filled in for you.) Pressing - or + at the beginning of the prompt changes the sign of the year. Pressing g, q, or Escape at any point while editing dismisses the prompt. After entering eight digits, press Enter to jump to the given date.

About

Scrollable terminal calendar highlighting NetHack's new & full moons

Topics

Resources

Stars

7 stars

Watchers

1 watching

Forks

Used by

Contributors

Languages