Dino and Smit Barmase
5c4f1e6b85
editor: Ignore soft wrapped lines when adding selection above or below ( #40190 )
...
- Add `skip_soft_wrap` field to both `AddSelectionAbove` and
`AddSelectionBelow` actions. When set to `true`, which is now
the default this will skip soft wrapped lines when extending the
selections.
- Move the `start_of_relative_buffer_row` function from the
`vim::motion` module to the `editor::display_map::DisplaySnapshot`
implementation as a method.
- Update the default behavior for both `editor: add selection above` and
`editor: add selection below` commands in order to skip over soft
wrapped lines by default, mirroring VS Code's default behavior.
- Update existing keymaps to specify this `skip_soft_wrap` value for
both `AddSelectionAbove` and `AddSelectionBelow` actions.
Closes #16979
Release Notes:
- Updated both the `editor: add selection above` and `editor: add
selection below` commands to ignore soft wrapped lines. If you wish to
restore the old behavior, add the following to your keymap file:
```
{
"context": "Editor",
"bindings": {
"cmd-alt-up": ["editor::AddSelectionAbove", { "skip_soft_wrap": false
}],
"cmd-alt-down": ["editor::AddSelectionBelow", { "skip_soft_wrap": false
}]
}
}
```
---------
Co-authored-by: Smit Barmase <heysmitbarmase@gmail.com >
2025-10-16 11:56:57 +01:00
..
2025-10-13 15:45:46 +02:00
2025-10-14 15:10:45 +00:00
2025-09-24 18:57:33 -04:00
2025-10-12 23:31:40 +00:00
2025-10-14 15:23:47 +00:00
2025-10-13 12:56:40 -04:00
2025-10-15 10:32:03 +00:00
2025-10-08 17:36:52 +02:00
2025-10-16 12:37:37 +02:00
2025-09-25 02:11:48 +00:00
2025-09-29 18:56:03 +00:00
2025-10-07 09:48:03 +02:00
2025-09-25 14:41:49 +02:00
2025-10-15 10:16:56 +00:00
2025-10-15 10:16:56 +00:00
2025-09-25 22:24:32 +00:00
2025-10-13 12:56:40 -04:00
2025-10-08 20:30:27 +00:00
2025-10-10 23:44:32 +02:00
2025-10-06 20:35:44 +00:00
2025-09-29 18:56:03 +00:00
2025-10-08 17:36:52 +02:00
2025-10-15 07:35:50 +00:00
2025-10-08 17:36:52 +02:00
2025-10-15 20:54:57 +00:00
2025-10-15 09:35:39 -03:00
2025-10-08 12:02:21 -06:00
2025-10-15 08:30:58 -06:00
2025-10-14 13:38:27 +00:00
2025-10-14 04:43:28 +00:00
2025-10-08 20:20:50 +03:00
2025-10-07 12:11:15 +00:00
2025-10-08 19:48:40 +00:00
2025-10-14 16:32:25 +00:00
2025-10-16 11:27:02 +02:00
2025-10-16 11:27:02 +02:00
2025-09-27 14:50:10 +00:00
2025-10-13 01:21:28 +02:00
2025-10-15 10:16:56 +00:00
2025-09-25 15:11:12 +02:00
2025-10-13 11:53:19 +02:00
2025-10-12 00:19:57 -04:00
2025-10-08 12:02:21 -06:00
2025-10-08 12:02:21 -06:00
2025-10-15 09:35:39 -03:00
2025-10-16 11:56:57 +01:00
2025-09-27 14:50:10 +00:00
2025-09-27 14:50:10 +00:00
2025-10-13 08:27:00 +00:00
2025-09-26 15:17:36 +00:00
2025-10-08 17:36:52 +02:00
2025-10-07 12:11:15 +00:00
2025-10-09 16:17:49 +00:00
2025-10-10 15:14:37 +00:00
2025-10-15 19:50:37 +03:00
2025-10-08 17:36:52 +02:00
2025-10-14 23:12:30 +00:00
2025-09-26 22:28:52 +00:00
2025-09-25 14:42:32 -07:00
2025-10-09 18:33:05 +00:00
2025-10-09 18:33:05 +00:00
2025-10-14 13:16:05 +00:00
2025-10-09 13:11:11 +02:00
2025-10-16 09:44:44 +00:00
2025-10-14 04:43:28 +00:00
2025-10-14 04:43:28 +00:00
2025-09-30 12:27:23 -03:00
2025-10-13 18:19:00 +00:00
2025-10-08 12:10:53 -06:00
2025-10-08 17:36:52 +02:00
2025-10-08 19:48:40 +00:00
2025-10-10 17:29:20 -03:00
2025-10-15 10:16:56 +00:00
2025-10-15 10:16:56 +00:00
2025-10-08 12:02:21 -06:00
2025-10-15 20:54:57 +00:00
2025-10-03 20:11:21 -06:00
2025-10-10 17:29:20 -03:00
2025-10-16 10:20:14 +00:00
2025-09-25 15:11:12 +02:00
2025-10-08 19:48:40 +00:00
2025-10-02 23:04:31 +02:00
2025-10-16 10:44:58 +02:00
2025-10-14 04:43:28 +00:00
2025-10-10 19:01:07 -04:00
2025-10-08 12:02:21 -06:00
2025-10-09 14:34:52 +00:00
2025-10-06 18:38:30 +00:00
2025-10-10 12:59:52 +00:00
2025-10-11 13:32:20 +00:00
2025-10-03 19:20:51 +00:00
2025-10-08 12:04:06 -06:00
2025-10-07 12:23:31 +00:00
2025-10-15 19:50:44 -03:00
2025-09-24 18:57:33 -04:00
2025-10-16 10:21:31 +00:00
2025-10-16 14:08:48 +05:30
2025-09-24 18:57:33 -04:00
2025-10-13 15:45:46 +02:00
2025-10-12 23:31:40 +00:00
2025-10-15 16:11:18 +02:00
2025-10-14 04:43:28 +00:00
2025-10-15 19:38:08 -07:00
2025-10-13 16:09:53 -07:00
2025-10-15 20:17:56 +02:00
2025-10-15 14:36:58 +00:00
2025-10-08 20:48:17 +02:00
2025-09-25 13:03:56 -06:00
2025-10-15 19:50:49 +03:00
2025-10-14 04:43:28 +00:00
2025-09-24 21:16:06 +00:00
2025-10-16 14:08:48 +05:30
2025-10-08 17:36:52 +02:00
2025-10-16 14:08:48 +05:30
2025-09-26 11:41:26 -04:00
2025-09-27 11:01:04 +02:00
2025-10-08 17:36:52 +02:00
2025-10-14 04:43:28 +00:00
2025-09-29 15:48:58 +00:00
2025-09-24 18:57:33 -04:00
2025-10-13 16:31:00 +00:00
2025-09-24 18:57:33 -04:00
2025-10-13 14:30:40 +00:00
2025-09-27 14:50:10 +00:00
2025-10-14 21:32:07 +02:00
2025-10-13 18:19:00 +00:00
2025-10-15 14:36:58 +00:00
2025-10-13 11:53:19 +02:00
2025-10-08 17:36:52 +02:00
2025-10-13 11:53:19 +02:00
2025-10-13 10:55:02 +00:00
2025-10-15 19:50:57 -03:00
2025-09-29 18:08:47 +02:00
2025-10-15 13:55:57 -03:00
2025-10-08 12:27:22 -03:00
2025-10-03 17:35:30 +00:00
2025-09-29 10:09:31 -03:00
2025-10-16 10:21:31 +00:00
2025-10-14 04:43:28 +00:00
2025-10-16 11:56:57 +01:00
2025-10-08 17:36:52 +02:00
2025-10-15 19:50:49 +03:00
2025-10-14 23:12:30 +00:00
2025-10-03 16:00:09 -04:00
2025-10-16 11:56:57 +01:00
2025-10-10 17:29:20 -03:00
2025-10-08 12:02:21 -06:00
2025-10-15 09:35:39 -03:00
2025-10-08 23:14:40 +00:00
2025-10-15 09:35:39 -03:00
2025-09-26 11:41:26 -04:00
2025-10-08 17:36:52 +02:00