-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow ignoring soft wraps when moving to line ends #11153
Merged
SomeoneToIgnore
merged 9 commits into
zed-industries:main
from
tverghis:fix-line-end-movement
May 2, 2024
Merged
Allow ignoring soft wraps when moving to line ends #11153
SomeoneToIgnore
merged 9 commits into
zed-industries:main
from
tverghis:fix-line-end-movement
May 2, 2024
Commits on May 2, 2024
-
Add stop_at_soft_wraps for begin/end of line move
This allows configuring whether moving to the beginning or end of a line (for example, with the Home/End) keys should stop at soft wraps or not. By default, this is false -- i.e., movement to the beginning or end of a line will move to the logical position, rather than the position dictated by the nearest soft wrap.
Configuration menu - View commit details
-
Copy full SHA for b443e40 - Browse repository at this point
Copy the full SHA b443e40View commit details -
Fix move to line beginning/end behavior
Respect the `stop_at_soft_wraps` field for both `Editor::move_to_beginning_of_line` and `Editor::move_to_end_of_line`. This changes the default behavior: previously, this would set the cursor at the nearest soft wrap location in the respective direction. Now, it will set the cursor properly at the logical beginning/end by default.
Configuration menu - View commit details
-
Copy full SHA for 98581aa - Browse repository at this point
Copy the full SHA 98581aaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7e8e245 - Browse repository at this point
Copy the full SHA 7e8e245View commit details -
Configuration menu - View commit details
-
Copy full SHA for a0cea2e - Browse repository at this point
Copy the full SHA a0cea2eView commit details -
Default true for stop_at_soft_wraps
Previously, this setting would default to `false` when navigating to line ends. Now, it will default to true.
Configuration menu - View commit details
-
Copy full SHA for aaff932 - Browse repository at this point
Copy the full SHA aaff932View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4fd07e8 - Browse repository at this point
Copy the full SHA 4fd07e8View commit details -
Configuration menu - View commit details
-
Copy full SHA for c631579 - Browse repository at this point
Copy the full SHA c631579View commit details -
Configuration menu - View commit details
-
Copy full SHA for 125b6cc - Browse repository at this point
Copy the full SHA 125b6ccView commit details -
Configuration menu - View commit details
-
Copy full SHA for a1f241e - Browse repository at this point
Copy the full SHA a1f241eView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.