Help on every panel, task filter, unblock key, mouse zones, safe add-only rebuild
This commit is contained in:
20
tui/reply.go
20
tui/reply.go
@@ -42,9 +42,10 @@ type replyModel struct {
|
||||
err error
|
||||
readAt time.Time
|
||||
|
||||
scroll int
|
||||
width int
|
||||
height int
|
||||
showHelp bool
|
||||
scroll int
|
||||
width int
|
||||
height int
|
||||
}
|
||||
|
||||
func newReplyModel(c *paperclip.Client, folder, issueID string) replyModel {
|
||||
@@ -226,6 +227,19 @@ func (m replyModel) View() string {
|
||||
fmt.Sprintf("This workspace needs 80 × 24.\nThis panel is %d × %d.", m.width, m.height))
|
||||
}
|
||||
|
||||
if m.showHelp {
|
||||
return helpOverlay("the conversation", [][2]string{
|
||||
{"enter", "write a reply"},
|
||||
{"alt+enter", "new line inside the box"},
|
||||
{"s", "choose the status to send with it"},
|
||||
{"↑ ↓ j k", "read the thread"},
|
||||
{"r", "read again"},
|
||||
{"R", "rebuild every pane"},
|
||||
{"q", "leave"},
|
||||
{"?", "this list"},
|
||||
}, m.width, m.height)
|
||||
}
|
||||
|
||||
head := titleStyle.Render("Conversation") + mutedStyle2().Render(" · ")
|
||||
if m.task.Identifier != "" {
|
||||
head += lipgloss.NewStyle().Foreground(lipgloss.Color(active.Text)).
|
||||
|
||||
Reference in New Issue
Block a user