Migrate block cursor to Layer and RectangleMarker API
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Refactor
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- tooling
Research direction
Start with src/block-cursor.ts and compare its copied selection implementation with codemirror/view 0.19.27 and the public Layer and RectangleMarker API in codemirror/view 6.16.0. Refactor the block cursor to use those public primitives; done means the implementation no longer depends on the copied selection logic and preserves block-cursor behavior.
Written by the indexing model from the issue text.
Description
https://github.com/replit/codemirror-vim/blob/master/src/block-cursor.ts copied the implementation of codemirror's selection, somewhere around this version https://github.com/codemirror/view/blob/0.19.27/src/draw-selection.ts. Most of the magic has since been moved to a public API https://github.com/codemirror/view/blob/6.16.0/src/draw-selection.ts#L4
I think using those primitives will simplify the implementation and make it more maintainable.
- Dominant language
- JavaScript
- Stars
- 470
- Forks
- 53
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from replit/codemirror-vim
-
Difficulty 4/5 3-5 days Newbie friendliness 50/100
replit/codemirror-vim#276 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
replit/codemirror-vim#264 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
replit/codemirror-vim#251 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
replit/codemirror-vim#243 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
replit/codemirror-vim#239 ·
All issues in replit/codemirror-vim
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·