#coding
  • 1.
    Snippets
    3 months ago by Pelao
    favorite
    share
    Category: Coding & Technical Tools
    The Snippets plugin allows users to run code snippets directly within Obsidian. It supports multiple languages such as Python, JavaScript, and shell scripts, making it useful for users who want to automate tasks, run simple scripts, or trigger external services from within their notes. The plugin provides a 'Run' button for recognized snippets in preview mode and also allows users to execute code directly from edit mode using a keyboard shortcut or command palette option. The output of the executed code is displayed either in a modal or appended to the note. Users can configure templates and customize the behavior of the output for each supported language. Placeholders like vault path, file name, and file path can be dynamically included in scripts, enabling more advanced automation. This tool is ideal for users who want to integrate coding functionality into their note-taking workflow.
    View Plugin Details