Currently, you can press enter to go down one step in layers, and shift-enter to go up. That’s really useful, but completely pointless when there’s multiple layers at same level, and you need to select only one of them.
Is it possible to somehow select only first in the list, or navigate to next sibling? Because right now, when I enter into a deeper layer, it selects all layers within making any kind of manipulation impossible.
It works if you select multiple objects in one parent. For example you press Enter to select all children, and then you can press Tab to select the first one. Regarding the limitation — you can file a feature request in the #product-ideas category.
Yeah, I do not know why Tab does not work on multiple selections, but I wrote this code to achieve that. You can paste this code into your Figma Console to see this in effect, and if you like it, you can even make a tiny local plugin and bind the ⇥ and ⇧⇥ short cut to it using BetterTouchTool.
To go upward use:
let currentSelection = Figma.currentPage.selection;
let newselection = []
currentSelection.forEach(element => {
let index = element.parent.children.indexOf(element)
if (index < element.parent.children.length - 1) newselection.push(element.parent.children[index + 1])
});
if (newselection.length > 0) {Figma.currentPage.selection = newselection}
To go downward use:
let currentSelection = Figma.currentPage.selection;
let newselection = []
currentSelection.forEach(element => {
let index = element.parent.children.indexOf(element)
if (index > 0) newselection.push(element.parent.children[index - 1])
});
if (newselection.length > 0) Figma.currentPage.selection = newselection
Thanks a bunch! I haven’t tried making plugins before and I’m on Windows so can’t use BetterTouchTool, but will look into it, might be good time to learn!
It’s so weird how random features just stop working in certain context in Figma, feels like a bug
So, I took liberty to use the @Mr.Biscuit code and turned it into plugin. I need to style it, and would like to publish it with permission, ofc. Here is how it works…