https://github.com/nydragon/rofi-obsidian
Launch your Obsidian vaults from the comfort of rofi
https://github.com/nydragon/rofi-obsidian
cargo nix nix-flake obsidian obsidian-vault rofi-scripts rust
Last synced: 5 months ago
JSON representation
Launch your Obsidian vaults from the comfort of rofi
- Host: GitHub
- URL: https://github.com/nydragon/rofi-obsidian
- Owner: Nydragon
- License: unlicense
- Created: 2024-05-09T00:40:03.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-05-21T23:47:04.000Z (about 2 years ago)
- Last Synced: 2024-05-22T23:48:26.223Z (about 2 years ago)
- Topics: cargo, nix, nix-flake, obsidian, obsidian-vault, rofi-scripts, rust
- Language: Rust
- Homepage:
- Size: 59.6 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rofi-obsidian
[](https://crates.io/crates/rofi-obsidian)
[](https://search.nixos.org/packages?channel=unstable&show=rofi-obsidian)


This project currently has 2 main goals, integrating the opening of specific obsidian vaults directly into [rofi](https://github.com/davatorium/rofi), and circumventing a shortcoming obsidian currently has, which is being unable to select which vault to open at startup.
This programs makes use of x-scheme-handler to open the program that is currently assigned to handling `obsidian://*` URIs.
# Example installation
### Using cargo
#### From crates.io
Execute:
```sh
cargo install rofi-obsidian
```
#### From source
Clone the repository and execute:
```sh
cargo install
```
### Using Nix
#### Nixpkgs
```sh
nix profile install nixpkgs#rofi-obsidian
```
#### Latest changes
```sh
nix profile install github:Nydragon/rofi-obsidian
```
### Manually
Either add the binary to your $PATH environment variable or move it into the $XDG_CONFIG_HOME/rofi/scripts folder.
## Final Step
Don't forget to modify your config.rasi in the following way:
Add `"obsidian:rofi-obsidian"` to the `modes` array and `obsidian` to `combi-modes`.
You may circumvent step 1 and specify the entire path to the binary instead: "obsidian:/home/nico/.config/rofi/rofi-obsidian".
A minimal config example could look like this:
```rasi
configuration {
combi-modes: ["obsidian"];
modes: ["obsidian:rofi-obsidian"]
}
```
# Troubleshooting
## Obsidian doesn't start
Make sure that one of the following programs is installed:
- xdg-open
- gio
- gnome-open
- kde-open
## A different program starts when using the plugin
Execute the following command (or an equivalent command to inspect mime type associations):
```bash
xdg-mime query default x-scheme-handler/obsidian
```
It should return the executable being used to start Obsidian.