Skip to content

InDate/obsidian-canvas-mapping

Repository files navigation

Obsidian Canvas Mapping

If you find yourself wishing you had more control over what your sending to ChatGPT, so that you can carefully craft the perfect story, book, paper, song, whatever - then this plugin is for you. Using the Canvas within Obisidan, you can quickly create maps through simple questions. From the mapping, you can then control what notes are sent to the model by updating which of them are connected. All responses from the model are then processed and added as more notes. This is to help you more efficiently map out ideas, stay in control of the context and stay in your favourite app, Obsidian.

Install

  • Not available in Community Plugins.

Setup

Add an OpenAI API key in Chat Stream settings.

Usage

  1. Select a note in the canvas
  2. Press Alt+Shift+G to generate new note from GPT using current note + ancestors
  3. To create next note for responding, press Alt+Shift+N.

AI notes are colored purple, and tagged with chat_role=assistant in the canvas data file.

Development

  1. Download source and install dependencies

     pnpm install
    
  2. In Obsidian, install and enable hot reload plugin

  3. Create symbolic link from this project dir to an Obsidian store

     ln -s . your-obsidian-store/.obsidian/plugins/chat-stream
    
  4. Start dev server

    pnpm run dev
    
  5. In Obsidian, enable Canvas Mapping Plugin and add OpenAI key in plugin settings.

Changes to code should automatically be loaded into Obsidian.

Attribution

About

Using canvas and gpt to map ideas/thoughts/processes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published