phibr0
Oct 22, 2022

--

Yes exactly, leaf is the internal name for a tab. That is because Obsidian uses a Tree Data Structure to store the layout, and the outer elements of a tree are called leaves.

Lines 5-8 defines a function, which, when called, focuses the specified tab and editor. I don't think the part of specifically focusing the editor is required in newer versions of obsidian though.

--

--

phibr0
phibr0

Written by phibr0

Developer & Student from Germany.

Responses (1)