Commit log

342a00b Remove `dbg!` from `styleable_helpers!` (#3035)

Click to expand commit body
This PR removes a leftover `dbg!` from `styleable_helpers!`.

We already removed this in the `gpui2-ui` branch, but getting this on
`main` since @KCaverly pointed it out.

Release Notes:

- N/A

Marshall Bowers created

330a71d fixed bug limiting number of results returned

KCaverly created

ea278b5 ensure desc sort and cleanup unused imports

KCaverly created

5e7f0c6 Fix another place where Copilot may panic (#3033)

Kirill Bulatov created

b131a2c Fix another place where Copilot may panic

Kirill Bulatov created

b5a39de Add `reset_db` script

Joseph T. Lyons created

42df5ef vim: Add multicursor shortcuts (#3032)

Click to expand commit body
Adding a few bindings to bring first class feeling multiselect to zed's
vim emulation.

gn and gN are similar to similar vim bindings, ga is similar to gA (and
I doubt we need vim's real ga), g> and g< are just made up.

Release Notes:

- vim: `g n` / `g N` to select next/previous
- vim: `g >` / `g <` to skip current selection and select next/previous
- vim: `g a` to select all

Conrad Irwin created

b29e295 vim: Add multicursor shortcuts

Click to expand commit body
- g n / g N to select next/previous
- g > / g < to select next/previous replacing current
- g a to select all matches

Conrad Irwin created

8c90157 Fix space and copy/paste when editing a channel (#3030)

Click to expand commit body
This fixes several bugs with how spaces and keyboard commands interact
with channel creating / renaming.

fixes
https://github.com/zed-industries/community/discussions/2076#discussioncomment-7096959

Release Notes:

- N/A

Mikayla Maki created

b454f43 Add cmd-+ as an alias for cmd-= (#3028)

Click to expand commit body
Release Notes:

- Allow cmd-+ in addition to cmd-= for zoom in
([#1021](https://github.com/zed-industries/community/issues/1021)).

Although I had initially thought this was something more to do with
option key handling, it turns out to be a straightforward and reasonable
feature request.

Conrad Irwin created

53194ed Use SaveAll instead of Save

Click to expand commit body
If we're closing items we should not be writing files that have not
changed (e.g. empty untitled buffers)

Conrad Irwin created

d17d38f vim: Command (#2951)

Click to expand commit body
Release Notes:

- vim: Add v1 of command mode
([#279](https://github.com/zed-industries/community/issues/279)). The
goal was to cover 90% of what most people actually do, but it is very
incomplete. Known omissions are that ranges cannot be specified (except
that `:%s//` must always specify the % range), commands cannot take
arguments (you can `:w` but not `:w [file]`), and there is no history.
Please file feature requests on
https://github.com/zed-industries/community as you notice things that
could be better.
- `:` triggers zed's command palette. If you type a known vim command it
will run it, otherwise you get zed's normal fuzzy search. For this
release supported commands are limited to:
- - `:w[rite][!]`, `:wq[!]`, `:q[uit][!]`, `:wa[ll][!]`, `:wqa[ll][!]`,
`:qa[ll][!]`, `:[e]x[it][!]`, `:up[date]` to save/close tab(s) and
pane(s).
- - `:cq` to quit completely.
- - `:vs[plit]`, `:sp[lit]` to split vertically/horizontally
- - `:new`, `:vne[w]` to create a new file in a new pane above or to the
left
- - `:tabedit`, `:tabnew` to create a new file in a new tab.
- - `:tabn[ext]`, `:tabp[rev]` to go to previous/next tabs
- - `:tabc[lose]` to close tabs
- - `:cn[ext]`, `:cp[rev]`, `:ln[ext]`, `:lp[rev]` to go to the
next/prev diagnostics.
- - `:cc`, `:ll` to open the errors page
- - `:<number>` to jump to a line number.
- - `:$` to jump to end of file
- - `:%s/foo/bar/` (note that /g is always implied, the range must
always be %, and zed uses different regex syntax to vim)
- - `:/foo` and `:?foo` to jump to next/prev line matching foo
- - `:j[oin]`, to join the current line (no range is yet supported)
- - `:d[elete][l][p]`, to delete the current line (no range is yet
supported)
- - `:s[ort] [i]` to sort the current selection (case-insensitively)
- vim: Add `ctrl-w o` (closes everything except the current item) and
`ctrl-w n` (creates a new file in the pane above).
([#1884](https://github.com/zed-industries/community/issues/1884))
- all: Add a "Discard" option to prompt when saving a file with
conflicts (previously this only appeared on close, not on save).

Internal changes:
- The Picker will now wait for pending queries before confirming (to
handle people typing `: w enter` rapidly.
- workspace::save_item and Pane::save_item are now merged together, and
the behavior controlled by `workspace::SaveIntent`.
- Many actions related to closing/saving items now take an optional
`SaveIntent`.
-

Conrad Irwin created

667fc25 Fix space and copy/paste when editing a channel

Mikayla created

359847d Revert "Revert "workspace: Improve save prompt. (#3025)""

Click to expand commit body
This reverts commit 5c75450a77b0579649bbf79365c9cef5a2c1110f.

Conrad Irwin created

1556749 WIP

Antonio Scandurra created

591ec02 Add support for the experimental Next LS for Elixir (#3024)

Click to expand commit body
This is a PR I built for a friend of a friend at StrangeLoop, who is
making a much better LSP for elixir that elixir folks want to experiment
with. This PR also improves the our debug log viewer to handle LSP
restarts.

TODO:
- [ ] Make sure NextLS binary loading works.

Release Notes:

- Added support for the experimental Next LS for Elxir, to enable it add
the following field to your settings to enable:

```json
"elixir": {
    "next": "on"
}
```

Mikayla Maki created

a1e080d Checkpoint

Antonio Scandurra created

c2fca05 Fix compile and test errors

Mikayla created

bf6c2f0 Activate correct item when clicking on a code action with the mouse (#3027)

Click to expand commit body
Release Notes:

- Fixed clicking a code action only ever performing the first action in
the list rather than the one clicked on.

Julia created

86ec0b1 implement new search strategy

KCaverly created

769c330 Merge branch 'vim-command'

Conrad Irwin created

5c75450 Revert "workspace: Improve save prompt. (#3025)"

Click to expand commit body
This reverts commit 0a491e773b689a74f96b7555070cf5a3bf245543.

Conrad Irwin created

ad7c1f3 Download next-ls automatically from github

Mikayla created

23767f7 Add cmd-+ as an alias for cmd-=

Click to expand commit body
For github.com/zed-industries/community#1021

Conrad Irwin created

80eaabd Activate correct item when clicking on a code action with the mouse

Julia created

ff5d0f2 Trigger `scroll_to` on code action list when moving selection (#3026)

Click to expand commit body
Release Notes:
- Fixed the code action popup menu not scrolling as selection moves.

Julia created

a278428 Trigger `scroll_to` on code action list when moving selection

Julia created

0a491e7 workspace: Improve save prompt. (#3025)

Click to expand commit body
Add buffer path to the prompt.

Z-2903

Release Notes:
- Added a "Save all/Discard all" prompt when closing a pane with
multiple edited buffers.

Piotr Osiewicz created

45540a0 Checkpoint

Antonio Scandurra created

55f4aa3 Checkpoint

Antonio Scandurra created

8b63e45 Implement LSP adapter methods for syntax highlighting

Mikayla created

052cb45 Improve lsp log viewer's behavior in the presence of LSP restarts

Click to expand commit body
Improve settings interface to local LSP

Mikayla created

a780357 Checkpoint

Antonio Scandurra created

b516ea2 Checkpoint

Antonio Scandurra created

1fa45c6 Checkpoint

Antonio Scandurra created

c4abd93 WIP

Antonio Scandurra created

91c1768 Checkpoint

Antonio Scandurra created

1a5d6aa Checkpoint

Antonio Scandurra created

fb69f3d Checkpoint

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Antonio Scandurra and Nathan Sobo created

3fbe93f Checkpoint

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Antonio Scandurra and Nathan Sobo created

df388d9 Checkpoint

Antonio Scandurra created

0697d08 Restructure `ui` into just `elements` and `components` (#3023)

Click to expand commit body
This PR restructures the `ui` crate into just `elements` and
`components`.

This was already done on the `gpui2-ui` branch, just getting it onto
`main`.

Release Notes:

- N/A

---------

Co-authored-by: Nate Butler <nate@zed.dev>

Marshall Bowers and Nate Butler created

895386c Mainline `Icon` and `IconButton` changes (#3022)

Click to expand commit body
This PR mainlines the `Icon` and `IconButton` changes from the
`gpui2-ui` branch.

Release Notes:

- N/A

Co-authored-by: Nate Butler <nate@zed.dev>

Marshall Bowers and Nate Butler created

6a95f9e WIP

Antonio Scandurra created

ad62a96 Display available stories in storybook CLI (#3021)

Click to expand commit body
This PR updates the storybook CLI to support displaying all of the
available stories.

The `--help` flag will now show a list of all the available stories:

<img width="1435" alt="Screenshot 2023-09-22 at 6 11 00 PM"
src="https://github.com/zed-industries/zed/assets/1486634/284e1a24-46ec-462e-9709-0f9b6e94931f">

Inputting an invalid story name will also show the list of available
stories:

<img width="1435" alt="Screenshot 2023-09-22 at 6 10 43 PM"
src="https://github.com/zed-industries/zed/assets/1486634/1ce3ae3f-ab03-4976-a06a-5a2b5f61eae3">

Release Notes:

- N/A

Marshall Bowers created

fe4248c Scaffold `Toolbar` and `Breadcrumb` components (#3020)

Click to expand commit body
This PR scaffolds the `Toolbar` and `Breadcrumb` components.

Right now they both just consist of hardcoded data.

<img width="846" alt="Screenshot 2023-09-22 at 4 54 00 PM"
src="https://github.com/zed-industries/zed/assets/1486634/70578df2-7216-42d2-97ef-d38b83fb4a25">

<img width="799" alt="Screenshot 2023-09-22 at 4 46 04 PM"
src="https://github.com/zed-industries/zed/assets/1486634/73ca3d8a-baf9-4ed4-b4c4-279c674672a3">

Release Notes:

- N/A

Marshall Bowers created

a237aa8 Checkpoint

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Antonio Scandurra and Nathan Sobo created

3dc1e91 Checkpoint

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Antonio Scandurra and Nathan Sobo created

27e3e09 Label component states in stories (#3019)

Click to expand commit body
This PR updates the UI component stories to label the various states
that they are in.

Release Notes:

- N/A

Marshall Bowers created

d1791a9 Checkpoint

Click to expand commit body
Co-Authored-By: Nathan Sobo <nathan@zed.dev>

Antonio Scandurra and Nathan Sobo created