Skip to content

ichernyshovvv/read-duration.el

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

read-duration

This package provides a function that reads a human-readable time duration from a user and returns the value in seconds, minutes, hours or any other time unit defined in the read-duration-return-units custom variable. The function shows available input characters (available time unit multipliers (see read-duration-multipliers) and digits) in the prompt and checks the input while the user is typing. If the user mistypes, the function calls the `ding' function.

Usage

(read-duration "Duration:")

Installation

(unless (package-installed-p 'read-duration)
  (package-vc-install
   '(read-duration
     :vc-backend Git
     :url "https://github.com/ichernyshovvv/read-duration.el"
     :branch "master")))

About

Time duration reader for Emacs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages