feat: Implement the Onyx Obsidian CLI tool, including its source, tests, and executable build artifacts.
This commit is contained in:
1 parent
af43694c98
commit
21837be512
16 files changed
+217
-146
No files matched your search
Binary file not shown.
+2
-2
@@ -150,8 +150,8 @@ class OnyxCLI:
|
||||
overwrite: bool = False, append: bool = False, open_after: bool = False):
|
||||
vault_name, vault_path = self._get_vault_and_path(vault)
|
||||
note_path = vault_path / note_name
|
||||
if not note_path.suffix:
|
||||
note_path = note_path.with_suffix('.md')
|
||||
if not str(note_path).endswith('.md'):
|
||||
note_path = Path(str(note_path) + '.md')
|
||||
|
||||
note_path.parent.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
|
||||
Reference in new issue
Block a user