ZIm/crates/project/src
Nate Butler 6cdd7b7390
git: Add hunk_style setting (#26038)
This PR adds the `git.hunk_style` setting, allowing setting an alternate
style for hunks – specifically the rendering of unstaged hunks.

It has 2 options:

- `transparent` (unstaged hunks are more transparent/less opaque than
staged hunks)
- `pattern (unstaged hunks are indicated by a visual pattern)

We'll possibly explore a VSCode-style "don't show staged hunks", but the
complexity it adds is a bit out of scope for now.

Transparent:

![CleanShot 2025-03-04 at 09 07
09@2x](https://github.com/user-attachments/assets/a74c4286-8264-48a2-bd58-0c582efb4e22)

Pattern:

![CleanShot 2025-03-04 at 09 10
12@2x](https://github.com/user-attachments/assets/4dd3040e-fb36-4670-9279-fcc7a4f12ced)

Release Notes:

- Git Beta: Added `git.hunk_style` setting to allow toggling between git
hunk visual styles.
2025-03-04 11:10:39 -05:00
..
lsp_command Remove language::markdown (#25136) 2025-02-19 08:55:36 -07:00
project_tree cx.background_executor().spawn(...) -> cx.background_spawn(...) (#25103) 2025-02-18 20:30:33 +00:00
buffer_store.rs Git fix repo selection (#25996) 2025-03-03 21:40:20 -07:00
color_extractor.rs Simplify static expression to a constant (#23193) 2025-01-15 19:31:21 +00:00
connection_manager.rs Remove more references to 'model' in GPUI APIs (#23693) 2025-01-27 04:00:27 +00:00
debounced_delay.rs Rename model based variable names to entity (#24198) 2025-02-04 10:24:35 -08:00
direnv.rs Environment loading fixes (#19144) 2024-10-16 12:14:40 +02:00
environment.rs Improve support for tcsh/csh as login shells (#25122) 2025-02-19 15:31:42 -05:00
git.rs Disable Git panel button to open commit editor in certain cases (#26000) 2025-03-04 05:35:18 +00:00
image_store.rs cx.background_executor().spawn(...) -> cx.background_spawn(...) (#25103) 2025-02-18 20:30:33 +00:00
lsp_command.rs Remove language::markdown (#25136) 2025-02-19 08:55:36 -07:00
lsp_ext_command.rs Fix missed renames in #22632 (#23688) 2025-01-26 23:37:34 +00:00
lsp_store.rs lsp: Do not add trailing slash to workspace folders (#25903) 2025-03-02 22:09:13 +00:00
prettier_store.rs cx.background_executor().spawn(...) -> cx.background_spawn(...) (#25103) 2025-02-18 20:30:33 +00:00
project.rs workspace: Add trailing / to directories on completion when using OpenPathPrompt (#25430) 2025-03-04 14:01:08 +08:00
project_settings.rs git: Add hunk_style setting (#26038) 2025-03-04 11:10:39 -05:00
project_tests.rs Optimistically update hunk states when staging and unstaging hunks (#25687) 2025-02-28 20:55:29 +00:00
project_tree.rs cx.background_executor().spawn(...) -> cx.background_spawn(...) (#25103) 2025-02-18 20:30:33 +00:00
search.rs Revert "Use multi-line regex for '\s'" (#25926) 2025-03-03 10:32:49 -05:00
search_history.rs project search: Persist search history across session (#9932) 2024-04-02 11:13:18 +02:00
task_inventory.rs Use active worktree's task sources (#25784) 2025-02-27 22:57:59 +00:00
task_store.rs Rename model based variable names to entity (#24198) 2025-02-04 10:24:35 -08:00
terminals.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
toolchain_store.rs cx.background_executor().spawn(...) -> cx.background_spawn(...) (#25103) 2025-02-18 20:30:33 +00:00
worktree_store.rs Fix some syncing issues with git statuses (#25535) 2025-02-25 22:09:02 -07:00
yarn.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00