Discuss Scratch

dimayajonelcid
Scratcher
100+ posts

Improve Ctrl+F in the Scratch Project Editor

Sadly, there is no mock-up, but I will try to describe it as best as possible…
Let's start here:
You are looking through someone else's Scratch project when you want to tweak something in the code (e.g. buffing/nerfing some sort of clicker game/incremental). You remix the project, only to see there is one problem. A BIG problem, actually. The sprite you are trying to tweak has thousands of blocks used and MANY scripts of code, but you do not see the code that you want to tweak because, well, there are far too many scripts to find it. Sure, you can use Ctrl+F in the project, but then again, does it pan the camera over to the block? And how do you type the flag sprite?

The point of this suggestion is:
To add a feature in the Scratch Editor that allows you to find blocks/full scripts that you can find when remixing someone else's project.

Idea:
The “find” section will be found with a magnifying glass in the top right of the editor (with a hat block in the middle, so that it can be distinguished from the other two in the bottom right). It can have a shortcut (Control+F). This will make a box appear to the right of the block section. Here, you can drag and drop blocks that allow you to see how many times that script appears in the project, and will have the screen be panned to the top block in the script. There are two arrows, one pointing left and the other pointing right, that allows you to pan the camera over to that script. All of the instances in the project where the script is found will be shaded a color (e.g. Yellow for Instance, Orange for most recent pan).

Example: Say you wanted to find this script in a project:
when green flag clicked
wait () secs
(note that the blank can be any number IF left blank, by inserting a number, that will narrow down the results)
You would just drag the blocks into the region, and then you are panned to a place that CONTAINS the block!

Additional ideas:
Local/Global option; this will make it find that script throughout sprites OR your ENTIRE project.

Notes: If you try doing Ctrl+F just to find a certain block in the editor, the camera stays in place. The idea of this suggestion is to add something that helps find blocks better with Ctrl+F.

Why else should this feature be a thing?
Ctrl+F with panning exists in Google Docs/Sheets/Slides, and in PDFs, along with the PDF editor Kami. It even exists on Discord with the messages on the right side of the screen with a “Jump to message option!” If it exists there, why should Ctrl+F NOT exist here?

FAQ:
Q: Is this a duplicate?
A: I checked and there are no duplicates in the directory. Someone provided a link in another post, but this provides Ctrl+F to find strings of blocks. In addition, it works similarly to Google Docs.

Last edited by dimayajonelcid (April 22, 2021 13:57:32)

MartianSoil
Scratcher
100+ posts

Improve Ctrl+F in the Scratch Project Editor

Support, but this is definitely a dupe and I’m to lazy to find it now, I’ll edit this later and add the link.
EDIT: Instead of editing I made a post below

Last edited by MartianSoil (April 6, 2021 19:26:42)

dimayajonelcid
Scratcher
100+ posts

Improve Ctrl+F in the Scratch Project Editor

MartianSoil wrote:

Support, but this is definitely a dupe and I’m to lazy to find it now, I’ll edit this later and add the link.
Sorry… I checked and there was no duplicate in either directory… I'm sending this on my school chromebook and I'm not sure if I can use the search website, but feel free to post the duplicate now.
thegamekid123
Scratcher
23 posts

Improve Ctrl+F in the Scratch Project Editor

IDK. for now there is no way, but you can add scripts that reverse the effect. For example, in a clicker game you are trying to buy something for 10 coins but it adds 10 coins, you can compensate by adding a script which makes it so that the value changes by -20, which totals to -10
MartianSoil
Scratcher
100+ posts

Improve Ctrl+F in the Scratch Project Editor

dimayajonelcid wrote:

MartianSoil wrote:

Support, but this is definitely a dupe and I’m to lazy to find it now, I’ll edit this later and add the link.
Sorry… I checked and there was no duplicate in either directory… I'm sending this on my school chromebook and I'm not sure if I can use the search website, but feel free to post the duplicate now.
Okay, I was doing something. This is something similar. This is a find and replace suggestion. I’m trying to find one more specific, but I am in class. (There is also a certain extension for scratch that adds this, I would link it, but scratch doesn’t want people do send files as they could contain malware. It is pretty easy to find though)

Last edited by MartianSoil (April 6, 2021 19:28:04)

dimayajonelcid
Scratcher
100+ posts

Improve Ctrl+F in the Scratch Project Editor

MartianSoil wrote:

dimayajonelcid wrote:

MartianSoil wrote:

Support, but this is definitely a dupe and I’m to lazy to find it now, I’ll edit this later and add the link.
Sorry… I checked and there was no duplicate in either directory… I'm sending this on my school chromebook and I'm not sure if I can use the search website, but feel free to post the duplicate now.
Okay, I was doing something. This is something similar. This is a find and replace suggestion. I’m trying to find one more specific, but I am in class. (There is also a certain extension for scratch that adds this, I would link it, but scratch doesn’t want people do send files as they could contain malware. It is pretty easy to find though)
Got it! Are there any links that contain Ctrl+F for the Scratch editor?
dimayajonelcid
Scratcher
100+ posts

Improve Ctrl+F in the Scratch Project Editor

