Rename improvements

I love the rename function, but I suggest adding this to avoid filling over and over the rename criteria.

Must have: remembering the last setting
Nice to have: the ability to save/load presets

I imagine you’re speaking about renaming multiple layers via the dedicated dialog, right?

Could you speak more about “remembering the last setting”? Because that feature already exists. When you use that dialog to rename layers, Sketch remembers the Match and Rename fields for next time, as long as the app remains open. You can even use remembered values to rename without even bringing up the dialog, with Edit > Rename with Last Format ⌥⇧⌘R.

Oh, I didn’t notice that. And, yes I was talking about that.
Remembering last format after quitting would be great.
I don’t se a reason not to.

One potential improvement, make the input field bigger. When there is a more complex naming structure it is difficult to edit conditions.

1 Like

Paulo,

On the topic of renaming, I noticed a couple bugs, some oddities, and then just some optimizations that would be nice…

  1. Using the hotkey to run this command doesn’t work the immediately after starting the app, however once you run the command once from the dropdown menu the hotkey then works fine until you restart the app. (This might already be fixed in the 99.5 beta)

  2. The swapping between two different commands (“Rename” & “Rename…”) is confusing. Especially when setting up hotkeys. I understand that it’s dependent on whether you have 1 or more than 1 object selected, but it feels very hacky. Also with multiple objects selected It seems as though “Rename…” and “Rename All…” are actually the exact same command. I’m guessing all this was done for discoverability reasons, but it’s very messy and complicates a very simple thing.

  3. When adding variables (e.g. No changes, Number ↑, etc) it does not take into account where the cursor is. It just always injects the latest variable at the end. I expect this to behave the same was paste does in any text app, by inserting any additions at the point where the cursor is. Allowing you to prepend variables to any current formatting.

  4. A very small detail, but the chips for the variable have a lot of padding between them making it look like there is a space when there isn’t. I find my self having to constantly look to the preview on the left to see if I’m entering the format in right. Minor, but a quality of life thing.

  5. With the variables shown in the text fields, you can change them via the chevron on the right, a super thoughtful feature. However they’re limited to the 2 other option per each variable type (name, sequence, size). It’d be nice to show all 9 options in that list. Depending on what I previously had run, sometimes I do just need to swap Name to Number or vice versa.

  6. The “:heavy_plus_sign:” button for the variables only has 9 commands in it. It’d be great to just expose those 9 options rather than have them in a menu. “Click, Scroll, Click” vs “Click”. Honestly, just a personal preference. I’m in this window a lot as I like to number my layers. Any way to speeding this up would be helpful. Hotkey’s too, I just can’t get them to work for this dropdown.


Hi @everydayslang and thanks for taking the time to write out your thoughts! They’re very much appreciated.

Hmm, this shouldn’t be the case. Do you have a custom shortcut set, or is this happening for the default rename shortcuts? If so, that could be a known macOS issue with custom shortcuts sometimes not working.

This is macOS convention for whether an action will require subsequent input or not, and we like to follow macOS conventions. We could use separate menu items, but that would feel hacky to us, because single and multi-selection renaming would be mutually exclusive items, as far as ⌘R is concerned :smiley:

They’re not exactly the same command. Rename renames selected layers, while Rename All selects all layers. The key difference here is groups. Because you can’t select both a group and its contents, Rename can’t possibly rename all layers in your document, assuming you use groups — but Rename All can. Plus, it offers a layer filtering function, so you want to do this you don’t have to first search your layers and select them.

As for points 3-5, consider them noted! They’re quite fair points, we’ll see what we can do.

  1. I do use custom hotkeys (Honestly it’s why I like sketch so much and not those other browser based apps). It’s strange though, it’s only that one command that’s giving me problems, but regardless I think it might have fixed itself in the newest 99.5 beta :crossed_fingers:

  2. I agree sticking to the OS naming convention is a good idea (and honestly I love ellipsis in general). What I’m trying to say is that it’s a bit jarring when the menu item automatically changes on me.

There’s two scenarios…
a. With one layer selected it’s “Rename” and it just makes the name the layers column active.
b. With two or more layers selected it’s “Rename…” and I get this whole new fancy interface to do cool things.

I want it to be less smart/fancy so it’s easier to understand (and assign hotkeys). Ideally I would like two separate command, “Rename” and “Super Rename” (or a better name).

The two scenarios would look like…
a. With one layer is selected they’re both active. “Super Rename” might have some previously used values that might be useful. and regular “Rename” just behaves as always.
b. With two or more layers selected regular “rename” is disabled because you can only have one layer name active at a time. and “Super Rename” shines as the power feature it is.

This would clearly communicate the relationship these commands have to the number of items selected. (as well as allow me to set a hotkey for “rename…” and be able to pull it up consistently)

I get this is seemingly just semantics, but as a very active user for many years I still can’t keep these commands straight. You rightfully corrected my misstatement about “Rename All…”

I see 3 challenging concepts for people to understand these commands…
• Rename vs Rename… (contextually changing based on selection)
• Rename vs Rename All… (additive or subtractive selection of layers)
• File > Rename vs Edit > Rename (Renaming the document or things in the document)

It shouldn’t be this complicated just to rename things.

@everydayslang Thanks for answering and clarifying!

1 Like

Another improvement to this functionality could be, when adding a number sequence, to be able to choose the starting number. Also, options to choose the number formatting (1, 01, 001, etc.). And being able to create presets with prefixxes and sufixxes + the mentioned number formatting would be great.

1 Like