Skip to content

Conversation

@Veykril
Copy link
Member

@Veykril Veykril commented Dec 8, 2025

This mimics VSCode's files.readonlyExclude setting, to allow setting specific path matches as readonly locations like lockfiles and generated sources etc.

Also renders a lock icon to the right side of the path names for readonly files now.
This does a couple more things for completion sake:

  • Tabs of readonly buffers now render a file lock icon
  • Multibuffer buffer headers now render a file lock icon if the excerpts buffer is readonly
  • ReadWrite multibuffers now no longer allow edits to read only buffers contained within

Release Notes:

  • Added read_only_files setting to allow specifying glob patterns of files that should not be editable by default
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Dec 8, 2025
@Veykril Veykril force-pushed the push-pqpuyozqqmqm branch 7 times, most recently from 9bf23a1 to 0e53368 Compare December 9, 2025 15:19
@Veykril Veykril marked this pull request as ready for review December 11, 2025 16:18
@Veykril Veykril force-pushed the push-pqpuyozqqmqm branch from a3ae435 to 8e25d3e Compare January 4, 2026 13:08
@Veykril Veykril enabled auto-merge (squash) January 4, 2026 13:09
@Veykril Veykril merged commit dba1352 into main Jan 4, 2026
23 checks passed
@Veykril Veykril deleted the push-pqpuyozqqmqm branch January 4, 2026 13:18
rtfeldman pushed a commit that referenced this pull request Jan 5, 2026
This mimics VSCode's `files.readonlyExclude` setting, to allow setting
specific path matches as readonly locations like lockfiles and generated
sources etc.

Also renders a lock icon to the right side of the path names for
readonly files now.
This does a couple more things for completion sake:
- Tabs of readonly buffers now render a file lock icon
- Multibuffer buffer headers now render a file lock icon if the excerpts
buffer is readonly
- ReadWrite multibuffers now no longer allow edits to read only buffers
contained within

Release Notes:

- Added `read_only_files` setting to allow specifying glob patterns of
files that should not be editable by default

---------

Co-authored-by: Danilo Leal <daniloleal09@gmail.com>
LivioGama pushed a commit to LivioGama/zed that referenced this pull request Jan 20, 2026
…s#44376)

This mimics VSCode's `files.readonlyExclude` setting, to allow setting
specific path matches as readonly locations like lockfiles and generated
sources etc.

Also renders a lock icon to the right side of the path names for
readonly files now.
This does a couple more things for completion sake:
- Tabs of readonly buffers now render a file lock icon
- Multibuffer buffer headers now render a file lock icon if the excerpts
buffer is readonly
- ReadWrite multibuffers now no longer allow edits to read only buffers
contained within

Release Notes:

- Added `read_only_files` setting to allow specifying glob patterns of
files that should not be editable by default

---------

Co-authored-by: Danilo Leal <daniloleal09@gmail.com>
LivioGama pushed a commit to LivioGama/zed that referenced this pull request Jan 20, 2026
…s#44376)

This mimics VSCode's `files.readonlyExclude` setting, to allow setting
specific path matches as readonly locations like lockfiles and generated
sources etc.

Also renders a lock icon to the right side of the path names for
readonly files now.
This does a couple more things for completion sake:
- Tabs of readonly buffers now render a file lock icon
- Multibuffer buffer headers now render a file lock icon if the excerpts
buffer is readonly
- ReadWrite multibuffers now no longer allow edits to read only buffers
contained within

Release Notes:

- Added `read_only_files` setting to allow specifying glob patterns of
files that should not be editable by default

---------

Co-authored-by: Danilo Leal <daniloleal09@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

3 participants