sindresorhus/refined-github

Add `)` and `]` to `one-key-formatting` #4047

Geeyun-JY3 posted onGitHub

<!-- 1. Make sure your requested feature makes sense for Refined GitHub: https://github.com/sindresorhus/refined-github/issues/2960 2. Include a full URL where the feature should appear. -->

Add right parenthesis ) and right square bracket ] to one-key-formatting.

BTW, I don’t know whether the curly quotation marks like single quotation marks ‘’ and double quotation marks“” should be added to this feature, because they aren’t commonly used as Markdown symbols. But sometimees we do use them to wrap selected text.

URL: any page


Why? You can achieve the same result with just ( and [ respectively.

posted by fregante about 4 years ago

You can achieve the same result with just ( and [ respectively.

I know. Just wanna make this feature better. Sometimes I would accidentally press ) and ]when I want to press ( and [. Do we use these two symbols to do other things besides pairing them?

posted by Geeyun-JY3 about 4 years ago

I just tried in a few editors, none of them handle the closing character this way. Since this feature exists to match how editors handle the existing characters, we shouldn’t handle these either.

We could handle the fancy quotes though, even if they’re kind of rare

posted by fregante about 4 years ago

I just tried in a few editors, none of them handle the closing character this way. Since this feature exists to match how editors handle the existing characters, we shouldn’t handle these either.

Fine. It looks reasonable. Remeber to update the description. (, {, , aren't mentioned.

posted by Geeyun-JY3 about 4 years ago

Fund this Issue

$0.00
Funded

Pull requests