the base 10.base erroneously listing files from Recipes/Sweets, as I currently have Ice cream.md focused instead of 10.base
I feel like this behavior could still be useful, maybe accessed with the keyword active rather than this… but, for now, it seems to behaving in a way that I wouldn’t expect
When the base is opened in main content area, this points to properties of the base file itself. For example, using this.file.folder returns the folder path where the base is located.
So if the .base is focused and the only tab open, all fine, but if there’s another main tab group open (not in a sidebar) and that tab is focused, the results of the .base change.
I rarely open bases with this in a main tab (mostly using the sidebar), but as far as I remember, it has always been this way, so the documentation has probably never reflected the actual behaviour. This means correcting it now could break existing workflows.
The idea of introducing additional objects like this, such as active or base, has come up several times in the forum. So if this will be corrected, it might make sense to do so alongside the introduction of such objects.
ahh yes! this is what I meant to convey, apologies for the confusion
I read in the docs that this behavior is intended when a base is placed in a sidebar, but I think it’s unintentional that it also occurs in the main content area, when you are working with split tabs.
a quick test reveals that this also occurs when you have a document focused in your sidebar, while a base is open in the main content area:
from the way things look right now, it looks like this always refers to the active document, no matter where the base is located … if changing its behavior could break workflows, then perhaps it could retroactively be renamed to active, somehow?