Commit Graph
25009 Commits
Author SHA1 Message Date
Nate Butler 551232c803 Remove project divider in titlebar 2023-08-29 19:50:27 -04:00
KCaverlyandMax 1f7d9272c4 reindex files in the background after they have not been edited for 10 minutes
Co-authored-by: Max <max@zed.dev>
2023-08-29 17:14:44 -04:00
Nate Butler 2cf4c20936 Move breadcrumb style to toolbar 2023-08-29 16:37:48 -04:00
Nate Butler 6b23449362 Update titlebar size 2023-08-29 16:20:19 -04:00
Nate Butler 9f96a69ad7 Update toolbar active state style 2023-08-29 16:10:40 -04:00
Nate Butler d627b9e180 Format 2023-08-29 16:02:04 -04:00
Nate Butler 1188bb7500 Don't require passing theme to toggleable_icon_button 2023-08-29 16:01:08 -04:00
Nate Butler 1bc943a971 Pull toolbar into it's own styletree 2023-08-29 15:59:35 -04:00
Max Brunsfeld 8f5c4cd7d5 Search UI polish (#2904)
This PR polishes the search bar UI, making the layout more dense, and
the spacing more consistent with the rest of the app. I've also
re-ordered the toolbar items to reflect some of @iamnbutler's original
search designs. The items related to the search query are on the left,
and the actions that navigate the buffer (next, prev, select all, result
count) are on the right.
2023-08-29 12:53:32 -07:00
KCaverly 96f9b1f285 add proper handling for open ai rate limit delays 2023-08-29 15:44:51 -04:00
Julia 84a7aae52d Woooooops, don't notify the language server until initialized 2023-08-29 15:37:51 -04:00
Kirill BulatovandMax 54fc1eeed6 Do not blink the cursor if Zed window is focused away
co-authored-by: Max <max@zed.dev>
2023-08-29 21:33:03 +03:00
Conrad Irwin a30017333b vim: Fix relative motions (#2888)
This changes vim motions to be relative to fold lines, not display
lines, to match the behaviour of vim.

This is necessary for relative line numbers to make sense (as the most
important thing is you can do `3j` to get th e line that is numbered 3).


Release Notes:

- vim: Fix handling of motions when `soft_wrap` is enabled in zed. Like
in vim `j,k,up,down,$,^,0,home,end` will all now navigate in file
coordinates not display coordinates.
- vim: Add `g {j,k,up,down,$,^,0,home,end}` to navigate in display
coordinates.
- vim: Add `z o` and `z c` to open and close folds.
- vim: Add `z f` in visual mode to fold selection.

Note: this may be a jarring change if you're grown used to the current
behaviour of `j` and `k`. You can make the issue less acute by setting
`"soft_wrap":"none"` in your settings; or you can manually copy the
bindings for `g j` to the binding for `j` (etc.) in your keymap.json to
preserve the existing behaviour.
2023-08-29 11:19:37 -07:00
Kirill Bulatov 58d1b5f1dc Add a default binding for toggling inlay hints (#2910)
Release Notes:

- Add a `"ctrl-shift-:": "editor::ToggleInlayHints"` default binding
2023-08-29 21:09:46 +03:00
Nate Butler 62c1ca4070 Remove unused label_button 2023-08-29 14:09:31 -04:00
Nate Butler c0c773bc9b Reorder "Select All" button 2023-08-29 14:04:17 -04:00
Kirill Bulatov e4caf451c3 Add a default binding for toggling inlay hints 2023-08-29 20:56:26 +03:00
Nate Butler e75e89ba1c Update action_button style 2023-08-29 13:40:58 -04:00
Nate Butler 5819899334 Add disabled as an option on text_button 2023-08-29 13:40:46 -04:00
Nate Butler b369592cab Update spacing, button heights 2023-08-29 13:28:06 -04:00
Nate Butler c8a25f4c52 Add margin and padding functions 2023-08-29 13:06:13 -04:00
Nate Butler 913bc7a55b Remove baseurl to prevent theme import issue 2023-08-29 13:05:59 -04:00
Max Brunsfeld 90acb938c1 Debounce code action and document highlight requests (#2905)
Lately, I've been finding Rust-analyzer unusably slow when editing large
files (like `editor_tests.rs`, or `integration_tests.rs`). When I
profile the Rust-analyzer process, I see that it sometimes saturates up
to 10 cores processing a queue of code actions requests.

Additionally, sometimes when collaborating on large files like these, we
see long delays in propagating buffer operations. I'm still not sure why
this is happening, but whenever I look at the server logs in Datadog, I
see that there are remote `CodeActions` and `DocumentHighlights`
messages being processed that take upwards of 30 seconds. I think what
may be happening is that many such requests are resolving at once, and
the responses are taking up too much of the host's bandwidth.

I think that both of these problems are caused by us sending way too
many code action and document highlight requests to rust-analyzer. This
PR adds a simple debounce between changing selections and making these
requests.

From my local testing, this debounce makes Rust-analyzer *much* more
responsive when moving the cursor around a large file like
`editor_tests.rs`.
2023-08-29 09:30:36 -07:00
Antonio Scandurra 9bccad4ba8 Use model from conversation when available 2023-08-29 18:25:02 +02:00
Antonio Scandurra a80db5b4e4 Remember whether include conversation was toggled 2023-08-29 18:25:02 +02:00
Nathan Sobo 8e417b01be Merge branch 'main' into ai-refactoring 2023-08-29 10:17:01 -06:00
Nathan Sobo 4ba2d92a96 Use preview server when not on stable 2023-08-29 10:07:22 -06:00
Antonio Scandurra fcd9db312d Use Inline Assist across the board 2023-08-29 17:32:23 +02:00
JuliaandAntonio Scandurra ce0038a8ab Style language server name in completion menu
Omit in buffers with one or zero running language servers with the
capability to provide completions

Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
2023-08-29 11:21:02 -04:00
Piotr Osiewicz c6c88c5e1a chore: Use IsTerminal trait instead of relying on libc to detect stdout being a terminal (#2908)
IsTerminal was added in 1.70.

Release Notes:
- N/A
2023-08-29 15:56:50 +02:00
Nathan Sobo 936ec0223a Testing: Update build script to make local testing easier (#2903)
* `script/bundle -l` will only build for the current architecture and
skip DMG creation. It will also copy to `/Applications`.
* `script/bundle -l "My Bundle"` will name the bundle after your
provided name.
* Passing `-f` will overwrite. Passing `-o` will also open the
application.
2023-08-29 07:07:35 -06:00
Antonio Scandurra 68360b79b7 Remove the ability to reply to specific message in assistant 2023-08-29 14:51:00 +02:00
Antonio Scandurra 1a5aa56824 More polish 2023-08-29 14:41:02 +02:00
Antonio Scandurra e07fe17a1e Delete less aggressively 2023-08-29 14:31:58 +02:00
Antonio Scandurra 37909cd8f4 Allow including conversation when triggering inline assist 2023-08-29 14:08:16 +02:00
Kirill Bulatov 50f53e88dd Trim off surrounding [] when parsing terminal hover links (#2906)
Follow-up of https://github.com/zed-industries/zed/pull/2899

Terminal has to accept `[` and `]` as valid word parts, due to
`[slug].tsx` being a valid file name.
Yet, terminal has to exclude these to match paths in strings like
`[/some/path/[slug].tsx]`.

Release Notes:

- N/A
2023-08-29 10:49:33 +03:00
Kirill Bulatov eebe1bfe16 Trim off surrounding [] when parsing terminal hover links
Terminal has to accept `[` and `]` as valid word parts, due to
`[slug].tsx` being a valid file name.
Yet, terminal has to exclude these to match paths in strings like
`[/some/path/[slug].tsx]`.
2023-08-29 10:40:20 +03:00
Max Brunsfeld d8df0315ad Update some tests to reflect code action debouncing 2023-08-28 17:45:32 -07:00
Max Brunsfeld def59108fa Demote some Peer logging to trace level 2023-08-28 17:45:19 -07:00
Max Brunsfeld 9e19be9731 Debounce document highlight and code actions requests 2023-08-28 15:48:55 -07:00
Max Brunsfeld 1074339b51 Change cycle mode action to reflect new mode button order 2023-08-28 15:15:54 -07:00
Nathan SoboandMikayla Maki 9e0c34627f Provide themes to subtrees via context
Co-Authored-By: Mikayla Maki <mikayla@zed.dev>
2023-08-28 16:07:26 -06:00
Max Brunsfeld ea7008f752 Overhaul search bar layout
* Use a single row, instead of centering the search bar within a double-row toolbar.
* Search query controls on the left, navigation on the right
* Semantic is the final mode, for greater stability between buffer and project search.
* Prevent query editor from moving when toggling path filters
2023-08-28 14:20:09 -07:00
Max Brunsfeld c89da14f1b Remove padding from workspace toolbar, increase its content height to compensate
The padding makes it difficult to layout toolbar items correctly when they are more than one row tall.
2023-08-28 14:18:30 -07:00
Max Brunsfeld e01f24807a Don't add a quick actions toolbar item for non-editor views
Rather than adding primary toolbar item that renders as empty,
don't add an item at all. This prevents spurious spacing from
being added after other primary toolbar items.
2023-08-28 14:16:45 -07:00
Max Brunsfeld 9e5e5951df Simplify implementation of flex with spacing 2023-08-28 14:16:21 -07:00
Nathan SoboandMikayla Maki 4022fa953c Render a titlebar you can barely see
Co-Authored-By: Mikayla Maki <mikayla@zed.dev>
2023-08-28 14:24:27 -06:00
Nathan SoboandMikayla Maki 34d160941e Allow layout to be called on element in any phase of its lifecyle.
Co-Authored-By: Mikayla Maki <mikayla@zed.dev>
2023-08-28 14:23:16 -06:00
Nathan Sobo 9f46173eb2 Add -l option to build script
When you pass -l, we build for the local architecture only and copy the
resulting app bundle to /Applications. You can provide a bundle name as
an optional argument.
2023-08-28 13:32:30 -06:00
Julia e92a5b7eef Add Tailwind server to TSX 2023-08-28 15:19:16 -04:00