Skip to content

Search for currently selected block #785

Description

@JeFawk

Reviewed guidelines

  • I have read and understand the suggestion guidelines

Checked for duplicate suggestions

  • I checked for existing similar suggestions

Summary

Using the Search (Ctrl+F) with a code block selected would use the search only within this code block. If no code block is selected, it would be global, as it currently is.

Possible workarounds or alternatives

The alternative is to use the global search and select Active Event Sheet. Then scroll in the list of and find the event block ranges you are looking for, which on normal laptop screens is not that easy as there is little screen estate to fit all the search results.

Proposed solution

If the user selects a code block and uses the search shortcut, it would use the search panel to search within it. It would have a check mark which would automatically get activated.
The check mark could say "Search within selected code block." next to "Match Case"

Image

The Filter could be used as well, instead of having the check box to have some option to write the code block numbers as range, and then the Ctrl+F done with some code blocks highlighted to automatically fill in that info.

Why is this idea important?

It's important in mildly complex projects to have more control over the search area to not have too many irrelevant results, especially that there is no Back button implemented in C3 so it is hard to return to the code the user is watching when clicking on the search results that jump all over the event sheet.

Additional remarks

It is important to have the shortcuts automatically check/uncheck this option if a block is selected to avoid useless clicking.
Github bot closed my suggestion automatically, for reference it's this one: #228 (comment)

Fodi suggested using bookmarks to which my reply was:
Using bookmarks is a great idea when you know what you are looking for and where it could be. When I got a huge block with multiple subblocks and I'm looking for something in particular, I need to use the search.

I am already using a large amount of event sheets for modular reasons.

Image

Search for currently selected block would be very useful for people making huge projects like this.

Previous feature request automatically closed with 4 votes: #549 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions