Coder Social home page Coder Social logo

rickaym / plywood-gallery-for-vscode Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 2.01 MB

An extension for loading code snippets galleries into VS Code.

License: MIT License

TypeScript 85.95% CSS 4.26% HTML 3.44% JavaScript 6.35%
vscode-extension code-snippets python-utility typescript

plywood-gallery-for-vscode's Introduction

Plywood Gallery For VSCode

Extension Homepage Extension Version

A Visual Studio code extension with rich support for integrating the use of Plywood Gallery: allowing the insertion of code snippets into the editor through images galleries.

Index

  1. Key Features
  2. Introduction
  3. Importing Gallaries
  4. Release Notes

Key Features

  • Visualizing Code Snippets
  • Text/dropdown support for Code Snippets
  • Gain access to many community and official code snippet repositories

Introduction

A Gallery is a list of code and image mappings using the template specifed by the core gallery Plywood Gallery. Individual developers can make a gallery of their own by following the template and publish them to Github where users can download and import them.

Once a gallery is imported, a webview will be installed revealing a set of images that the gallery provides. After placing the cursor down to the desired location, you can press on the images to insert the code snippet tied to it.



After the extension is fully installed, you will be introduced to this treeview on the activity bar.



Here you can control and modify imported galleries.

Certain things you can do inside the treeview

  • Import Local and Remote galleries
  • Remove Local and Remote galleries
  • Check for Remote gallery updates
  • Opening a gallery (clicking on the gallery item)
  • Unpacking code items of a gallery

Importing Galleries

You can load galleries from two distinct locations:

Remote Galleries

Recommended

By default the extension provides a curated list of recommended Galleries.



You click these Galleries to download them instantenously.

For Gallery Developers: if you would like to feature your own Gallery for recommendations, make sure that your gallery meets the given security criteria and create an issue for it!

Repositories

In order to load a remote github gallery, you can use the command plywood-gallery.ImportRemote or via the button for cloud-download in the treeview navigation bar.

This will prompt an input box where you'll have to provide the URL of the repository to be imported. Keep note though that the extension by default looks for a gallery under the main branch of any specified repositories, in cases where this may not be intended, you can specify an optional branch parameter before the URL with a semi-colon.

E.g.

master;https://github.com/kolibril13/plywood-gallery-minimal-example

Local Galleries

In order to load a local gallery, you can use the command:

  • plywood-gallery.ImportLocal
  • via the button for desktop-download

This will launch a file explorer for any .yaml files. Select the gallery_config.yaml file for the local gallery that you want to import (it doesn't have to be named gallery_config) and simply press open.

Importing a gallery inside a batch simply changes the protocol from picking a central gallery_config.yaml file to picking the specific config file for the gallery.

Release Notes

Pre-release!

0.0.1-0.0.2

Initial release of the Plywood Gallery Extension

Credits

plywood-gallery-for-vscode's People

Contributors

kolibril13 avatar rickaym avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

kolibril13

plywood-gallery-for-vscode's Issues

Live rendering

When importing a local gallery, it would be great if this extension has the option of live-update for each new generated entry in a gallery.
Implementation-wise, there would be a function that monitors changes in the JSON file.
Similar to this screen recording of the local hosted webpage, which updates every time a new entry is added:

c1.mov

Extension does not open any more

I've noted that last time I've opened VS Code, the extension does not open any more. I also tried re-installing the extension, without success. I still have the plywood options in the VS Code panel, but clicking on them has no effect. Any ideas why this might be the case?
A few weeks ago, it was still working in version 0.0.3, and I have no idea what I've changed since then.

image

this is the error message in the "extension host" log:

2023-01-03 10:05:15.707 [error] TypeError: Cannot read properties of undefined (reading 'isExternal')
    at y (/Users/jan-hendrik/.vscode/extensions/rickaym.plywood-gallery-0.0.3/dist/extension.js:1:58717)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.