Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jplattel/obsidian-clipper
A Chrome extension that easily clips selections to Obsidian
https://github.com/jplattel/obsidian-clipper
chrome clipper extension obsidian obsidian-md
Last synced: 25 days ago
JSON representation
A Chrome extension that easily clips selections to Obsidian
- Host: GitHub
- URL: https://github.com/jplattel/obsidian-clipper
- Owner: jplattel
- Created: 2020-10-07T21:38:26.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-10-11T12:32:13.000Z (about 1 year ago)
- Last Synced: 2024-09-30T09:40:53.105Z (about 1 month ago)
- Topics: chrome, clipper, extension, obsidian, obsidian-md
- Language: JavaScript
- Homepage: https://jplattel.github.io/obsidian-clipper/
- Size: 7.6 MB
- Stars: 741
- Watchers: 13
- Forks: 60
- Open Issues: 42
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
- project-awesome - jplattel/obsidian-clipper - A Chrome extension that easily clips selections to Obsidian (JavaScript)
- awesome-obsidian - Obsidian Clipper
- jimsghstars - jplattel/obsidian-clipper - A Chrome extension that easily clips selections to Obsidian (JavaScript)
README
# Obsidian Chrome Clipper
## Screencast
![Screencast](docs/demo.gif)
This is an unofficial Chrome/Firefox Extension to quickly clip a selection on a webpage to Obsidian.
## Installing (Chrome)
### From the Chrome Webstore
https://chrome.google.com/webstore/detail/obsidian-clipper/mphkdfmipddgfobjhphabphmpdckgfhb
### Manually
1. Download/clone this repository
2. Navigate to the [Chrome Extension](chrome://extensions) and enabled developer mode (top right of your window)
3. Unzip the extension at the `build/chrome` folder. Or straight from the source with the `src` folder.
3. Load unpacked extension and navigate to the folder you just unzipped or `src` of this repository you just downloaded or cloned.
4. Chrome will now build the extension and you can use the extension menu to pin in to the user interface.
5. You're now ready to configure the extension, see the steps below in Usage & Settings:## Installing (Firefox)
1. Download/clone this repository
2. Allow unsigned extensions, see [https://www.thewindowsclub.com/allow-unsigned-extensions-installed-firefox](https://www.thewindowsclub.com/allow-unsigned-extensions-installed-firefox).
3. Navigate to the [Firefox Addons](about:addons)
4. Add the zipfile from `build/firefox` through the cog menu.
5. You're now ready to configure the extension, see the steps below in Usage & Settings:This extenion is only tested on Chrome/Firefox on OS X. I've heard people got it working on Unix with the flatpak Obsidian app.
## Usage & Settings
[Antone Heyward made an awesome video on how to use the clipper!](https://www.youtube.com/watch?v=PZnytCMbR-A) be sure to have a look!
1. Right-click on the extension icon in the menu, and click on options.
2. A webpage should open where you can configure the options for this extension
3. You can configure the following:
- `vault`: Allows you to specify which vault to open
- `note`: The name of the note you want to append to
4. You can specify the clipping template using placeholders like `{clip}`, `{date}` and more like `{month}` or `{year}`.
5. Decide if you want a markdown clip (HTML is converted to markdown and added to your clipboard) or plain text.
6. You cen test if Obsidian opens with the right note with the 'Test Configuration' button.Once configured, you're now good to go, using it only takes two steps:
1. Make a selection on a page and click the icon of the extension _(or use a shortcut key!)_.
2. Obsidian will try to create or append to the specified note within the vault.## Troubleshooting
- I click the clipper icon and nothing is being clipped
- _You need a selection for the clipper to work, it doesn't clip entire pages_
- A tab opens and closes shortly therafter and Obsidian doens't open
- Double check you [configuration](chrome-extension://ljdpoilhdidlcanedjhionbakimbdfjk/options.html) and test it with the button at the bottom of the page.
- _Manually navigate to `obsidian://` first to see if it's a permission issue_
- _Then try opening: `https://jplattel.github.io/obsidian-clipper/clip.html`_
- _Try specifying the vault name: `https://jplattel.github.io/obsidian-clipper/clip.html?vault=`_
- _If nothing works, please make a note at issue [#14](https://github.com/jplattel/obsidian-clipper/issues/14)_## Building further upon this extension
Since Chrome allows you to set a custom shortcut to activate an extenion it should be pretty easy to chain it together with Keyboard Meastro or any other automation technology to both clip & paste the results.
## Roadmap
- ~~Support Firefox~~
- ~~Allow a user to create a clipping template~~
- ~~Markdown clipping with [Turndown](https://github.com/domchristie/turndown)~~
- ~~Make a option that let's you prepend a Zettelkasten id to the clipping itself? (through the template perhaps?)~~
- ~~Date formatting with Moment~~
- ~~Once the url-scheme of Obsidian allows the creation of a new note, clip to a new note.~~
- In the long term future, maybe even offer the possiblity to search through your notes and append it?
- If you have any ideas, please create an issue with the `feature` label on it, thanks! 😁## Technical explanation
This clipper is made possible with a work-around, since Chrome Extensions are forbidden to open custom url-schemes directly. The way around this issue is a custom html page that is hosted on Github-pages and also included in the repository: `docs/clip.html`. This little file contains javascript that pulls the data like vault & note out of the url params. With this data, it reconstructs the obsidian url and opens the right note!
## Support
Want to support me? You can do so via Ko-Fi:
[![ko-fi](https://www.ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/R6R62KRKX)