Skip to content

feat(confirm): configurable alignment of choices line#1090

Open
maxenglander wants to merge 1 commit intofolke:mainfrom
maxenglander:maxeng-feat-confirm-choice-align
Open

feat(confirm): configurable alignment of choices line#1090
maxenglander wants to merge 1 commit intofolke:mainfrom
maxenglander:maxeng-feat-confirm-choice-align

Conversation

@maxenglander
Copy link
Copy Markdown

@maxenglander maxenglander commented Mar 31, 2025

Description

Currently confirm-kind events that are confirm-formatted have the choices line unconditionally padded to achieve center alignment.

Retain this behavior as the default, but allow users to left- and right-align as alternative options, e.g.:

{  
  opts = {
    views = {
      confirm = {
        format = {
          { "{confirm}", choices = { align = "left" } },
        },
      },
    },
  },
}

Related Issue(s)

Closes #1089

Screenshots

format = {
  { "{confirm}", choices = { align = "left" } },
}
image
format = {
  { "{confirm}" },
}
image
format = {
  { "{confirm}", choices = { align = "right" } },
}
image

Signed-off-by: Max Englander <max.englander@gmail.com>
@maxenglander maxenglander force-pushed the maxeng-feat-confirm-choice-align branch from 272c9a9 to d19330c Compare March 31, 2025 05:40
@maxenglander maxenglander marked this pull request as ready for review March 31, 2025 05:42
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented May 1, 2025

This PR is stale because it has been open 30 days with no activity.

@github-actions github-actions bot added the stale This issue or PR has been inactive for a while label May 1, 2025
njhoffman added a commit to njhoffman/noice.nvim that referenced this pull request Mar 28, 2026
Adds choices.align option (left/center/right) to confirm format config,
defaulting to center (preserving existing behavior).

From upstream PR folke/noice.nvim#1090

Co-Authored-By: maxenglander <maxenglander@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale This issue or PR has been inactive for a while

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feature: user control over button padding in confirm view

1 participant