Skip to content

Pull LeetCode problems into Obsidian using the Templater plugin.

Notifications You must be signed in to change notification settings

mzmbq/leet-get-problem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode Problem to Obsidian

A script for Obsidian to fetch LeetCode problems as notes. This script uses the Templater plugin.

Demo

demo.mp4

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.

About

Pull LeetCode problems into Obsidian using the Templater plugin.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published