Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ Thumbs.db
CLAUDE.md
AGENTS.md
.serena/
.sisyphus/

# Build artifacts
dist/
Expand Down
2 changes: 1 addition & 1 deletion internal/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ func (a *App) handleModalUpdate(msg tea.Msg) (tea.Model, tea.Cmd) {
return a.handleProfilesChanged(msg)

case tea.KeyPressMsg:
if view.IsEscKey(msg) || msg.Code == tea.KeyBackspace || msg.String() == "q" {
if view.IsEscKey(msg) || msg.Code == tea.KeyBackspace || msg.String() == "q" || msg.String() == "ctrl+c" {
if ic, ok := a.modal.Content.(view.InputCapture); ok && ic.HasActiveInput() {
break
}
Expand Down
16 changes: 16 additions & 0 deletions internal/view/command_input.go
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,18 @@ func (c *CommandInput) executeCommand() (tea.Cmd, *NavigateMsg) {
return nil, &NavigateMsg{View: browser, ClearStack: false}
}

// Handle settings command - show settings modal
if input == "settings" {
return func() tea.Msg {
return ShowModalMsg{
Modal: &Modal{
Content: NewSettingsView(c.ctx),
Width: ModalWidthSettings,
},
}
}, nil
}

// Handle sort command: :sort (clear) or :sort <column> (sort by column)
if input == "sort" {
return func() tea.Msg {
Expand Down Expand Up @@ -704,6 +716,10 @@ func (c *CommandInput) GetSuggestions() []string {
suggestions = append(suggestions, "autosave")
}

if strings.HasPrefix("settings", input) {
suggestions = append(suggestions, "settings")
}

for _, svc := range c.registry.ListServices() {
// Skip if input exactly matches service (already fully typed)
if svc != input && strings.HasPrefix(svc, input) {
Expand Down
1 change: 1 addition & 0 deletions internal/view/help_view.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ func (h *HelpView) renderContent() string {
out += s.key.Render(":login <name>") + s.desc.Render("AWS Console login with profile") + "\n"
out += s.key.Render(":theme <name>") + s.desc.Render("Change theme (dark/light/nord/dracula/...)") + "\n"
out += s.key.Render(":autosave") + s.desc.Render("Toggle config persistence (on/off)") + "\n"
out += s.key.Render(":settings") + s.desc.Render("Show current settings") + "\n"

// Tag Commands
out += "\n" + s.section.Render("Tag Commands") + "\n"
Expand Down
1 change: 1 addition & 0 deletions internal/view/modal.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const (
ModalWidthProfile = 55
ModalWidthProfileDetail = 65
ModalWidthActionMenu = 60
ModalWidthSettings = 70
ModalWidthChat = 80
)

Expand Down
Loading