Skip to content

Commit 388f685

Browse files
committed
Implement pagination, 1.7.1
1 parent c98562b commit 388f685

4 files changed

Lines changed: 17 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
## Unreleased
22

3+
## 1.7.1 (2025-09-11)
4+
5+
### Changed
6+
- Implement form pagination for flow timer setup to improve usability in small terminals
7+
- Update all headings and form titles to use sentence case formatting
8+
39
### Fixed
410
- Remove task names from being saved as tags in flow mode
511
- Remove unused sessionHelperReadOnly function that was causing linter errors

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<a href="https://goreportcard.com/report/github.com/ronilaukkarinen/focus"><img src="https://goreportcard.com/badge/github.com/ronilaukkarinen/focus" alt="GoReportCard"></a>
99
<a href="https://github.com/ronilaukkarinen/focus"><img src="https://img.shields.io/badge/go-1.24-blue.svg" alt="Go version"></a>
1010
<a href="https://github.com/ronilaukkarinen/focus/blob/master/LICENCE"><img src="https://img.shields.io/github/license/ronilaukkarinen/focus.svg" alt="LICENCE"></a>
11-
<a href="https://github.com/ronilaukkarinen/focus/releases/"><img src="https://img.shields.io/badge/version-1.7.0-blue.svg" alt="Latest release"></a>
11+
<a href="https://github.com/ronilaukkarinen/focus/releases/"><img src="https://img.shields.io/badge/version-1.7.1-blue.svg" alt="Latest release"></a>
1212
</p>
1313

1414
<h1 align="center">Focus on your task - with flow timer!</h1>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ronilaukkarinen/focus",
3-
"version": "1.7.0",
3+
"version": "1.7.1",
44
"description": "Focus is a flexible command-line productivity timer with flow mode for uninterrupted work sessions",
55
"main": "",
66
"repository": "https://github.com/ronilaukkarinen/focus",

timer/timer.go

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -383,10 +383,15 @@ func (t *Timer) promptFlowModeInfo() tea.Cmd {
383383
Value(&t.estimatedTimeStr).
384384
Placeholder("e.g., 25m, 1h30m"))
385385

386-
// Create a form with the fields using compact layout
387-
form := huh.NewForm(
388-
huh.NewGroup(fields...),
389-
).WithWidth(formWidth)
386+
// Create separate groups for pagination - one field per page
387+
var groups []*huh.Group
388+
totalFields := len(fields)
389+
for i, field := range fields {
390+
title := fmt.Sprintf("Flow timer setup (%d/%d)", i+1, totalFields)
391+
groups = append(groups, huh.NewGroup(field).Title(title))
392+
}
393+
394+
form := huh.NewForm(groups...).WithWidth(formWidth)
390395

391396
// Try to make the form fit in small terminals
392397
if t.terminalHeight > 0 && t.terminalHeight < 20 {

0 commit comments

Comments
 (0)