-
Notifications
You must be signed in to change notification settings - Fork 348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Highlight recently created and modified entries. #1744
Labels
invalid
This doesn't seem right
Comments
It's a feature that's already supported - Yazi provides the linemode API, so you can easily implement it through the plugin system: function Linemode:my_mtime()
local time = math.floor(self._file.cha.modified or 0)
local line
if time == 0 then
line = ui.Line {}
else
line = ui.Line(os.date("%b %d %H:%M", time))
end
if time ~= 0 and ya.time() - time <= 300 then
line = line:reverse()
end
return line
end Doc of |
sxyazi
added
invalid
This doesn't seem right
and removed
feature
New feature request
labels
Oct 8, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
yazi --debug
outputPlease describe the problem you're trying to solve
Changing the sorting method every time we look for recent entries may not be ideal.
Would you be willing to contribute this feature?
Describe the solution you'd like
In directories with few items (that usually fit on the screen), highlighting recent entries makes finding them much more convenient than changing the sorting method.
Additional context
nnn implementation: jarun/nnn@d66492a
nnn.mp4
Validations
The text was updated successfully, but these errors were encountered: