Replies: 12 comments 12 replies
-
Apparently it's really easy to use tmlanguage files in VS Code. Initial version of a VS Code extension: https://github.com/ttscoff/VSCode-Bunch Anyone want to pitch in on expanding it? I'll gladly add maintainers to that repo. |
Beta Was this translation helpful? Give feedback.
-
First of all, thank you @ttscoff for Bunch! I'm a pretty new user and as someone who prefers to edit text, I'm finding Bunch is a powerful complement to Keyboard Maestro. VSCode is my main text editor, so thanks Brett and @kotfu for working on this. I've briefly tested this extension and can confirm that syntax highlighting works. I haven't developed VSCode extensions but could help with documentation if that would be useful. |
Beta Was this translation helpful? Give feedback.
-
@kotfu I added new syntax for heredocs in the current beta. It will affect both the TM and VSC bundles, but doesn't break any existing highlighting. It affects AppleScript and Shell Script lines, as well as variable assignments. There's also new support for using snippet syntax on variable assignments and script lines. Just in case you weren't busy enough :). |
Beta Was this translation helpful? Give feedback.
-
Also, should you be able to use the embedded script syntax when assigning to a variable, like:
|
Beta Was this translation helpful? Give feedback.
-
@ttscoff, do you have (or can you make) a png version of the bunch icon with a transparent background? The VSCode Marketplace lets you add an icon, but it has to be local to your repository (i.e. no linking to assets on the web). I used I used the one at https://cdn.bunchapp.co/images/[email protected], but when it is displayed by VSCode, it renders black for the background instead of making it transparent. If so, just commit it in https://github.com/ttscoff/VSCode-Bunch/tree/main/gfx. I'll get it hooked up properly. Thx |
Beta Was this translation helpful? Give feedback.
-
There should be a PNG version at
***@***.*** (and a 350px version
if you remove the @2x). Let me know if that doesn't work, maybe you need
a square version _without_ transparent bg?
|
Beta Was this translation helpful? Give feedback.
-
The Visual Studio Code Extension for Bunch is now available in the Visual Studio Code Marketplace. When you open a bunch file in VS Code, it will prompt you to install the extension. To install manually:
Updates will be installed automatically by Visual Studio Code. |
Beta Was this translation helpful? Give feedback.
-
@ttscoff, you've got a section for the VS Code extension in integration/advanced-scripting/ide-packages.md that now needs to be updated. That section appears only in the main branch, not develop. Do you want a PR for these updates on the main branch or develop? I've also got a screenshot to include, but that can't go in the PR. How would you advise me to proceed? |
Beta Was this translation helpful? Give feedback.
-
I’ll need to pull the screenshot into the assets folder which isn’t in the repo, so make a pr on develop and include a link to the image in the comment. Thanks!
(I still need to get back to you on heredoc thoughts, but am enjoying a long weekend AFK.)
- Brett
…On Sep 6, 2021, 2:48 PM -0500, kotfu ***@***.***>, wrote:
@ttscoff, you've got a section for the VS Code extension in integration/advanced-scripting/ide-packages.md that now needs to be updated. That section appears only in the main branch, not develop. Do you want a PR for these updates on the main branch or develop? I've also got a screenshot to include, but that can't go in the PR. How would you advise me to proceed?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Beta Was this translation helpful? Give feedback.
-
Oh, and let me go fix the main/develop mismatch right now.
- Brett
…On Sep 6, 2021, 2:48 PM -0500, kotfu ***@***.***>, wrote:
@ttscoff, you've got a section for the VS Code extension in integration/advanced-scripting/ide-packages.md that now needs to be updated. That section appears only in the main branch, not develop. Do you want a PR for these updates on the main branch or develop? I've also got a screenshot to include, but that can't go in the PR. How would you advise me to proceed?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Beta Was this translation helpful? Give feedback.
-
Version 1.1.0 of the VSCode extension has been published to the marketplace. VSCode will automatically update this for you. Version 1.1.0 of the extension contains support for the new syntaxes added in Bunch 1.4.5. |
Beta Was this translation helpful? Give feedback.
-
Cached on the CDN. You an either get it directly from the site by taking
`cdn.` out of the url, or add a cache buster like:
***@***.***
Any random number `.[BUSTER].png` will do it.
…-Brett
On 18 Oct 2021, at 21:00, kotfu wrote:
All the web assets aren't updated with the fancy new icon from 1.4.5.
i.e. ***@***.***` isn't the
same picture as `https://cdn.bunchapp.co/images/bunchicon-350.png`.
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#138 (reply in thread)
|
Beta Was this translation helpful? Give feedback.
-
There are now Bunch IDE integrations for both Sublime Text and TextMate (thanks @kotfu). I'd love to see one for VS Code, but I don't have the time/energy to learn how to write a package for an app I'm not currently using. I get why people like VS Code, though, and I would wager it's the most popular IDE out there right now, so Bunch support would be awesome.
If anyone wants to help out, you can see the code for both existing packages on GitHub. Between the two, all of the regexes you'd need to add syntax highlighting should already be written:
If you have the time/motivation to port to VS Code and need anything from me, just let me know!
Beta Was this translation helpful? Give feedback.
All reactions