Conrad Irwin
778856c101
Add a setting "use_autoclose" to control autoclose
...
Also disable autoclose for Chat
2024-01-20 13:33:03 -07:00
Mikayla
33105486aa
Make platform input handler private
...
Automatically record the context on non-view input handlers
Simplify the async window context update() method
2024-01-20 06:56:19 -08:00
Max Brunsfeld
0858db9ebb
Autocomplete mentions ( #4171 )
...
Release Notes:
- Added autocomplete for @-mentions in the chat panel.
2024-01-19 17:03:56 -08:00
Max Brunsfeld
8fb0270b4a
Make applying of additional completion edits go through the CompletionProvider
2024-01-19 16:56:28 -08:00
Max Brunsfeld
739d1179e3
Stop propagation when confirming a completion
2024-01-19 16:02:51 -08:00
Conrad Irwin
af30a9b814
Show cursors sligthly longer
2024-01-19 14:38:17 -07:00
139986d080
Start work on autocomplete for chat mentions
...
Co-authored-by: Conrad <conrad@zed.dev >
Co-authored-by: Nathan <nathan@zed.dev >
Co-authored-by: Marshall <marshall@zed.dev >
2024-01-19 13:12:57 -08:00
Max Brunsfeld and Conrad
1ceccdf03b
Move the details of completion-resolution logic into Project
...
Co-authored-by: Conrad <conrad@zed.dev >
2024-01-19 11:52:28 -08:00
Joseph T. Lyons
595428a8b1
Rename show cursors to display cursor names
2024-01-19 11:37:57 -05:00
Joseph T. Lyons
bcc13e151c
Change struct field name
2024-01-19 07:52:28 -05:00
Joseph T. Lyons
0062cc000b
Allow cursors to be shown via a command
2024-01-19 02:58:30 -05:00
Conrad Irwin
e513020fbb
Fine tune
2024-01-18 15:59:13 -07:00
Conrad Irwin
bfee008bb2
Merge branch 'main' into cursors
2024-01-18 14:03:27 -07:00
Mikayla Maki
aa7351041d
Add typo detection to CI ( #4107 )
...
Adding the typos crate to our CI will take some doing, as we have
several tests which rely on typos in various ways (e.g. checking state
as the user types), but I thought I'd take a first stab at fixing what
it finds.
Release Notes:
- N/A
2024-01-17 17:13:47 -08:00
Piotr Osiewicz and Kirill
6cbc49e5f0
Editor docs ( #4097 )
...
Release Notes:
- N/A
---------
Co-authored-by: Kirill <kirill@zed.dev >
2024-01-18 00:48:37 +01:00
Mikayla
57400e9687
Fix typos detected by crate-ci/typos
2024-01-17 14:31:21 -08:00
Conrad Irwin
ef0432da0d
Hide cursors by default, but show some
2024-01-17 10:14:20 -07:00
Conrad Irwin
0ca9f286c6
Show cursors for remote participants
2024-01-16 21:54:49 -07:00
Kirill Bulatov
ec3cfc33d6
Adds a way to select items under multiple carets ( #4067 )
...
Deals with https://github.com/zed-industries/community/issues/2374
Release Notes:
- Added a way to select items under multiple carets with
`editor::SelectNext` and `editor::SelectPrevious` commands
2024-01-16 11:08:48 +02:00
Kirill Bulatov
25abe8f981
Fix the tests
2024-01-16 10:58:27 +02:00
Max Brunsfeld
8f262892a0
Notify editors on buffer font size changes
2024-01-15 14:53:24 -08:00
Kirill Bulatov
55671eac40
Select next/previous word for multiple carets if possible
2024-01-15 23:42:36 +02:00
Kirill Bulatov
92add99260
Add LSP logs into the end of the editor, not after its caret
...
Also prevent tabs from being added in readonly editors
2024-01-15 22:12:52 +02:00
Marshall Bowers
90f4c70a82
Rename h_stack and v_stack to h_flex and v_flex, respectively ( #4053 )
...
This PR renames the `h_stack` and `v_stack` to `h_flex` and `v_flex`,
respectively.
We were previously using `h_stack` and `v_stack` to match SwiftUI, but
`h_flex` and `v_flex` fit better with the web/flexbox terminology that
the rest of GPUI uses.
Additionally, we were already calling the utility functions used to
implement `h_stack` and `v_stack` by the new names.
Release Notes:
- N/A
2024-01-15 11:34:06 -05:00
Kirill Bulatov
253c8dbe8e
Disable copilot for feedback and lsp log editors
...
LSP log editor caused recursive flood of messages, and feedback editor is better with people writing their own feedback.
2024-01-15 15:49:23 +02:00
Mikayla
3a836b8026
Remove some comments
2024-01-12 20:10:40 -08:00
Max Brunsfeld
7dc28aad78
Forbid paste, undo, redo on read-only editors
2024-01-12 10:38:05 -08:00
Kirill Bulatov and Marshall Bowers
ba83623c84
Fix whitespace symbol colors in the editor, use zed1 one
...
co-authored-by: Marshall Bowers <marshall@zed.dev >
2024-01-11 17:43:49 +02:00
Joseph T. Lyons
b26a468820
Merge branch 'main' into instrument-keyboard-events
2024-01-10 16:03:01 -05:00
Marshall Bowers
aff119b80a
Fix possessive "its" in docs and comments ( #3998 )
...
This PR fixes a number of places where we were incorrectly using "it's"
where we needed to use the possessive "its".
Release Notes:
- N/A
2024-01-10 10:09:48 -05:00
Joseph T. Lyons
d3d6b53a74
WIP
2024-01-10 02:05:42 -05:00
Mikayla
80790d921d
Fix / remove small todos
2024-01-09 14:16:46 -08:00
Marshall Bowers
824d06e2b2
Remove Default impl for StatusColors ( #3977 )
...
This PR removes the `Default` impl for `StatusColors`.
Since we need default light and dark variants for `StatusColors`, we
can't use a single `Default` impl.
Release Notes:
- N/A
2024-01-09 11:31:19 -05:00
Marshall Bowers
fa53353c57
Rename IconElement to just Icon ( #3974 )
...
This PR renames the `IconElement` component to just `Icon`.
This better matches the rest of our components, as `IconElement` was the
only one using this naming convention.
The `Icon` enum has been renamed to `IconName` to free up the name.
I was trying to come up with a way that would allow rendering an
`Icon::Zed` directly (and thus make the `IconElement` a hidden part of
the API), but I couldn't come up with a way to do this cleanly.
Release Notes:
- N/A
2024-01-09 10:11:20 -05:00
Joseph T. Lyons
cdd5cb16ed
WIP
2024-01-06 14:41:35 -05:00
Conrad Irwin
3c0052850c
Merge branch 'main' into channel-guests
2024-01-05 10:05:59 -07:00
Marshall Bowers
e4aa7ba4f2
Try to load fallback fonts instead of panicking when a font is not found ( #3891 )
...
This PR adjusts our font resolution code to attempt to use a fallback
font if the specified font cannot be found.
Right now our fallback font stack is `Zed Mono`, followed by `Helvetica`
(in practice we should always be able to resolve `Zed Mono` since we
bundle it with the app).
In the future we'll want to surface the ability to set the fallback font
stack from GPUI consumers, and potentially even support specifying font
stacks in the user settings (as opposed to a single font family).
Release Notes:
- Fixed a panic when trying to load a font that could not be found.
2024-01-04 14:10:46 -05:00
Antonio Scandurra
f0afa3f9e3
Show scrollbar even when buffer search highlights are outside viewport
2024-01-04 12:39:15 +01:00
Joseph T. Lyons
2972ee8ced
Move telemetry settings check into telemetry module
2024-01-04 01:13:21 -05:00
Marshall Bowers
e903adf016
Use dense spacing for completion menu items ( #3874 )
...
This PR updates the completion menu to use dense spacing for its items.
Release Notes:
- Adjusted styling of completion menu entries.
2024-01-03 23:06:16 -05:00
Conrad Irwin
6877bd4969
Make read only buffers feel more read only
2024-01-03 19:31:43 -07:00
Conrad Irwin
84171787a5
Track read_only per project and buffer
...
This uses a new enum to avoid confusing booleans
2024-01-03 19:31:43 -07:00
Max Brunsfeld and Mikayla
588976d27a
Remove 2 suffix for editor
...
Co-authored-by: Mikayla <mikayla@zed.dev >
2024-01-03 10:58:57 -08:00
Kirill Bulatov
55374e8ac0
Port to gpui1
2023-12-11 12:28:22 +02:00
Kirill Bulatov
df7b89b6cb
Allow to include gitignored files into project search ( #3394 )
2023-11-23 19:28:11 +02:00
Kirill Bulatov
eee63835fb
Exclude more ignored/worktree-less/project-less buffers from inlay hint requests
2023-11-23 10:30:52 +02:00
Julia
f0c7b3e6ee
Update copilot when we are the last task
2023-11-22 14:03:43 -05:00
Julia and Max Brunsfeld
9abce4bdd9
zed1: Cancel completion resolution when new list
...
Co-Authored-By: Max Brunsfeld <max@zed.dev >
2023-11-22 13:16:52 -05:00
Joseph T. Lyons
3abd376d6a
Add timestamp delta to telemetry events
2023-11-19 21:52:28 -05:00
Joseph T. Lyons
dd89b2e6d4
Pull duplicate call out of if-else block
2023-10-29 13:54:32 -05:00