Skip to content

refactor: tmpo log now displays your time entries in chronological order#125

Merged
DylanDevelops merged 1 commit into
mainfrom
ravel/reorder-tmpo-log
Jun 2, 2026
Merged

refactor: tmpo log now displays your time entries in chronological order#125
DylanDevelops merged 1 commit into
mainfrom
ravel/reorder-tmpo-log

Conversation

@DylanDevelops

Copy link
Copy Markdown
Owner

Pull Request Checklist

  • I have read and followed the contribution guidelines.
  • My pull request targets the main branch of tmpo.
  • I have tested these changes locally on my machine.

Description

This pull request makes a small update to the history package by changing the order in which history log entries are processed. The entries are now iterated in reverse order by using slices.Backward, ensuring the most recent entries are handled first.

  • Changed the log entry iteration in cmd/history/log.go to use slices.Backward, so entries are processed from newest to oldest.
  • Added the slices package import in cmd/history/log.go to enable reverse iteration.

@DylanDevelops DylanDevelops merged commit 150ff32 into main Jun 2, 2026
5 checks passed
@DylanDevelops DylanDevelops deleted the ravel/reorder-tmpo-log branch June 2, 2026 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant