Giter Club home page Giter Club logo

caret-plugin-table-tools's Introduction

Caret-Plugin-Table-Tools

This Caret plugin currently allows for CSV to be converted to Markdown and soon for easy Markdown table formatting. Eventually it will allow for HTML formatting as well.

Here's the link to the extension on the chrome webstore.

The options for CSV To Markdown Table are passed via "optionsCSV"

Note: the patten for formatting a Markdown Table is influenced by CSV To Markdown Table.

To use with Caret

You'll need to add the following to your api.json file, under settings menu. This plugin can pass the same options that JS-Beautify does in the 'options' tag. Note: The id is the id found under extensions. The one in here is for hte plugin on the webstore.

api.json

{
	"sampleMessage": {
		"id": "extension id goes here",
		"message": {
			"data": "message can be any JSON object passable to chrome.runtime.sendMessageExternal"
		}
	},"CSV-to-MD": {
		"id": "npkbhkdbgkoanfjllmookbonhfpckdel",
		"message": {
		  "command":"CSV-to-MD",
			"optionsCSV": {
				// "deliminator": "\t", //tab
				"deliminator": ",", //,
				// "header": false
				"header": true
			}
		},
		"sendEditorContext": true
	}
	,"Pretty-MD": {
		"id": "npkbhkdbgkoanfjllmookbonhfpckdel",
	  "message": {
	    "command":"Pretty-MD"
	  },
		"sendEditorContext": true
	}
}

menus.json

This is optional, but allows the command to be accessable in menu system.

{
	"label": "MD Table Beautify",
	"command": "api:execute",
	"argument": "Pretty-MD"
},
{
	"label": "Format SQL",
	"command": "api:execute",
	"argument": "format-SQL"
}

The following have contributed works

Without the following, this plug-in would not exist. Thanks to their works.

caret-plugin-table-tools's People

Contributors

danshrader avatar

Watchers

 avatar

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.