Skip to content

Open source AI coding agent. Designed for large projects and real world tasks.

remove reject change functionality for now

Dane Schneiderb02050c642c5
diff --git a/app/cli/changes_tui/main_viewport.go b/app/cli/changes_tui/main_viewport.go
index e4490d7b..2bf29637 100644
--- a/app/cli/changes_tui/main_viewport.go
+++ b/app/cli/changes_tui/main_viewport.go
@@ -117,7 +117,7 @@ func (m changesUIModel) renderMainViewFooter() string {
Width(m.width - sidebarWidth).
Inherit(topBorderStyle).
Foreground(lipgloss.Color(helpTextColor))
- footer := ` (r)eject change • (c)opy to clipboard`
+ footer := ` (c)opy change to clipboard`
return style.Render(footer)
}
diff --git a/app/cli/changes_tui/model.go b/app/cli/changes_tui/model.go
index ab779788..9515664d 100644
--- a/app/cli/changes_tui/model.go
+++ b/app/cli/changes_tui/model.go
@@ -43,10 +43,10 @@ type keymap = struct {
start,
end,
switchView,
- reject,
+ // reject,
copy,
applyAll,
- rejectAll,
+ // rejectAll,
quit bubbleKey.Binding
}
@@ -120,10 +120,10 @@ func initialModel() *changesUIModel {
bubbleKey.WithHelp("tab", "switch view"),
),
- reject: bubbleKey.NewBinding(
- bubbleKey.WithKeys("r"),
- bubbleKey.WithHelp("r", "reject change"),
- ),
+ // reject: bubbleKey.NewBinding(
+ // bubbleKey.WithKeys("r"),
+ // bubbleKey.WithHelp("r", "reject change"),
+ // ),
copy: bubbleKey.NewBinding(
bubbleKey.WithKeys("c"),
@@ -135,10 +135,10 @@ func initialModel() *changesUIModel {
bubbleKey.WithHelp("ctrl+a", "apply all changes"),
),
- rejectAll: bubbleKey.NewBinding(
- bubbleKey.WithKeys("ctrl+r"),
- bubbleKey.WithHelp("ctrl+r", "reject all changes"),
- ),
+ // rejectAll: bubbleKey.NewBinding(
+ // bubbleKey.WithKeys("ctrl+r"),
+ // bubbleKey.WithHelp("ctrl+r", "reject all changes"),
+ // ),
quit: bubbleKey.NewBinding(
bubbleKey.WithKeys("q", "ctrl+c"),
diff --git a/app/cli/changes_tui/update.go b/app/cli/changes_tui/update.go
index e75e3085..7c4b53c7 100644
--- a/app/cli/changes_tui/update.go
+++ b/app/cli/changes_tui/update.go
@@ -63,16 +63,16 @@ func (m changesUIModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
case bubbleKey.Matches(msg, m.keymap.switchView):
m.switchView()
- case bubbleKey.Matches(msg, m.keymap.reject):
- m.rejectChange()
+ // case bubbleKey.Matches(msg, m.keymap.reject):
+ // m.rejectChange()
case bubbleKey.Matches(msg, m.keymap.applyAll):
m.shouldApplyAll = true
return m, tea.Quit
- case bubbleKey.Matches(msg, m.keymap.rejectAll):
- m.shouldRejectAll = true
- return m, tea.Quit
+ // case bubbleKey.Matches(msg, m.keymap.rejectAll):
+ // m.shouldRejectAll = true
+ // return m, tea.Quit
case bubbleKey.Matches(msg, m.keymap.copy):
m.copyCurrentChange()
diff --git a/app/cli/changes_tui/view.go b/app/cli/changes_tui/view.go
index 49d286a4..fab66e0e 100644
--- a/app/cli/changes_tui/view.go
+++ b/app/cli/changes_tui/view.go
@@ -135,7 +135,7 @@ func (m changesUIModel) renderHelp() string {
help += "(↑/↓) select change • "
}
- help += "(ctrl+a) apply pending • (ctrl+r) reject all • (q)uit"
+ help += "(ctrl+a) apply changes • (q)uit"
style := lipgloss.NewStyle().Width(m.width).Inherit(topBorderStyle).Foreground(lipgloss.Color(helpTextColor))
return style.Render(help)
}