{ "name": "rainbow-csv", "displayName": "Rainbow CSV", "description": "Highlight CSV and TSV files, Run SQL-like queries", "version": "2.3.0", "publisher": "mechatroner", "license": "MIT", "icon": "rainbow_csv_logo.png", "engines": { "vscode": "^1.62.0" }, "keywords": [ "csv", "tsv", "highlight" ], "categories": [ "Data Science", "Other", "Programming Languages" ], "activationEvents": [ "onLanguage:csv", "onLanguage:tsv", "onLanguage:csv (semicolon)", "onLanguage:csv (pipe)", "onLanguage:csv (tilde)", "onLanguage:csv (whitespace)", "onLanguage:csv (caret)", "onLanguage:csv (colon)", "onLanguage:csv (double quote)", "onLanguage:csv (equals)", "onLanguage:csv (dot)", "onLanguage:csv (hyphen)", "onLanguage:plaintext", "onCommand:rainbow-csv.RBQL", "onCommand:rainbow-csv.RainbowSeparator", "onCommand:rainbow-csv.SampleHead", "onCommand:rainbow-csv.SampleTail" ], "main": "./extension", "browser": "./dist/web/extension.js", "contributes": { "configuration": { "type": "object", "title": "Rainbow CSV", "properties": { "rainbow_csv.enable_separator_autodetection": { "type": "boolean", "default": true, "description": "Enable automatic content based separator autodetection" }, "rainbow_csv.autodetection_min_line_count": { "type": "number", "default": 10, "description": "Minimum number of non-comment lines in file for content-based autodetection" }, "rainbow_csv.autodetect_separators": { "type": "array", "default": [ "\t", ",", ";", "|" ], "description": "Enable automatic content-based separator autodetection for the specified list of separators", "items": { "type": "string", "description": "Separator" } }, "rainbow_csv.enable_tooltip": { "type": "boolean", "default": true, "description": "Enable column-info tooltip on hover" }, "rainbow_csv.enable_tooltip_column_names": { "type": "boolean", "default": true, "description": "Show column names in tooltip" }, "rainbow_csv.rbql_with_headers_by_default": { "type": "boolean", "default": false, "description": "RBQL treats the first line as header by default" }, "rainbow_csv.rbql_output_dir": { "type": "string", "default": "TMP", "description": "Output directory for RBQL result sets, can be `TMP`, `INPUT` or a custom absolute path. `TMP` - output in system tmp dir(default), `INPUT` - output in the same dir as input file, otherwise use provided path as the output directory e.g. `/path/to/custom/dir`" }, "rainbow_csv.enable_tooltip_warnings": { "type": "boolean", "default": true, "description": "Show warnings in tooltip" }, "rainbow_csv.enable_auto_csv_lint": { "type": "boolean", "default": true, "description": "Enable automatic linting/checking of opened csv files" }, "rainbow_csv.csv_lint_detect_trailing_spaces": { "type": "boolean", "default": false, "description": "CSV Lint: detect leading and trailing whitespaces in fields and show warning" }, "rainbow_csv.comment_prefix": { "type": "string", "default": "", "description": "Comment lines prefix, e.g. \"#\". Set to empty string to disable" }, "rainbow_csv.enable_context_menu_head": { "type": "boolean", "default": true, "description": "Enable \"Preview CSV head\" option in File Explorer context menu" }, "rainbow_csv.enable_context_menu_tail": { "type": "boolean", "default": false, "description": "Enable \"Preview CSV tail\" option in File Explorer context menu" } } }, "menus": { "editor/context": [ { "when": "editorHasSelection && editorLangId == plaintext", "command": "rainbow-csv.RainbowSeparator", "group": "rainbow_csv" }, { "when": "editorTextFocus && editorLangId =~ /^[ct]sv/", "command": "rainbow-csv.SetHeaderLine", "group": "rainbow_csv" } ], "explorer/context": [ { "command": "rainbow-csv.SampleHead", "when": "config.rainbow_csv.enable_context_menu_head", "group": "rainbow_csv" }, { "command": "rainbow-csv.SampleTail", "when": "config.rainbow_csv.enable_context_menu_tail", "group": "rainbow_csv" } ] }, "languages": [ { "id": "csv", "aliases": [ "CSV", "csv" ], "extensions": [ ".csv" ] }, { "id": "tsv", "aliases": [ "TSV", "tsv" ], "extensions": [ ".tsv", ".tab" ] }, { "id": "csv (pipe)", "aliases": [ "CSV (pipe)", "csv (pipe)" ], "extensions": [] }, { "id": "csv (tilde)", "aliases": [ "CSV (tilde)", "csv (tilde)" ], "extensions": [] }, { "id": "csv (whitespace)", "aliases": [ "CSV (whitespace)", "csv (whitespace)" ], "extensions": [] }, { "id": "csv (caret)", "aliases": [ "CSV (caret)", "csv (caret)" ], "extensions": [] }, { "id": "csv (colon)", "aliases": [ "CSV (colon)", "csv (colon)" ], "extensions": [] }, { "id": "csv (double quote)", "aliases": [ "CSV (double quote)", "csv (double quote)" ], "extensions": [] }, { "id": "csv (equals)", "aliases": [ "CSV (equals)", "csv (equals)" ], "extensions": [] }, { "id": "csv (dot)", "aliases": [ "CSV (dot)", "csv (dot)" ], "extensions": [] }, { "id": "csv (hyphen)", "aliases": [ "CSV (hyphen)", "csv (hyphen)" ], "extensions": [] }, { "id": "csv (semicolon)", "aliases": [ "CSV (semicolon)", "csv (semicolon)" ], "extensions": [] }, { "id": "rainbow hover markup", "extensions": [] } ], "commands": [ { "command": "rainbow-csv.CSVLint", "title": "CSV Lint" }, { "command": "rainbow-csv.SetVirtualHeader", "category": "Rainbow CSV", "title": "Set virtual header" }, { "command": "rainbow-csv.SetHeaderLine", "category": "Rainbow CSV", "title": "Set header line" }, { "command": "rainbow-csv.RBQL", "category": "Rainbow CSV", "title": "RBQL" }, { "command": "rainbow-csv.SetJoinTableName", "category": "Rainbow CSV", "title": "Set join table name for RBQL" }, { "command": "rainbow-csv.ColumnEditBefore", "category": "Rainbow CSV", "title": "Column edit before" }, { "command": "rainbow-csv.ColumnEditAfter", "category": "Rainbow CSV", "title": "Column edit after" }, { "command": "rainbow-csv.ColumnEditSelect", "category": "Rainbow CSV", "title": "Column edit select" }, { "command": "rainbow-csv.RainbowSeparator", "title": "Set as Rainbow separator" }, { "command": "rainbow-csv.RainbowSeparatorOff", "title": "RainbowSeparatorOff" }, { "command": "rainbow-csv.Align", "category": "Rainbow CSV", "title": "Align CSV Columns" }, { "command": "rainbow-csv.Shrink", "category": "Rainbow CSV", "title": "Shrink CSV table: Remove leading and trailing whitespaces from all fields" }, { "command": "rainbow-csv.CopyBack", "title": "CopyBack" }, { "command": "rainbow-csv.SampleHead", "title": "Preview big CSV: head" }, { "command": "rainbow-csv.SampleTail", "title": "Preview big CSV: tail" } ], "grammars": [ { "language": "csv", "scopeName": "text.csv", "path": "./syntaxes/csv.tmLanguage.json" }, { "language": "tsv", "scopeName": "text.tsv", "path": "./syntaxes/tsv.tmLanguage.json" }, { "language": "csv (pipe)", "scopeName": "text.psv", "path": "./syntaxes/pipe_simple.tmLanguage.json" }, { "language": "csv (tilde)", "scopeName": "text.tldsv", "path": "./syntaxes/tldsv.tmLanguage.json" }, { "language": "csv (whitespace)", "scopeName": "text.wspcsv", "path": "./syntaxes/wspcsv.tmLanguage.json" }, { "language": "csv (caret)", "scopeName": "text.crtsv", "path": "./syntaxes/crtsv.tmLanguage.json" }, { "language": "csv (colon)", "scopeName": "text.clnsv", "path": "./syntaxes/clnsv.tmLanguage.json" }, { "language": "csv (double quote)", "scopeName": "text.dbqsv", "path": "./syntaxes/dbqsv.tmLanguage.json" }, { "language": "csv (equals)", "scopeName": "text.eqlsv", "path": "./syntaxes/eqlsv.tmLanguage.json" }, { "language": "csv (dot)", "scopeName": "text.dotsv", "path": "./syntaxes/dotsv.tmLanguage.json" }, { "language": "csv (hyphen)", "scopeName": "text.hypsv", "path": "./syntaxes/hypsv.tmLanguage.json" }, { "language": "csv (semicolon)", "scopeName": "text.scsv", "path": "./syntaxes/scsv.tmLanguage.json" }, { "language": "rainbow hover markup", "scopeName": "text.rbhover", "path": "./syntaxes/rb_hover.tmLanguage.json" } ] }, "capabilities": { "hoverProvider": "true" }, "scripts": { "vscode:prepublish": "npm run package-web", "compile-web": "webpack", "lint": "eslint rainbow_utils.js extension.js test/runTest.js && eslint -c .eslintrc_browser.json rainbow_utils.js rbql_client.js", "watch-web": "webpack --watch", "package-web": "webpack --mode production --devtool hidden-source-map", "start-web-server": "vscode-test-web --version stable --browser=none --extensionDevelopmentPath=. .", "test-in-browser": "vscode-test-web --version stable --browser=chromium --extensionDevelopmentPath=. --extensionTestsPath=dist/web/test/suite/index.js .", "test": "node ./test/runTest.js" }, "devDependencies": { "@types/vscode": "^1.62.0", "@vscode/test-web": "^0.0.22", "@vscode/test-electron": "^1.6.1", "webpack": "^5.64.0", "webpack-cli": "^4.9.1", "assert": "^2.0.0", "process": "^0.11.10", "eslint": "^7.21.0" }, "repository": { "type": "git", "url": "https://github.com/mechatroner/vscode_rainbow_csv" }, "__metadata": { "id": "3792588c-3d35-442d-91ea-fe6a755e8155", "publisherId": "0d5438b6-325a-4f88-aa28-6192aa2cf2a6", "publisherDisplayName": "mechatroner", "targetPlatform": "undefined", "updated": true, "isPreReleaseVersion": false, "preRelease": false, "installedTimestamp": 1651406513766 } }