https://github.com/coldmayo/obsidian-kak
Kakoune plugin for Obsidian integration
https://github.com/coldmayo/obsidian-kak
kakoune kakoune-plugin obsidian obsidian-md plugin
Last synced: 11 months ago
JSON representation
Kakoune plugin for Obsidian integration
- Host: GitHub
- URL: https://github.com/coldmayo/obsidian-kak
- Owner: coldmayo
- Created: 2024-06-25T15:04:09.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-25T17:29:34.000Z (over 1 year ago)
- Last Synced: 2025-03-26T05:33:25.356Z (about 1 year ago)
- Topics: kakoune, kakoune-plugin, obsidian, obsidian-md, plugin
- Language: KakouneScript
- Homepage:
- Size: 11.7 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Obsidian-kak
This is a Kakoune plugin for using Obsidian vaults. I want this to be used in a similar way to [obsidian.nvim](https://github.com/epwalsh/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.
## Installation
To add this plugin all you have to do is
1. Ensure you have the GCC installed
2. Clone this repo into your plugins (.config/kak/plugins) directory
3. and then add the following to your kakrc:
```bash
source ~/.config/kak/plugins/Obsidian-kak/Obsidian-kak.kak do sh%{
cd ~/.config/kak/plugins/Obsidian-kak
gcc -o main main.c
}
```
## Commands
- ```: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)
- Example use: ```: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.
- Example use: ```: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
- Example use: ```:create-all-mds 'CookieRecipe.md'```
- ```:open-obsidian [FILE]```: opens the currently opened vault in Obsidian
- Example use: ```:open-obsidian Plingus.md```
- ```:move-note [FILE] [DIRECTORY]```: Moves the file (given by argument 1) to a directory (given by argument 2)
- Example use: ```:move-note 'CookieRecipe.md' 'All Recipes/'```
- ```:create-table [FILE]```: Creates a table in the given file (argument 1)
- Example use: ```:create-table 'CookieRecipie.md'```
- ```:daily-note [DATE]```: Creates a note with the current date as its title. If date is not given it assumes todays date
- For a note for tomorrow, instead of writing its date you could set DATE as tomorrow.
- Example use: ```:daily-note 07-10-2025```
Note: If ```[FILE]``` is not given, it will use the file you are currently on
There is more to come, I am not close to being done developing this.