Skip to content

Support btime in sortby and info - #2042

Merged
joelim-work merged 4 commits into
gokcehan:masterfrom
CatsDeservePets:btime
Jul 19, 2025
Merged

Support btime in sortby and info#2042
joelim-work merged 4 commits into
gokcehan:masterfrom
CatsDeservePets:btime

Conversation

@CatsDeservePets

Copy link
Copy Markdown
Collaborator

This pull request adds support for btime (birth time, i.e. file creation time):

  • Add btime option to info and sortby
  • Add keybinding map sb :set sortby btime; set info btime
  • Add descriptions for all sort types for clearer distinction between times (also, name and natural)

I initially tried implementing it myself using addcustominfo. But turns out this was way to slow and not practical at all because I also had to check whether the date is in the current year and depending on that format the date to either match infotimefmtnew or infotimefmtold.

Turns out the library we already use for ctime also supports btime which allowed the introduction of this feature with very little changes.

@CatsDeservePets
CatsDeservePets marked this pull request as ready for review July 15, 2025 20:27

@joelim-work joelim-work left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, looks good overall. I have one minor comment before it gets merged.

Comment thread nav.go

@joelim-work joelim-work left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for the changes

@joelim-work
joelim-work merged commit 87c994b into gokcehan:master Jul 19, 2025
4 checks passed
@joelim-work joelim-work added the new Pull requests that add new behavior label Jul 19, 2025
@joelim-work joelim-work added this to the r37 milestone Jul 19, 2025
@CatsDeservePets
CatsDeservePets deleted the btime branch July 19, 2025 03:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new Pull requests that add new behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants