https://github.com/cristianoliveira/obsh
[Ob][sh]idian a shell cli for managing with obsidian vaults
https://github.com/cristianoliveira/obsh
bash obsidian shell vim
Last synced: 2 months ago
JSON representation
[Ob][sh]idian a shell cli for managing with obsidian vaults
- Host: GitHub
- URL: https://github.com/cristianoliveira/obsh
- Owner: cristianoliveira
- Created: 2023-10-15T08:32:37.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-26T17:33:47.000Z (7 months ago)
- Last Synced: 2025-03-26T18:34:29.975Z (7 months ago)
- Topics: bash, obsidian, shell, vim
- Language: Shell
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# obsh
[Ob][sh]idian a shell CLI for querying data from obsidian vaults.
Useful for automation and composing [obsidian vim snippets](https://github.com/cristianoliveira/dotfiles/blob/main/nvim/mysnippets/markdown.snippets)## How do I use it?
Assuming you use Obsidian's Daily Notes feature, you can use `obsh` to generate
a template of your daily notes. It creates a link between the current note and
yesterday's note + tomorrow's note.During the day add notes on the section `## Inbox` of your daily note there goes
all the random thoughts you have during the day and items you need to accomplish.
I personally like the [Getting Things Done methodology](https://en.wikipedia.org/wiki/Getting_Things_Done).For instance:
- Mark lines as items #todo for things you need to remember on your daily note
- Mark lines with #assumption for things you have to check later to validate your assumptions
- Mark lines with #reminder:{date} for things you need to remember on a specific date.
- Mark lines with #reminder:{dayoftheweek} for things you need to remember on a specific day of the week (recurrent)
- Mark lines with #waiting for things you are waiting for someone or something.Then run `obsh daily` to generate a daily note with all the items you marked.
## Usage
```sh
obsh --help
``````
Obashidian - Obsidian Shell CLI (obsh)Query data from Obsidian vault for analysis and automation directly from the command line.
Usage:
obsh
obsh tag - Search for a tag in the vault
obsh reminder [date/dayofweek] - Search for reminders for a specific date
obsh reminders - Search for all reminders
obsh block - Search for a block in the vault
obsh section - Search for a section in a file
obsh daily - Generate a daily note templateOptions:
-h, --help Show this screen.
```## Install
```sh
git clone https://github.com/cristianoliveira/obsh.git $HOME/.obshmkdir -p $HOME/bin
ln -s $HOME/.obsh/obsh $HOME/binexport PATH="$HOME/bin:$PATH"
```### With nix
```sh
nix profile install github:cristianoliveira/obsh
```