Skip to content

Implement select_line and split_selection_into_lines#43

Merged
as-cii merged 6 commits intomasterfrom
select-line
May 7, 2021
Merged

Implement select_line and split_selection_into_lines#43
as-cii merged 6 commits intomasterfrom
select-line

Conversation

@as-cii
Copy link
Member

@as-cii as-cii commented May 7, 2021

Refs #25

As per the pull request's title, with these changes Zed now understands two new commands:

  • buffer_view:select_line (bound to cmd-l)
  • buffer_view:split_selection_into_lines (bound to cmd-shift-l)

Note that in 1c2f549 I slightly changed the behavior of fold intersection queries to be more precise with respect to the endpoints of the given range (see the commit for more details).

/cc: @nathansobo @maxbrunsfeld

as-cii added 6 commits May 7, 2021 11:13
Fold ranges are exclusive, exactly like the query ranges. So if the end
of a fold coincides with the start of the query range, we shouldn't
report that fold. Analogously, if the start of a fold coincides with the
end of the query range, that fold shouldn't be reported.
@as-cii as-cii merged commit 98c4dc4 into master May 7, 2021
@as-cii as-cii deleted the select-line branch May 7, 2021 16:49
bbutkovic pushed a commit to bbutkovic/zed that referenced this pull request Oct 4, 2024
* Use buffer settings for font, size etc.

* Trim end of message

* By default send the output values to the output editor

* WIP send evaluate request

* Rename variable

* Add result to console from evaluate response

* Remove not needed arc

* Remove store capabilities on variable_list

* Specify the capacity for the task vec

* Add placeholder

* WIP add completion provider for existing variables

* Add value to auto completion label

* Make todo for debugger

* Specify the capacity of the vec's

* Make clippy happy

* Remove not needed notifies and add missing one

* WIP move scopes and variables to variable_list

* Rename configuration done method

* Add support for adapter completions and manual variable completions

* Move type to variabel_list

* Change update to read

* Show debug panel when debug session stops

Co-Authored-By: Anthony Eid <56899983+Anthony-Eid@users.noreply.github.com>
Co-Authored-By: Mikayla Maki <mikayla.c.maki@gmail.com>

* Also use scope reference to determine to which where the set value editor should display

* Refetch existing variables after

* Rebuild entries after refetching the variables

---------

Co-authored-by: Anthony Eid <56899983+Anthony-Eid@users.noreply.github.com>
Co-authored-by: Mikayla Maki <mikayla.c.maki@gmail.com>
Veykril added a commit that referenced this pull request Nov 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant