Commit log

f5fec55 updated vector_store to handle for removed files

KCaverly created

91832c8 Fix language servers improper restarts

Click to expand commit body
Language servers mixed `initialization_options` from hardcodes and user
settings, fix that to ensure we restart servers on their settings
changes only.

Kirill Bulatov created

15010e9 fixup! recent_projects: Perform fuzzy search on compacted paths.

Piotr Osiewicz created

f164eb5 recent_projects: Perform fuzzy search on compacted paths.

Click to expand commit body
Match highlighting for recent projects picker was off, because the path representation was compacted - for a path '/Users/hiro/Projects/zed' we compact it to use a tilde instead of home directory. However, the highlight positions were always calculated for a full path, leading to a mismatch in highlights.
This commit addresses this by running fuzzy search on compacted paths instead of using long paths. This might lead to a slight performance hit, but given that recent projects modal shouldn't have that many items in the first place, it should be okay.

Z-2546

Piotr Osiewicz created

1fbf09f branches: Add a modal branch list. (#2697)

Click to expand commit body
Extract branch list into a separate vcs_menu crate akin to
recent_projects. Add current bind for a modal branch to branch popover's
tooltip.

Z-2555

Release Notes:
- N/A

Piotr Osiewicz created

a1fe5ab Add rudimentary PHP syntax highlighting

Piotr Osiewicz created

3c1ab3d Piotr/z 2590 search result marks jump around in scrollbar as cursor (#2700)

Click to expand commit body
This closes ticket Z-2590 reported by @JosephTLyons . Thanks Joseph =)
Release Notes:

- N/A

Piotr Osiewicz created

4125e7e editor: Keep scrollbar up if there are selections (#2698)

Click to expand commit body
Z-2556

/cc @JosephTLyons 

Release Notes:

- N/A

Piotr Osiewicz created

e83afdc Rename background_highlights_in_range_for_key to background_highlights_in_range_for

Piotr Osiewicz created

4f60679 Highlight only search results

Piotr Osiewicz created

dce72a1 updated tests to accomodate for new dot location

KCaverly created

307d8d9 Reduced redundant database connections on each worktree change.

Click to expand commit body
Co-authored-by: maxbrunsfeld <max@zed.dev>

KCaverly and maxbrunsfeld created

82079dd Updated batching to accomodate for full flushes, and cleaned up reindexing.

Click to expand commit body
Co-authored-by: maxbrunsfeld <max@zed.dev>

KCaverly and maxbrunsfeld created

a6d713e editor: Keep scrollbar up if there are selections

Click to expand commit body
Z-2556

Piotr Osiewicz created

e00e73f branches: Add a modal branch list.

Click to expand commit body
Extract branch list into a separate vcs_menu crate akin to recent_projects.
Add current bind for a modal branch to branch popover's tooltip.

Z-2555

Piotr Osiewicz created

6739c31 Update assistant styles (#2665)

Click to expand commit body
Updates the assistant with some style quality of life changes.

## Changes

Restyled the conversation list

<img width="646" alt="CleanShot 2023-07-10 at 10 25 23@2x"
src="https://github.com/zed-industries/zed/assets/1714999/5c9a4f94-11c1-4d28-8aac-4d38141829a9">

Updated the assistant header to be a bit more compact, and use a new tab
bar icon style. The existing tab bar icons will be updated in a later
PR.

<img width="646" alt="CleanShot 2023-07-10 at 10 26 30@2x"
src="https://github.com/zed-industries/zed/assets/1714999/3ef9a053-59fa-4d34-9b76-3bb2701acb33">

Updated the remaining token indicator to have 3 steps:
<img width="662" alt="CleanShot 2023-07-10 at 10 29 51@2x"
src="https://github.com/zed-industries/zed/assets/1714999/13d31545-5b00-427c-b7da-b4dfeac037d6">

Updated role labels, added a hover state to make it more clear these are
interactive
<img width="984" alt="CleanShot 2023-07-10 at 10 32 28@2x"
src="https://github.com/zed-industries/zed/assets/1714999/24748495-dde4-4ee9-98f1-6a082f0c1d4d">


Release Notes:

- Improved the UI of some elements in the Assistant panel.

Nate Butler created

a75a7e2 Add tooltip to recent projects button (#2694)

Click to expand commit body
Z-2545

Release Notes:

- N/A

Piotr Osiewicz created

92a0a4e Add styles for branch create button

Piotr Osiewicz created

273b9e1 Avoid overlapping the scrollbar

Nate Butler created

9ffe220 Update tab_bar_button.ts

Nate Butler created

4029481 Merge branch 'main' into update-assistant-styles

Nate Butler created

f0cddeb Update zoom icons

Nate Butler created

0189742 pulled treesitter parsing to own file for ease of testing and management

KCaverly created

3318896 Display key bind of a modal project picker

Piotr Osiewicz created

6c8cb6b project_search: display result count on cmd-enter

Click to expand commit body
It also focuses the first result (just like a normal enter).

Piotr Osiewicz created

6e24ded collab_ui: Add tooltip to branches popover (#2695)

Click to expand commit body
Z-2554

Release Notes:

- N/A

Piotr Osiewicz created

52a497b Remove code block for GitHub release notes

Click to expand commit body
Discord can directly render the Markdown now.

Joseph T. Lyons created

b4b0f62 Rebuild vim search experience on refactored code

Conrad Irwin created

232d14a Make search less magic

Click to expand commit body
Co-Authored-By: Antonio <antonio@zed.dev>

Conrad Irwin and Antonio created

dea728a Better waiting in tests

Conrad Irwin created

6cf13c6 vim: ? to search backwards, and /<enter> to repeat search

Conrad Irwin created

d70f415 vim: add gD to go to type definition

Conrad Irwin created

dbec2ed vim: add */#/g*/g# for jumping to next word

Click to expand commit body
As in vim, this toggles the normal search experience.

Conrad Irwin created

96ce0bb vim: Enter/n/N to navigate search results

Conrad Irwin created

2ffce24 vim: Don't enter visual mode in search/go to definition

Click to expand commit body
Fixes: zed-industries/community#1514
Contributes: zed-industries/community#1284

Conrad Irwin created

75fe77c search: Allow running a search with different options

Click to expand commit body
Refactor search options to use bitflags so that we can represent
the entire set of settings in one place.

Conrad Irwin created

20d8a2a vim: indent in visual mode uses only one <

Click to expand commit body
Fixes: zed-industries/community#1562

Conrad Irwin created

460bf93 vim: { } to navigate by paragraph (#2668)

Click to expand commit body
As part of this I added `assert_shared_state()` to the
NeovimBackedTestContext so that it is more like a drop-in replacement
for the VimTestContext.

The remaining part of zed-industries/community#682 is adding bracket
matching to plain text. It looks like the current logic requires there
to be a tree sitter language for the language in order to support
bracket matching. I didn't fix this in this PR because I was unsure
whether to try and work around that, or to try and add a plain text tree
sitter language.

Release Notes:

- vim: support `{` and `}` for paragraph motion
([#470](https://github.com/zed-industries/community/issues/470)).
- vim: fix `%` at the end of the line
([#682](https://github.com/zed-industries/community/issues/682)).

Conrad Irwin created

362023c vim: keymap tweaks (#2674)

Click to expand commit body
A few small tweaks to fix some of the community issues

Release Notes:

- vim: Fix `escape` in command palette
([#1347](https://github.com/zed-industries/community/issues/1347)).
- vim: Allow `^` as a motion in actions
([#856](https://github.com/zed-industries/community/issues/856)).
- vim: Allow `ctrl-c` to exit visual mode
([#1447](https://github.com/zed-industries/community/issues/1447)).

Conrad Irwin created

da7dce7 Prevent duplicate instances by coordinating via a socket (#2691)

Click to expand commit body
We've been getting a bunch of panics from duplicate app instances
competing over the local sqlite DB. After chatting with @mikayla-maki we
determined it was probably best to add our own mechanism to prevent
duplicates rather than just relying on the OS. My logic is that we'd
need to build a system like this eventually for Windows/Linux anyway so
it's more appealing than reworking our local DB access to be able to
cooperate with another process while likely isn't something we want to
support anyway.

I attempted to keep this mechanism conservative so in the case of
another program interfering with it we should fail somewhat gracefully
and still continue to launch, albeit without the ability to prevent
another instance from launching.

Fixes
https://linear.app/zed-industries/issue/Z-2435/thread-background-executor-1-panicked-at-could-not-send-write-action

Release Notes:
- Added a mechanism to prevent duplicate Zed instances from launching to
avoid a crash.

Julia created

3f5667b merged main

KCaverly created

caa29d5 Avoid checking for duplicate instance when local DB is disabled

Julia created

b70b760 Use different port and handshake for different release channels

Julia created

66bf56f Prevent duplicate instances by coordinating via a socket

Julia created

4a69c71 fixup! vcs: Add 'create branch' button

Piotr Osiewicz created

cb24cb1 vcs: Add 'create branch' button

Piotr Osiewicz created

d69b07b Add tooltip to recent projects button

Click to expand commit body
Z-2545

Piotr Osiewicz created

abf3b4a chore: Replace lazy_static Mutex with const. (#2693)

Click to expand commit body
Mutex::new() is const-stable as of Rust 1.63.

Release Notes:
- N/A

Piotr Osiewicz created

79ece8a Skip key down event if preceded by its key equivalent version (#2692)

Click to expand commit body
Fixes
https://linear.app/zed-industries/issue/Z-2552/pressing-two-keystrokes-in-rapid-succession-ignores-the-latter

Previously, we would only track whether the previous key down event was
a key equivalent. However, this could cause issues when pressing certain
keystrokes in rapid succession, e.g.:

- Pressing `shift-right` (to select a character, dispatched as a key
equivalent)
- Pressing a character (with or without `shift` held down, dispatched as
a key down)

This would cause GPUI to ignore the second event because it was preceded
by a key equivalent event. With this commit, we track the last key
equivalent event, and skip the key down event only if it matches the
last key equivalent event.

Release Notes:

- Fixed a bug that could cause certain keystrokes performed in rapid
succession to incorrectly get ignored.

Antonio Scandurra created

318deed Skip key down event if preceded by its key equivalent version

Click to expand commit body
Previously, we would only track whether the previous key down event
was a key equivalent. However, this could cause issues when pressing
certain keystrokes in rapid succession, e.g.:

- Pressing `shift-right` (to select a character)
- Pressing a character (with or without `shift` held down)

This would cause GPUI to ignore the second event because it was
preceded by a key equivalent event. With this commit, we track the
last key equivalent event, and skip the key down event only if it
matches the last key equivalent event.

Antonio Scandurra created