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.

2 Likes

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

I was just looking for a thread like this. Itā€™d be great to have prepend/append for mass rename. For example I had a bunch of symbols that need to be nested, itā€™d be amazing if I could set it it prepend and then just type the parent name into the field and move all of those symbols in one go