Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Immutable project search #22943

Open
1 task done
dmvianna opened this issue Jan 10, 2025 · 0 comments
Open
1 task done

Immutable project search #22943

dmvianna opened this issue Jan 10, 2025 · 0 comments
Labels
admin read Pending admin review enhancement [core label] triage Maintainer needs to classify the issue

Comments

@dmvianna
Copy link

Check for existing issues

  • Completed

Describe the feature

Zed's current Project search opens a new mutable buffer where each matching line is preceded and followed by two more adjacent lines to provide context.

Emacs's occur command opens a new immutable buffer with no context lines. Only matching lines are shown, and pressing return opens a new buffer for the file where the match was found, and the cursor on the match. The new buffer appears in split screen, so it is convenient to jump from the results buffer to the target file buffer.

This seemingly simple command makes moving between matching files extremely fast, with a human in control and unobstructed by using a mouse. It would be nice if it could be recreated in Zed.

Zed Version and System Specs

Zed: v0.169.0 (Zed Preview)
OS: Linux Wayland fedora 41
Memory: 31 GiB
Architecture: x86_64
GPU: Intel(R) UHD Graphics 630 (CFL GT2) || Intel open-source Mesa driver || Mesa 24.3.2

If applicable, add mockups / screenshots to help present your vision of the feature

Emacs documentation on `occur

@dmvianna dmvianna added admin read Pending admin review enhancement [core label] triage Maintainer needs to classify the issue labels Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
admin read Pending admin review enhancement [core label] triage Maintainer needs to classify the issue
Projects
None yet
Development

No branches or pull requests

1 participant