bitovi / bitovi/syn

There is no good way to represent brackets

Open
#138 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
441
Forks
254
PR merge metrics
No merged PRs in 30d

Description

In Syn, brackets are used to specify special keys like [space], [meta], [delete] (etc).

However, if the user is trying to type brackets, the contents are not parsed correctly by the regex. This results in no keydowns for [ and ].

Syn should be updated to allow for a more natural way to type brackets. Some software (like our's) use brackets extensively for specifying matrices and arrays, since MATLAB is both a programming and mathematics language. And right now it can be a little painful to use brackets with FuncUnit

Contributor guide

Open the contributing guide

Research direction

Start by examining Syn's keyboard parsing regex and reproduce the missing keydown events for literal [ and ] described in the issue. Determine a natural input representation that remains compatible with special keys such as [space], [meta], and [delete], then verify that literal brackets produce keydowns without breaking those existing forms.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.