Bump, I can't tell what page this is on, but definitely not on the first
dimayajonelcid
Scratcher
100+ posts

Improve Ctrl+F in the Scratch Project Editor

Bump x2
CST1229
Scratcher
1000+ posts

Improve Ctrl+F in the Scratch Project Editor

HedwigsHat wrote:

there is a chrome extension made by griffpatch that allows you to do this.
Here's the link: [REDACTED]
Please don't link extensions as per the extension policy.
Also don't even mention them.
lm1996
Scratcher
1000+ posts

Improve Ctrl+F in the Scratch Project Editor

thegamekid123 wrote:

IDK. for now there is no way, but you can add scripts that reverse the effect. For example, in a clicker game you are trying to buy something for 10 coins but it adds 10 coins, you can compensate by adding a script which makes it so that the value changes by -20, which totals to -10
But what if you want to tweak it, and it's buried within thousands of if-elses?
Support, I would also add text things like inputs, variable names, and anything else.
dimayajonelcid
Scratcher
100+ posts

Improve Ctrl+F in the Scratch Project Editor

Bump. Again.

Wonder if anyone likes this topic.
TheAdriCoolManDude
Scratcher
1000+ posts

Improve Ctrl+F in the Scratch Project Editor

Support, I use Ctrl+F on many sites and applications, and I could definitely see the use of this for Scratch, especially for big projects.
bluedragon8633
Scratcher
1000+ posts

Improve Ctrl+F in the Scratch Project Editor

thegamekid123 wrote:

IDK. for now there is no way, but you can add scripts that reverse the effect. For example, in a clicker game you are trying to buy something for 10 coins but it adds 10 coins, you can compensate by adding a script which makes it so that the value changes by -20, which totals to -10
I don't understand this at all, but ok, I guess.

Support! I would prefer one that can check for any block (That-Which-Must-Not-Be-Named only searches for variables, lists, and custom blocks; not helpful if a specific block is not in that category.) Also, have a way to check locally (in whatever sprite) or globally (every sprite)- this saves going to every sprite to check for a certain procedure.
dimayajonelcid
Scratcher
100+ posts

Improve Ctrl+F in the Scratch Project Editor

bluedragon8633 wrote:

thegamekid123 wrote:

IDK. for now there is no way, but you can add scripts that reverse the effect. For example, in a clicker game you are trying to buy something for 10 coins but it adds 10 coins, you can compensate by adding a script which makes it so that the value changes by -20, which totals to -10
I don't understand this at all, but ok, I guess.

Support! I would prefer one that can check for any block (That-Which-Must-Not-Be-Named only searches for variables, lists, and custom blocks; not helpful if a specific block is not in that category.) Also, have a way to check locally (in whatever sprite) or globally (every sprite)- this saves going to every sprite to check for a certain procedure.
Got it! Thanks!
fdreerf
Scratcher
1000+ posts

Improve Ctrl+F in the Scratch Project Editor

A lot of my code is not exactly the cleanest and relies way too much on small lines that are easy to lose and can change pretty much everything in the project. That, and I like Ctrl+F in general, it's just easy to find scripts that contain a variable. Though, I will make one suggestion to this and that is to add a\

...

block in the menu. So, for instance, you could find any bit of code that starts with one block, ends with another, and has arbitrary code in the middle, like this:

change [foo v] by (1)
...
change [bar v] by (-1)
lm1996
Scratcher
1000+ posts

Improve Ctrl+F in the Scratch Project Editor

fdreerf wrote:

A lot of my code is not exactly the cleanest and relies way too much on small lines that are easy to lose and can change pretty much everything in the project. That, and I like Ctrl+F in general, it's just easy to find scripts that contain a variable. Though, I will make one suggestion to this and that is to add a\

...

block in the menu. So, for instance, you could find any bit of code that starts with one block, ends with another, and has arbitrary code in the middle, like this:

change [foo v] by (1)
...
change [bar v] by (-1)
Do you use Clean Up Blocks?
dimayajonelcid
Scratcher
100+ posts

Improve Ctrl+F in the Scratch Project Editor

lm1996 wrote:

fdreerf wrote:

A lot of my code is not exactly the cleanest and relies way too much on small lines that are easy to lose and can change pretty much everything in the project. That, and I like Ctrl+F in general, it's just easy to find scripts that contain a variable. Though, I will make one suggestion to this and that is to add a\

...

block in the menu. So, for instance, you could find any bit of code that starts with one block, ends with another, and has arbitrary code in the middle, like this:

change [foo v] by (1)
...
change [bar v] by (-1)
Do you use Clean Up Blocks?
I can use Clean Up, but then again, with multiple scripts, it’s borderline impossible to find them.
dimayajonelcid
Scratcher
100+ posts

Improve Ctrl+F in the Scratch Project Editor

Bump…
dimayajonelcid
Scratcher
100+ posts

Improve Ctrl+F in the Scratch Project Editor

Hello, I am here to bump this topic. I was somewhere for 2 days (Yesterday AND Today) and now I'm back home
dimayajonelcid
Scratcher
100+ posts

Improve Ctrl+F in the Scratch Project Editor

Bump. AGAIN. I'm not sure if this topic is going to be inactive for eternity

Powered by DjangoBB