Skip to content

how to add last modified(created) time to the status bar? #1113

Closed Locked Answered by SolitudeSF
woshichuanqilz asked this question in 1. Q&A
Discussion options

You must be logged in to vote
function Status:modified()
	local time = cx.active.current.hovered.cha.modified
	return ui.Span(time and os.date("%y-%m-%d %H:%M ", time // 1) or " "):fg("blue")
end

add this to init.lua then override default Status:render including this (example in https://yazi-rs.github.io/docs/tips#user-group-in-status)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by woshichuanqilz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
1. Q&A
Labels
None yet
2 participants