✨ Trailing Padding When Not Wrapping
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
Research direction
Start by tracing the text layout behavior when line wrapping is disabled. Determine how trailing padding can be made configurable, including the proposed 48-pixel spacing and a way to disable it, then verify the visual result in the text editor and confirm wrapped lines are unaffected.
Written by the indexing model from the issue text.
Description
Description
When lines are not wrapped, there should be additional padding added to the trailing edge. This should probably be configurable for other consumers of this package.
Xcode and other editors add a trailing padding when not wrapping lines so there's better spacing visually on the trailing edge. I don't think this is default behavior for text views, which is why it should be either configurable or be able to be disabled. In Xcode, the padding is 48 pixels.
Alternatives Considered
The method in https://github.com/CodeEditApp/CodeEditSourceEditor/pull/272 was considered, but this has it's own issues. This type of text layout should be in the text editor.
Additional Context
No response
Screenshots
No response
- Dominant language
- Swift
- Stars
- 182
- Forks
- 57
- 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 CodeEditApp/CodeEditTextView
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
CodeEditApp/CodeEditTextView#124 ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 48/100
CodeEditApp/CodeEditTextView#121 ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 28/100
CodeEditApp/CodeEditTextView#119 ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
CodeEditApp/CodeEditTextView#106 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
All issues in CodeEditApp/CodeEditTextView
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
maxgoedjen/secretive#840 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
manaflow-ai/cmux#13763 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
openwallet-foundation/multipaz#2028 ·