Skip to content

Feature: Add action to find matching bracket - #1680

Open
jeremypw wants to merge 16 commits into
masterfrom
jeremypw/goto-matching-action
Open

Feature: Add action to find matching bracket#1680
jeremypw wants to merge 16 commits into
masterfrom
jeremypw/goto-matching-action

Conversation

@jeremypw

@jeremypw jeremypw commented Nov 24, 2025

Copy link
Copy Markdown
Collaborator

Builtin highlight matching brackets only works over a limited number of characters. This works over whole document, scrolls to match and checks whether indent is the same.

This action (but not accelerator) is now exposed in the document context menu

@jeremypw jeremypw added the testing Merged in code-dogfood project. Does not conflict with other PRs with testing label. label Jan 25, 2026
@jeremypw jeremypw removed the testing Merged in code-dogfood project. Does not conflict with other PRs with testing label. label May 16, 2026
@jeremypw jeremypw modified the milestones: 8.3.1, 8.4 May 16, 2026
@jeremypw jeremypw changed the title Add action to find matching bracket Feature: Add action to find matching bracket Jun 20, 2026
@jeremypw jeremypw modified the milestones: 8.4, 8.5 Aug 9, 2026
@jeremypw
jeremypw marked this pull request as ready for review August 9, 2026 15:37
@danirabbit
danirabbit requested a review from a team August 9, 2026 16:52

@zeebok zeebok left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one optional comment but looks good to me! Excited to make use of this feature!

var parent_window = get_toplevel () as Gtk.Window;
var dialog = new Granite.MessageDialog (
found ? _("Matching bracket has different indent") : _("No matching bracket found"),
_("You may have omitted a required bracket or inserted extra brackets between lines %i and %i, or you may need to adjust the indents").printf (min_line, max_line),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be better to have a similar found ternary op so the full message matches the summary?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants