OpenInObsidian
Open .md files in Obsidian
Details
Installs
- Total 0
- Win 0
- Mac 0
- Linux 0
| Nov 13 | Nov 12 | Nov 11 | Nov 10 | Nov 9 | Nov 8 | Nov 7 | Nov 6 | Nov 5 | Nov 4 | Nov 3 | Nov 2 | Nov 1 | Oct 31 | Oct 30 | Oct 29 | Oct 28 | Oct 27 | Oct 26 | Oct 25 | Oct 24 | Oct 23 | Oct 22 | Oct 21 | Oct 20 | Oct 19 | Oct 18 | Oct 17 | Oct 16 | Oct 15 | Oct 14 | Oct 13 | Oct 12 | Oct 11 | Oct 10 | Oct 9 | Oct 8 | Oct 7 | Oct 6 | Oct 5 | Oct 4 | Oct 3 | Oct 2 | Oct 1 | Sep 30 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
Open in Obsidian
A Sublime Text 4 package that opens Markdown files in Obsidian 1.14 or newer, which edits files outside a vault in place.
Usage
| Where | Action |
|---|---|
| Command Palette | Open in Obsidian: Current File |
| Keyboard | Optional; see Key bindings |
| Editor and tab context menus | Open in Obsidian |
| Sidebar | Right-click one or more Markdown files and choose Open in Obsidian |
Modified files are saved before Obsidian opens them.
Platform support
| Platform | Launch command |
|---|---|
| macOS | open -a Obsidian <file> |
| Windows | %LOCALAPPDATA%\Programs\Obsidian\Obsidian.exe <file>, then %ProgramFiles%, then PATH |
| Linux | obsidian <file> from PATH (deb, AppImage symlink, snap), then Flatpak md.obsidian.Obsidian |
Settings
Preferences > Package Settings > OpenInObsidian > Settings
| Key | Default | Purpose |
|---|---|---|
extensions |
[".md", ".markdown", ".mdown", ".mdx"] |
Extensions treated as Markdown |
show_in_context_menus |
true |
Show the entry in the editor, tab and sidebar context menus |
save_before_open |
true |
Save modified files before opening |
obsidian_command |
null |
Launch command (string or list) with the file path appended, for example ["/opt/Obsidian.AppImage"] |
Key bindings
Example.sublime-keymap lists a binding per platform. Open Preferences > Package Settings > OpenInObsidian > Key Bindings, which shows the examples beside your own key bindings file, and copy the one you want:
{
"keys": ["super+shift+o"],
"command": "open_in_obsidian",
"context": [{ "key": "selector", "operator": "equal", "operand": "text.html.markdown" }]
}
Use ctrl+alt+o on Windows and Linux.
Installation
Install OpenInObsidian through Package Control, or clone this repository into the Sublime Text Packages directory under the name OpenInObsidian:
cd "<Sublime Text Packages dir>"
git clone https://github.com/thedanheller/sublime-text-open-in-obsidian OpenInObsidian
Open the directory with Preferences > Browse Packages….