fix: change binding to open/close todo list from `ctrl+space` to `ctrl+t` (#2201)

Andrey Nering created

`ctrl+space` is used by some terminal emulators and operating system,
so some users were enable to use it. `ctrl+t` should work everywhere.

Fixes #1618

Change summary

internal/ui/model/keys.go  | 4 ++--
internal/ui/model/pills.go | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)

Detailed changes

internal/ui/model/keys.go 🔗

@@ -173,8 +173,8 @@ func DefaultKeyMap() KeyMap {
 		key.WithHelp("ctrl+d", "toggle details"),
 	)
 	km.Chat.TogglePills = key.NewBinding(
-		key.WithKeys("ctrl+space"),
-		key.WithHelp("ctrl+space", "toggle tasks"),
+		key.WithKeys("ctrl+t", "ctrl+space"),
+		key.WithHelp("ctrl+t", "toggle tasks"),
 	)
 	km.Chat.PillLeft = key.NewBinding(
 		key.WithKeys("left"),

internal/ui/model/pills.go 🔗

@@ -270,7 +270,7 @@ func (m *UI) renderPills() {
 	if m.pillsExpanded {
 		helpDesc = "close"
 	}
-	helpKey := t.Pills.HelpKey.Render("ctrl+space")
+	helpKey := t.Pills.HelpKey.Render("ctrl+t")
 	helpText := t.Pills.HelpText.Render(helpDesc)
 	helpHint := lipgloss.JoinHorizontal(lipgloss.Center, helpKey, " ", helpText)
 	pillsRow = lipgloss.JoinHorizontal(lipgloss.Center, pillsRow, " ", helpHint)