This is a Kakoune plugin for using Obsidian vaults. I want this to be used in a similar way to obsidian.nvim. This is a plugin I use personally for my own notetaking. I hope this will be useful to others as well. If you have any suggestions, don't be scared to submit an issue.
To add this plugin all you have to do is
source ~/.config/kak/plugins/Obsidian-kak/Obsidian-kak.kak do sh%{
cd ~/.config/kak/plugins/Obsidian-kak
gcc -o main main.c
}
:is-obsidian-vault
: checks if current directory is an Obsidian vault:open-note [TITLE]
: used to create a new note. It has one arguement required, which is the name of the new markdown file (without the .md file extention)
:open-note CookieRecipe
:paste-img [FILE]
: puts most recently copied image into the markdown file defined in the arguement. The copied image will be saved to a folder named "assets". This is dependant on wl-clipboard.
:paste-img 'CookieRecipe.md'
:create-all-mds [FILE]
: this command finds out if all of the links in the given note is a file in the vault, if it is not the file will be created
:create-all-mds 'CookieRecipe.md'
:open-obsidian
: opens the currently opened vault in Obsidian:note-in-app [FILE]
: opens the given file in the currently opened vault
:note-in-app "CookieRecipe.md"
:move-note [FILE] [DIRECTORY]
: Moves the file (given by argument 1) to a directory (given by argument 2)
:move-note 'CookieRecipe.md' 'All Recipes/'
:create-table [FILE]
: Creates a table in the given file (argument 1)
:create-table 'CookieRecipie.md'