Skip to content

Adding Jumping to opening and closing brace logic and actions#3384

Open
Neko-Box-Coder wants to merge 1 commit intomicro-editor:masterfrom
Neko-Box-Coder:JumpToBraces
Open

Adding Jumping to opening and closing brace logic and actions#3384
Neko-Box-Coder wants to merge 1 commit intomicro-editor:masterfrom
Neko-Box-Coder:JumpToBraces

Conversation

@Neko-Box-Coder
Copy link
Contributor

Continuing from #3372

Removed brace escaping logic, added logic for going to opening and closing braces, action for them and also proposed default bindings.

Test case:

//Test { } test

{
    
}

if (true)
{
    {std::string testString = "test test"}
}

int test = 123'45;

togglecode[0x3A] == CAPSLOCK
togglecode[0x45] == NUMLOCK
togglecode[0x46] == SCROLLLOCK
[
	{
		color: "red",
		value: "#f00"
	},
	{
		color: "green",
		value: "#0f0"
	},
	{
		color: "blue",
		value: "#00f"
	},
	{
		color: "cyan",
		value: "#0ff"
	},
	{
		color: "magenta",
		value: "#f0f"
	},
	{
		color: "yellow",
		value: "#ff0"
	},
	{
		color: "black",
		value: "#000"
	}
]

Simplifying findMatchingBrace(),
Adding FindOpeningBrace() and FindClosingBrace(),
Adding JumpToOpeningBrace() and JumpToClosingBrace()
Adding brace jumping to default bindings,
Allowing matchbraceleft for finding open and close bracket actions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant