Set your Obsidian layout given a file context
[!NOTE] This project uses ther term 'layout' to describe the positions, sizes, groupping & file view mode of tabs in the main view.

[!WARNING] Due to the file context based nature of this plugin, a layout can only have 1 file.
Mobile re-organizes splits to be tabs, can't do anything about that :/
Workspaces don't offer a contextual layout feature, but rather a static 'this is the file that is open' type of thing
Layout Manager: Save Layout (or if you wish to override an existing layout, Layout Manager: Override Layout)Simply open a file that is covered by a glob pattern. This will trigger that layout
You can also open any saved layout by running Layout Manger: Load Adhoc Layout, then selecting a layout
If you have a layout that is active, you can still open another markdown file (without triggering the layout for that file). Simply open it in a new tab, while the layout "has integrity".
You should be able to tell if the layout integrity is intact by seeing the icon of the tab(s) that are part of the layout. The below image is an example of a tab that has layout integrity

If you do not see an icon (and the option to enable icons is enabled), then the layout integrity is broken & opening a new file, even in a new tab, will trigger the appropriate layout.
Layout Integrity is kept for as long as all tabs that were opened as part of the layout as open & contain the same view as is in the layout. So closing a tab or changing the file that opened in the tab breaks layout integrity.
I'm open to issues, PRs, etc!