-
When ever I make a new note, I have a template that adds a heading and stuff (it mimics IMF note format). I am having issues figuring out a code snippet that creates an internal link which refers to the last visited file. For example: I was wondering if there is a system variable or something that accesses Obsidian's navigation history. Thanks for your help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Found the solution: |
Beta Was this translation helpful? Give feedback.
Found the solution:
Apparently, Obsidian keeps a workspace file which also records Navigation History in a sort of list or dictionary (idk im not a programmer). Apparently there's an Obsidian API with a handy getLastOpenFiles() function, which can return the list of strings.