Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » Integrating Git with the Scratch editor
- ajskateboarder
- Scratcher
1000+ posts
Integrating Git with the Scratch editor
You can find it here along with a demo video. This is meant for Turbowarp, and isn't completely finished either
Note that this is just a silly dumb side project so I'm probably going to give it up in a few months because I'm busy :| haha just kidding
It's very satisfying though. All you have to do to commit changes is click the Save button. I'm trying to make it as integrated, simple, and feature-rich as possible
Note that this is just a silly dumb side project so I'm probably going to give it up in a few months because I'm busy :| haha just kidding
It's very satisfying though. All you have to do to commit changes is click the Save button. I'm trying to make it as integrated, simple, and feature-rich as possible
Last edited by ajskateboarder (Jan. 7, 2024 22:54:34)
- ajskateboarder
- Scratcher
1000+ posts
Integrating Git with the Scratch editor
I would say it works on all Linux distros if it actually could It is literally impossible for a program to only work on Debian.
Some of the functions here use paths for the Debian version of TurboWarp Desktop. Those functions would break elsewhere since TurboWarp wouldn't use those paths
- MagicCrayon9342
- Scratcher
1000+ posts
Integrating Git with the Scratch editor
That's why you you make the script find the path of turbowarp (or ask for it).I would say it works on all Linux distros if it actually could It is literally impossible for a program to only work on Debian.
Some of the functions here use paths for the Debian version of TurboWarp Desktop. Those functions would break elsewhere since TurboWarp wouldn't use those paths
- ajskateboarder
- Scratcher
1000+ posts
Integrating Git with the Scratch editor
You could've read the function to understand why I use a manual path. `turbowarp` is not globally available. Plus, this is in more of a proof-of-concept stage, so I don't really care about compatibility right now.That's why you you make the script find the path of turbowarp (or ask for it). Those functions would break elsewhere since TurboWarp wouldn't use those paths
I was expecting some feedback or something, not something super minute lol
- MagicCrayon9342
- Scratcher
1000+ posts
Integrating Git with the Scratch editor
is the turbowarp binary placed in a directory in the PATH variable when installed?You could've read the function to understand why I use a manual path. `turbowarp` is not globally available. Plus, this is in more of a proof-of-concept stage, so I don't really care about compatibility right now.That's why you you make the script find the path of turbowarp (or ask for it). Those functions would break elsewhere since TurboWarp wouldn't use those paths
I was expecting some feedback or something, not something super minute lol
- davidtheplatform
- Scratcher
500+ posts
Integrating Git with the Scratch editor
It is literally impossible for a program to only work on Debian.
import subprocess if subprocess.run(['lsb_release', '-is'], stdout=subprocess.PIPE).stdout != b'Debian\n': raise Exception('Wrong OS!') print('Hello world!')
Generation 4: the first time you see this copy and paste it on top of your sig in the scratch forums and increase generation by 1. Social experiment.
- bigspeedfpv
- Scratcher
500+ posts
Integrating Git with the Scratch editor
doesnt turbowarp just use $XDG_CONFIG_HOME? why is it os specific
- ajskateboarder
- Scratcher
1000+ posts
Integrating Git with the Scratch editor
Yeah I could use that for the config directory, that's not a hard fix doesnt turbowarp just use $XDG_CONFIG_HOME? why is it os specific
I'm pretty sure TurboWarp itself is installed in different places though. On Debian, it's located in /opt/TurboWarp
- MagicCrayon9342
- Scratcher
1000+ posts
Integrating Git with the Scratch editor
If TurboWarp actually followed standards it would install to /usr/bin, /usr/share, or /usr/local/bin.Yeah I could use that for the config directory, that's not a hard fix doesnt turbowarp just use $XDG_CONFIG_HOME? why is it os specific
I'm pretty sure TurboWarp itself is installed in different places though. On Debian, it's located in /opt/TurboWarp
- ajskateboarder
- Scratcher
1000+ posts
Integrating Git with the Scratch editor
Bump
I've been working on adding commit generation and code committing/ pushing. What do you guys think of a merge editor for TurboWarp?
I've been working on adding commit generation and code committing/ pushing. What do you guys think of a merge editor for TurboWarp?
- applejuiceproduc
- Scratcher
1000+ posts
Integrating Git with the Scratch editor
Oh that's cool. I might use it at some point. Bump.
I made a demo of scratch-git on the repository. Go check it out!
A signature
- ajskateboarder
- Scratcher
1000+ posts
Integrating Git with the Scratch editor
Making a Git Blame-like viewer
- ajskateboarder
- Scratcher
1000+ posts
Integrating Git with the Scratch editor
Extra stylization
The blame viewer doesn't seem to work when you add extra scripts atm
Last edited by ajskateboarder (Aug. 24, 2023 00:23:33)
- applejuiceproduc
- Scratcher
1000+ posts
Integrating Git with the Scratch editor
Puts "Git integration for Scratch (TurboWarp) that just works" in the description of the project.
Is so unsure if it works that the pop-up says “I think it worked now?”
Is so unsure if it works that the pop-up says “I think it worked now?”
Last edited by applejuiceproduc (Aug. 24, 2023 15:01:27)
A signature
- ajskateboarder
- Scratcher
1000+ posts
Integrating Git with the Scratch editor
I'll remove it later Is so unsure if it works that the pop-up says “I think it worked now?”
—
Now this can show scripts that have been added/removed and have icons similar to GitHub's
(+ is added, - is modified, and x is deleted)
Although the styling options don't work now Writing 100s of lines of plain JS for a UI can do a lot to somebody
Last edited by ajskateboarder (Aug. 24, 2023 18:53:56)
- DifferentDance8
- Scratcher
1000+ posts
Integrating Git with the Scratch editor
You do realize advertising userscripts is against the rules right?
R.I.P Zydrolic, 2023-2024
- Discussion Forums
- » Advanced Topics
- » Integrating Git with the Scratch editor