Execute system commands via hotkeys or command palette in Obsidian (https://obsidian.md). Some automated events are also supported, and execution via URI links.
GNU General Public License v3.0
348
stars
11
forks
source link
New variables for 'Folder to create new notes in' #235
Originally posted by **Taitava** May 2, 2022
I'd like to implement variables that give the above mentioned directory. [Obsidian API has a method for it: `FileManager.getNewFileParent()`](https://github.com/obsidianmd/obsidian-api/blob/036708710c4a4b652d8166c5929d5ba1ffb7fb91/obsidian.d.ts#L1074-L1081).
I'm thinking about the following new variable names:
- `{{new_note_folder_path:relative}}` / `{{new_note_folder_path:absolute}}`: Similar to [`{{folder_path}}`](https://publish.obsidian.md/shellcommands/Variables/%7B%7Bfolder_path%7D%7D).
- `{{new_note_folder_name}}`: Similar to [`{{folder_name}}`](https://publish.obsidian.md/shellcommands/Variables/%7B%7Bfolder_name%7D%7D).
Discussed in https://github.com/Taitava/obsidian-shellcommands/discussions/213