Sneak Peek: Components in the Command Bar

Hello, folks! Following in Paulo’s footsteps from his sneak-peek into Stacks a little while ago, I’m here to pull back the veil of secrecy again with a look at the new ways you’ll soon be able to insert and replace Components. Some of these changes are in the 102 beta already, and the rest will be coming in a new beta really soon.

I’ve put together a summary of the changes you can expect below, but you can get a good feel for them in this walkthrough video…

Components are now in the Command Bar

We’ve moved Components from the old Insert Window into the Command Bar. From there you can search all your Components, filter by group, and get much richer previews (we’re especially proud of Text Styles!). We found the Insert Window felt too slow to use, and the previews you got for Components were often unhelpful. Filtering to only search within a specific group was also a frustrating experience. We think what we have now with the Command Bar is a much faster and easier-to-navigate way to pick Components — and because this is the Command Bar, you can do it all without taking your hands off the keyboard.

On the subject of previews, you can now also decide whether a Symbol should have a light or dark background in its preview. No more white Symbols on a light grey background when in Light Mode.

Replace Components using the Command Bar

Another big improvement over the Insert Window is that you can now use the Command Bar to replace Components. No more digging through finicky menus in the Inspector to find the group you’re looking for, not being able to search in a specific group, or having to squint at tiny previews. With a Component selected just press ⌥⌘R.

A new, compact popover for picking replacement Components from the Inspector

If you’ve been using the 102 beta, you’ve probably already seen most of those changes, but we’ve also been working on a new, second way to replace Components. If you click any of the Component buttons in the Inspector — maybe you’re changing a Text Style, or swapping a nested Symbol — you’ll see a brand new popover for picking your Component. The popover works just like the Command Bar: you can navigate to different groups or Libraries, search inside any group, get rich previews, and use the same shortcuts. The new popover is the default when you want to replace a Component from the Inspector (so you’re kept in-context, and the Canvas is kept clear) but you can always use the Command Bar by ⌥-clicking.

We’re really excited to hear what you think of these changes, and to get them into your hands. All the changes I talk about in the video will be going out in a new beta really soon, but in the mean time please let us know what you think.

22 Likes

Hey folks — a quick update to say this is now available in the latest Sketch Beta. If you already have the beta app, you can open/reopen it and we’ll prompt you to update.

Note: Files you open in this beta will be incompatible with earlier/stable versions of Sketch. Please, please, please make copies of documents before you open them!

2 Likes

Some comments on the new popover

  • No scroller
  • No auto scroll
  • Less content
  • No option to extend the popover
  • It opens on the left instead, in the same place

1 Like

Hi Paulius, thanks for taking the time to leave a comment!

The popover has a scrollbar, which respects the user-controllable macOS setting for when to show scrollbars. As for auto scroll, I suspect you’re talking about the arrows at the end of long menus — yes, they’re gone because those are specific to menus, and these are not menus. We won’t be adding them.

As for the first one, we’ll see what we can do to take better advantage of the screen real estate. Regarding extending the popover, would be ideal but as we’re relying on macOS’s system popover, this isn’t possible, and creating our own custom resizable popover isn’t feasible for us right now.

When you need the most real estate, we suggest swapping with the Command Bar by clicking the ⌘ button in the popover, or doing ⌥⌘R, since it’s larger and resizable.

This is by design. You’ll see us doing more of this in the future.

Hi Paulo,

In Mac OS, there is an option in Preferences / Appearance / Show scrollbars: Always. If this option is enabled, most applications will provide a scrollbar.

The popover scroller in Sketch app is only visible as an indicator when scrolling, it’s not visible all the time as a real scrollbar to help me scroll the list. This is a problem because I’m using a tablet as an input device and there’s no way to scroll this list. This is the same problem I’ve had with the Property Inspector for many years.

Please can you include a real scrollbar like many other apps so that users using tablets can navigate the app.

I’m aware, this is the macOS setting I was referring to in my previous reply. Before my reply to you I checked our daily internal build and it’s working correctly in that build, but after checking the Beta I see that this isn’t available in the Beta. We’ll check what’s up with that.

2 Likes

I’ve been thinking about the new command bar/popover stuff and overall it’s a huge improvement to the way things used to be, bravo! But I have a few bits of feedback:

Hiding nested symbols/layers is a little more obtuse now.

The new workflow looks like this:

Which is similar to the old “hide layer” checkbox from before. Neither of these were perfect, but I’d suggest just adding the visibility toggle inline.

Available to insert not accessible enough

I love that this option is here, but to access it, you have to navigate to the component view, find the symbol and then uncheck the box, this option should be present on the symbols outermost container to save the round trip, it makes sense you’d do this at the same time as setting overrides etc.

I have one other suggestion, but I think I’ll put that in a separate thread :slight_smile:

Overall though, I have to say again, I ADORE this new direction, it’s such a massive improvement overall!

3 Likes

Hey Ash, thanks for the feedback! Glad to hear you like the direction—we appreciate it.

Good point! The visibility toggle should be inline, and I expect we will add it in the future.

1 Like