Workbench icon indicating copy to clipboard operation
Workbench copied to clipboard

Show names/ids of matching objects' closing braces in blueprint

Open vixalien opened this issue 2 years ago • 3 comments

sonny said it best:

What we could do is show the name/id of the matching object next to the closing "}".

I think this could even be implemented in Blueprint language server and benefit all editors.

vixalien avatar Mar 12 '23 17:03 vixalien

An other idea would be to show a breadcrumbs of the tree where the cursor is, something like

Window {
  Box my_box {
    Stack {
      Button {

      } Window > Box#id > Stack > Button **the breadcrumbs is shown dimmed or something by the editor**
    }
  }
}

VSCode has this cool "Stick Scroll" experimental feature https://devblogs.microsoft.com/visualstudio/sticky-scroll-now-in-preview/

The VSCode version is too complex but we could also show the breadcrumbs above the text view which is probably even better than showing it where the cursor is.

The breadcrumb would update as you scroll

image

sonnyp avatar Jun 17 '23 19:06 sonnyp

@halfmexican mentioned that it's hard to see the bold matching bracket.

One idea would be to actually highlight it instead. Let's see if it's possible at all :)

sonnyp avatar Jun 18 '23 17:06 sonnyp

@halfmexican looked into it but we'd have to ship a custom GtkSourceView theme

Not worth it, let's implement a nice solution directly.

sonnyp avatar Jun 25 '23 18:06 sonnyp