https://github.com/mzmbq/leet-get-problem
Pull LeetCode problems into Obsidian notes using the Templater plugin.
https://github.com/mzmbq/leet-get-problem
leetcode obsidian obsidian-templater
Last synced: 3 months ago
JSON representation
Pull LeetCode problems into Obsidian notes using the Templater plugin.
- Host: GitHub
- URL: https://github.com/mzmbq/leet-get-problem
- Owner: mzmbq
- Created: 2024-02-05T20:09:16.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-09-06T21:20:20.000Z (over 1 year ago)
- Last Synced: 2024-09-07T00:56:50.601Z (over 1 year ago)
- Topics: leetcode, obsidian, obsidian-templater
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LeetCode Problem to Obsidian
A script for Obsidian to fetch LeetCode problems as notes.
This script uses the [Templater](https://github.com/SilentVoid13/Templater) plugin.
## Demo
https://github.com/mzmbq/leet-get-problem/assets/100804739/5b2811d6-2998-4320-9f23-a49e74cfe4cb
## Setup
- Move `templates/templateLeetcode.md` to the template folder.
- Move `scripts/getLeetcodeProblem.js` to the script folder.
Template and script folders are set in Templater settings.
## Usage
- Copy the problem's URL.
- Create a new note.
- Run the `templateLeetcode` template from the **Templater: Open insert template modal** command.
- Watch the note get filled out with the content of the problem.
> [!TIP]
> You can create keyboard shortcuts for this Templater script.
## Template
If the problem contains images, they will be downloaded in the `assets/leetcode_imgs` folder.
You can modify the template to change this folder or disable image downloading.