aboutsummaryrefslogtreecommitdiffstats
path: root/util/human
Commit message (Expand)AuthorAgeFilesLines
* util.human.io: Fix stray 'stty' error by only querying width of real ttysKim Alvefur2023-07-161-0/+4
* util.human.io: Fix pattern in parse_duration() to cover all used lettersKim Alvefur2023-07-161-2/+2
* util.human.io: Fix column width miscalculationKim Alvefur2023-04-091-3/+0
* util.human.io: Fix error with ellipsis to negative lengthKim Alvefur2023-04-091-1/+1
* util.human.io: Add parse_duration() method to parse a duration stringMatthew Wild2023-04-071-0/+12
* util.human.io: Coerce $COLUMNS to numberKim Alvefur2023-04-071-1/+1
* util.human.io: table: don't read $COLUMNS directly, just use term_width()Matthew Wild2023-04-071-1/+1
* util.human.io: table: Return determined width as a second resultMatthew Wild2023-04-071-1/+1
* util.human.io: Prefer using the $COLUMNS environment variable if set (by read...Kim Alvefur2023-04-071-0/+2
* util.human.io: table: use term_width() to discover terminal widthMatthew Wild2023-04-071-1/+1
* util.human.io: Add term_width() method to discover the terminal widthMatthew Wild2023-04-071-0/+12
* util.human.io: Pass the whole column definition to mapper functionKim Alvefur2023-04-071-1/+1
* util.human.io: Allow defining per column ellipsis functionKim Alvefur2023-04-071-1/+1
* util.human.io: Pass expected width to mapper functionKim Alvefur2023-04-071-1/+1
* util.human.io: Fix pattern to support fractional proportionsMatthew Wild2023-04-061-2/+2
* util.human.io: Support for dynamic "proportional" columnsMatthew Wild2023-04-061-4/+14
* util: Prefix module imports with prosody namespaceKim Alvefur2023-03-171-2/+2
* util.human.io: Fix handling of os.execute() return values in Lua 5.2+Kim Alvefur2022-10-201-3/+3
* compat: Remove handling of Lua 5.1 location of 'unpack' functionKim Alvefur2022-07-111-1/+1
* util: Remove various Lua 5.1 compatibility hacksKim Alvefur2022-07-022-12/+1
* util.human.io: Use UTF-8-aware length check in padding functionsKim Alvefur2021-11-121-2/+2
* util.human.io: Fix cutting of UTF-8 into piecesKim Alvefur2021-11-121-7/+21
* util.human.io: Trim any broken UTF-8 from ellipsisKim Alvefur2021-11-121-1/+5
* util.human.io: Factor out ellipsis functionKim Alvefur2021-11-121-1/+6
* util.human.io: Support specifying column defaults in tablesKim Alvefur2021-11-121-1/+1
* util.human.io: Pass nil to cell mapper to signal missing valueKim Alvefur2021-11-121-1/+9
* util.human.io: Fix right-alignmentKim Alvefur2020-06-061-1/+1
* util.human.io.table: Allow a map callaback per columnKim Alvefur2020-06-041-1/+1
* util.human.io: Consider separator when calculating remaining widthKim Alvefur2020-06-041-0/+3
* util.human.io: Use literal ellipsis instead of \u escapeKim Alvefur2020-06-041-1/+1
* util.human.io: Replace overflow with ellipsisKim Alvefur2020-06-041-1/+3
* util.human.io: Draw a separator between columnsKim Alvefur2020-06-041-2/+3
* util.human.io: Remove padding option and use $COLUMNS as default widthMatthew Wild2020-06-041-4/+3
* util.human.units: Factor out function for getting multiplierKim Alvefur2020-06-041-9/+15
* util.human.io: table: Fix title printing when columns use named keysMatthew Wild2020-06-041-2/+3
* util.human.io: table: Return title row when no row data passedMatthew Wild2020-06-031-0/+5
* util.human.io: table: switch row function to simply returning prepared row st...Matthew Wild2020-06-031-5/+6
* util.human.io: Add padleft, padright and a table printing functionMatthew Wild2020-06-031-0/+53
* util.human.units: Handle lack of math.log(n, base) on Lua 5.1Kim Alvefur2020-06-031-0/+8
* util.human.units: Put math functions into localsKim Alvefur2020-06-031-3/+9
* util.human.units: Handle location of unpack() in Lua 5.1Kim Alvefur2020-06-031-1/+3
* util.human.units: A library for formatting numbers with SI unitsKim Alvefur2019-01-041-0/+58
* util.human.io: Fix variable name [luacheck]Matthew Wild2020-06-021-1/+1
* util.human.io: New central place for UI helpersMatthew Wild2020-06-021-0/+96