Skip to content

Commit

Permalink
Line wrap (#2723)
Browse files Browse the repository at this point in the history
* Line-wrap impl

* Fix paint normal selection around linewrapping and phantom text

* Fix linewise selection

* Maybe fix scroll bug

* Fix breakpoint positioning

* Clippy fixes

* Docs + Fixes + Cleanup

* Make phantom text before_col more indirect

This will be useful once we stop aggressively computing the full PhantomText whenever it is accessed.

* Make over-monomorphizations over TextLayoutProvider less likely

* Fix bench
  • Loading branch information
MinusGix committed Dec 5, 2023
1 parent cb96e5a commit 87e0fc0
Show file tree
Hide file tree
Showing 20 changed files with 6,543 additions and 1,216 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -3,6 +3,7 @@
## Unreleased

### Features/Changes
- [#2723](https://github.com/lapce/lapce/pull/2723): Line wrapping based on width (no column-based yet)

### Bug Fixes

Expand Down
128 changes: 127 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions defaults/settings.toml
Expand Up @@ -17,6 +17,9 @@ show-tab = true
show-bread-crumbs = true
scroll-beyond-last-line = true
cursor-surrounding-lines = 1
wrap-style = "editor-width"
wrap-column = 80
wrap-width = 600 # px
sticky-header = true
completion-show-documentation = true
show-signature = true
Expand All @@ -38,6 +41,7 @@ enable-error-lens = true
error-lens-end-of-line = true
error-lens-font-family = ""
error-lens-font-size = 0
error-lens-multiline = false
enable-completion-lens = false
completion-lens-font-family = ""
completion-lens-font-size = 0
Expand Down
7 changes: 7 additions & 0 deletions lapce-app/Cargo.toml
Expand Up @@ -85,3 +85,10 @@ all-languages = [
"lapce-core/lang-toml",
"lapce-core/lang-yaml",
]

[dev-dependencies]
criterion = "0.4"

[[bench]]
name = "visual_line"
harness = false

0 comments on commit 87e0fc0

Please sign in to comment.