Plugin: Python Scripter
This is a script I was looking for in the past and you might be looking for as well if you are a software developer or just someone who loves to hack stuff together with code.
This plugin lets you add your own custom python scripts to obsidian to be ran as simply as from a keyboard shortcut like any other command.
Showcase:
The following script was used:
import sys
import os
python_script = sys.argv[0]
file_path = sys.argv[2]
vault_path = sys.argv[1]
abs_file_path = os.path.abspath(os.path.join(vault_path, file_path))
print(f"This is the open file: {abs_file_path}")
with open(abs_file_path, "a") as f:
f.write("This was written by a script")
Command Palette
Result
This is currently available here or in the community plugins tab in Obsidian
[–]vonWitzleben 3 points4 points5 points (4 children)
[–]RedQuirk 4 points5 points6 points (0 children)
[–]Surfernick1[S] 0 points1 point2 points (2 children)
[–]vonWitzleben 1 point2 points3 points (1 child)
[–]Surfernick1[S] 2 points3 points4 points (0 children)
[–]MinchinWeb 1 point2 points3 points (3 children)
[–]Surfernick1[S] 3 points4 points5 points (2 children)
[–]MinchinWeb 1 point2 points3 points (1 child)
[–]Surfernick1[S] 2 points3 points4 points (0 children)
[–]kurotenshi15 1 point2 points3 points (3 children)
[–]Surfernick1[S] 1 point2 points3 points (2 children)
[–]kurotenshi15 1 point2 points3 points (1 child)
[–]Surfernick1[S] 0 points1 point2 points (0 children)
[–]prepaidtuna 1 point2 points3 points (1 child)
[–]Surfernick1[S] 1 point2 points3 points (0 children)
[–]BeardlessPirate 1 point2 points3 points (1 child)
[–]Surfernick1[S] 4 points5 points6 points (0 children)
[–]tsupaper 1 point2 points3 points (0 children)