├── icon.png
├── .vscodeignore
├── dist
├── yalikejazz-1.0.1.vsix
└── yalikejazz-1.0.2.vsix
├── CHANGELOG.md
├── .vscode
└── launch.json
├── README.md
├── LICENSE
├── vsc-extension-quickstart.md
├── package.json
├── main.js
├── yarn-error.log
└── source
└── beeMovieScript.js
/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kartikcho/Ya-Like-Jazz/HEAD/icon.png
--------------------------------------------------------------------------------
/.vscodeignore:
--------------------------------------------------------------------------------
1 | .vscode/**
2 | .vscode-test/**
3 | .gitignore
4 | vsc-extension-quickstart.md
5 |
--------------------------------------------------------------------------------
/dist/yalikejazz-1.0.1.vsix:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kartikcho/Ya-Like-Jazz/HEAD/dist/yalikejazz-1.0.1.vsix
--------------------------------------------------------------------------------
/dist/yalikejazz-1.0.2.vsix:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kartikcho/Ya-Like-Jazz/HEAD/dist/yalikejazz-1.0.2.vsix
--------------------------------------------------------------------------------
/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # Change Log
2 |
3 | All notable changes to the "yalikejazz" extension will be documented in this file.
4 |
5 | ## [1.0.0]
6 |
7 | - Initial release of the 🐝
8 |
--------------------------------------------------------------------------------
/.vscode/launch.json:
--------------------------------------------------------------------------------
1 | // A launch configuration that launches the extension inside a new window
2 | // Use IntelliSense to learn about possible attributes.
3 | // Hover to view descriptions of existing attributes.
4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5 | {
6 | "version": "0.2.0",
7 | "configurations": [
8 | {
9 | "name": "Extension",
10 | "type": "extensionHost",
11 | "request": "launch",
12 | "runtimeExecutable": "${execPath}",
13 | "args": [
14 | "--extensionDevelopmentPath=${workspaceFolder}"
15 | ]
16 | }
17 | ]
18 | }
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | #### [Repository](https://github.com/kartikcho/Ya-Like-Jazz) | [Issues](https://github.com/kartikcho/Ya-Like-Jazz/issues) | [Author](https://github.com/kartikcho)
6 |
7 | ## What it does
8 |
9 | Insert a line/para from the Bee Movie script to replace using the boring old Lorem Ipsum text for placeholder texts.
10 |
11 | ## Usage
12 |
13 | Open your command palette (press F1), type jazz and choose to insert a line or para.
14 |
15 | 
16 |
17 | ## Why I made it
18 |
19 | The world needs less lorem ipsum and more bees!
20 |
21 | ## Support
22 |
23 | This isn't exactly worth a cup of coffee but you can show support by using the extension, opening PRs, issues and dropping a star ⭐:)
24 |
25 | If you wish to donate, help out your local bee conservation organization! 🐝
26 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2020 Kartik Choudhary
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/vsc-extension-quickstart.md:
--------------------------------------------------------------------------------
1 | # Welcome to your VS Code Extension
2 |
3 | ## What's in the folder
4 |
5 | * This folder contains all of the files necessary for your extension.
6 | * `package.json` - this is the manifest file that defines the location of the snippet file and specifies the language of the snippets.
7 | * `snippets/snippets.json` - the file containing all snippets.
8 |
9 | ## Get up and running straight away
10 |
11 | * Press `F5` to open a new window with your extension loaded.
12 | * Create a new file with a file name suffix matching your language.
13 | * Verify that your snippets are proposed on intellisense.
14 |
15 | ## Make changes
16 |
17 | * You can relaunch the extension from the debug toolbar after making changes to the files listed above.
18 | * You can also reload (`Ctrl+R` or `Cmd+R` on Mac) the VS Code window with your extension to load your changes.
19 |
20 | ## Install your extension
21 |
22 | * To start using your extension with Visual Studio Code copy it into the `/.vscode/extensions` folder and restart Code.
23 | * To share your extension with the world, read on https://code.visualstudio.com/docs about publishing an extension.
24 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "yalikejazz",
3 | "displayName": "Ya Like Jazz",
4 | "description": "Add a line or para from The Bee Movie script to replace the boring old Lorem Ipsum text",
5 | "version": "1.1.0",
6 | "publisher": "kartikch",
7 | "icon": "icon.png",
8 | "repository": {
9 | "type": "git",
10 | "url": "https://github.com/kartik918/Ya-Like-Jazz"
11 | },
12 | "homepage": "https://github.com/kartik918/Ya-Like-Jazz",
13 | "bugs": {
14 | "url": "https://github.com/kartik918/Ya-Like-Jazz/issues"
15 | },
16 | "engines": {
17 | "vscode": "^1.46.0"
18 | },
19 | "categories": [
20 | "Other"
21 | ],
22 | "activationEvents": [
23 | "onCommand:jazz.line",
24 | "onCommand:jazz.para",
25 | "onCommand:jazz.multiplePara"
26 | ],
27 | "main": "./main",
28 | "contributes": {
29 | "commands": [
30 | {
31 | "command": "jazz.line",
32 | "title": "Ya Like Jazz: Insert a line from The Bee Movie"
33 | },
34 | {
35 | "command": "jazz.para",
36 | "title": "Ya Like Jazz: Insert a paragraph from The Bee Movie"
37 | },
38 | {
39 | "command": "jazz.multiplePara",
40 | "title": "Ya Like Jazz: Insert multiple paragraphs from The Bee Movie"
41 | }
42 | ]
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/main.js:
--------------------------------------------------------------------------------
1 | var vscode = require("vscode");
2 | var beeScript = require("./source/beeMovieScript.js");
3 |
4 | var scriptLine = beeScript.scriptLine;
5 | var scriptPara = beeScript.scriptPara;
6 |
7 | function activate(context) {
8 | var commands = [
9 | vscode.commands.registerCommand("jazz.line", insertLine),
10 | vscode.commands.registerCommand("jazz.para", insertPara),
11 | vscode.commands.registerCommand("jazz.multiplePara", insertMultiPara),
12 | ];
13 | // Register all commands
14 | commands.forEach(function (command) {
15 | context.subscriptions.push(command);
16 | });
17 | }
18 |
19 | function insertText(value, totalParas) {
20 | var editor = vscode.window.activeTextEditor;
21 | editor.edit((edit) =>
22 | editor.selections.forEach((selection) => {
23 | edit.delete(selection);
24 | // Pick a line at random
25 | if (value === "line") {
26 | let randomLine =
27 | scriptLine[Math.floor(Math.random() * scriptLine.length)];
28 | edit.insert(selection.start, randomLine);
29 | }
30 | // Pick a para at random
31 | if (value === "para") {
32 | let randomPara =
33 | scriptPara[Math.floor(Math.random() * scriptPara.length)];
34 | edit.insert(selection.start, randomPara);
35 | }
36 | // Pick multiple random paras
37 | if (value === "multiPara") {
38 | for (let i = 0; i < totalParas; i++) {
39 | let randomPara =
40 | scriptPara[Math.floor(Math.random() * scriptPara.length)] + "\n\n";
41 | edit.insert(selection.start, randomPara);
42 | }
43 | }
44 | })
45 | );
46 | }
47 |
48 | function insertLine() {
49 | insertText("line");
50 | }
51 |
52 | function insertPara() {
53 | insertText("para");
54 | }
55 |
56 | async function insertMultiPara() {
57 | const countList = [];
58 | for (let i = 2; i <= 5; i++) {
59 | countList.push(i.toString());
60 | }
61 |
62 | const totalParas = await vscode.window.showQuickPick(countList, {
63 | placeHolder: "Select number of paras to insert",
64 | });
65 |
66 | insertText("multiPara", totalParas);
67 | }
68 |
69 | exports.activate = activate;
70 |
--------------------------------------------------------------------------------
/yarn-error.log:
--------------------------------------------------------------------------------
1 | Arguments:
2 | C:\Program Files\nodejs\node.exe C:\Users\Asus\AppData\Roaming\npm\node_modules\yarn\bin\yarn.js test
3 |
4 | PATH:
5 | C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\iCLS\;C:\Program Files\Intel\Intel(R) Management Engine Components\iCLS\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Git\cmd;C:\Program Files\nodejs\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\TortoiseHg\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Users\Asus\.cargo\bin;C:\Users\Asus\AppData\Local\Programs\Python\Python37\Scripts\;C:\Users\Asus\AppData\Local\Programs\Python\Python37\;C:\Users\Asus\AppData\Local\Microsoft\WindowsApps;C:\Users\Asus\AppData\Local\GitHubDesktop\bin;C:\Program Files\Java\jdk1.8.0_181\bin;C:\Program Files (x86)\mingw-w64\i686-8.1.0-posix-dwarf-rt_v6-rev0\mingw32\bin;C:\Users\Asus\AppData\Roaming\npm;C:\Users\Asus\AppData\Local\Microsoft\WindowsApps;C:\Users\Asus\AppData\Local\Programs\Microsoft VS Code\bin
6 |
7 | Yarn version:
8 | 1.17.3
9 |
10 | Node version:
11 | 10.16.3
12 |
13 | Platform:
14 | win32 x64
15 |
16 | Trace:
17 | SyntaxError: F:\Github\Ya-Like-Jazz\package.json: Unexpected token } in JSON at position 895
18 | at JSON.parse ()
19 | at C:\Users\Asus\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:1625:59
20 | at Generator.next ()
21 | at step (C:\Users\Asus\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:304:30)
22 | at C:\Users\Asus\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:315:13
23 |
24 | npm manifest:
25 | {
26 | "name": "yalikejazz",
27 | "displayName": "yalikejazz",
28 | "description": "Add an excerpt from The Bee Movie to replace the boring old Lorem Ipsum text",
29 | "version": "1.0.0",
30 | "publisher": "Kartik Choudhary",
31 | "icon": "icon.png",
32 | "repository": {
33 | "type": "git",
34 | "url": "https://github.com/kartik918/Ya-Like-Jazz"
35 | },
36 | "homepage": "https://github.com/kartik918/Ya-Like-Jazz",
37 | "bugs": {
38 | "url": "https://github.com/kartik918/Ya-Like-Jazz/issues"
39 | },
40 | "engines": {
41 | "vscode": "^1.46.0"
42 | },
43 | "categories": [
44 | "Other"
45 | ],
46 | "activationEvents": [
47 | "onCommand:jazz.line",
48 | "onCommand:jazz.para"
49 | ],
50 | "main": "./extension",
51 | "contributes": {
52 | "snippets": [
53 | {
54 | "language": "",
55 | "path": "./snippets/snippets.code-snippets"
56 | }
57 | ]
58 | },
59 |
60 | }
61 |
62 | yarn manifest:
63 | No manifest
64 |
65 | Lockfile:
66 | No lockfile
67 |
--------------------------------------------------------------------------------
/source/beeMovieScript.js:
--------------------------------------------------------------------------------
1 | exports.scriptLine = [
2 | 'According to all known laws of aviation, there is no way a bee should be able to fly.',
3 | 'The bee, of course, flies anyway because bees don\'t care what humans think is impossible.',
4 | 'Yellow, black. Yellow, black. Yellow, black. Yellow, black.',
5 | 'You\'ll be happy to know that bees, as a species, haven\'t had one day off in 27 million years.',
6 | 'You like jazz?',
7 | 'Bees are funny. If we didn\'t laugh, we\'d cry with what we have to deal with.',
8 | 'I dated a cricket once in San Antonio. Those crazy legs kept me up all night.',
9 | 'We live on two cups honey a year. Humans put it in lip balm for no reason whatsoever!',
10 | 'When I\'m done with the humans, they won\'t be able to say, "Honey, I\'m home," without paying a royalty!',
11 | 'If we lived in the topsy-turvy world Mr. Benson imagines, just think of what would it mean. I would have to negotiate with the silkworm for the elastic in my britches!',
12 | 'Bees have 100 percent employment, but we do jobs like taking the crud out.',
13 | 'I\'ve seen a bee documentary or two. From what I understand, doesn\'t your queen give birth to all the bee children? You\'re an illegitimate bee, aren\'t you, Benson?',
14 | 'I\'m a Pollen Jock! And it\'s a perfect fit. All I gotta do are the sleeves.',
15 | 'Making honey takes a lot of bees doing a lot of small jobs.',
16 | 'Use the stairs. Your father paid good money for those. Sorry. I\'m excited. Here\'s the graduate. We\'re very proud of you, son. A perfect report card, all B\'s. Very proud.',
17 | ];
18 |
19 | exports.scriptPara = [
20 | 'Never thought I\'d make it. Three days grade school, three days high school. Those were awkward. Three days college. I\'m glad I took a day and hitchhiked around the hive. You did come back different.',
21 | 'We know that you, as a bee, have worked your whole life to get to the point where you can work for your whole life. Honey begins when our valiant Pollen Jocks bring the nectar to the hive. Our top-secret formula is automatically color-corrected, scent-adjusted and bubble-contoured into this soothing sweet syrup with its distinctive golden glow you know as Honey\!',
22 | 'Most bee jobs are small ones. But bees know that every small job, if it\'s done well means a lot. But choose carefully because you\'ll stay in the job you pick for the rest of your life.',
23 | 'I pick up some pollen here, sprinkle it over here. Maybe a dash over there, a pinch on that one. See that? It\'s a little bit of magic. That\'s amazing. Why do we do that? That\'s pollen power. More pollen, more flowers, more nectar, more honey for us.',
24 | 'Are you all right? No. He\'s making the tie in the cab as they\'re flying up Madison. He finally gets there. He runs up the steps into the church. The wedding is on. And he says, "Watermelon? I thought you said Guatemalan. Why would I marry a watermelon?" Is that a bee joke?',
25 | 'How come you don\'t fly everywhere? It\'s exhausting. Why don\'t you run everywhere? It\'s faster. Yeah, OK, I see, I see. All right, your turn. TiVo. You can just freeze live TV? That\'s insane! You don\'t have that? We have Hivo, but it\'s a disease. It\'s a horrible, horrible disease.',
26 | 'We try not to sting. It\'s usually fatal for us. So you have to watch your temper. Very carefully. You kick a wall, take a walk, write an angry letter and throw it out. Work through it like any emotion.',
27 | 'Our honey is being brazenly stolen on a massive scale! This is worse than anything bears have done! I intend to do something. Oh, Barry, stop. Who told you humans are taking our honey? That\'s a rumor. Do these look like rumors? That\'s a conspiracy theory. These are obviously doctored photos.',
28 | 'Tonight we\'re talking to Barry Benson. Did you ever think, "I\'m a kid from the hive. I can\'t do this"? Bees have never been afraid to change the world. What about Bee Columbus? Bee Gandhi? Bejesus? Where I\'m from, we\'d never sue humans. We were thinking of stickball or candy stores. ',
29 | ];
--------------------------------------------------------------------------------