ZIm/crates/language/src
Kirill Bulatov caa0d35b8b
Allow to toggle git hunk diffs (#11080)
Part of https://github.com/zed-industries/zed/issues/4523

Added two new actions with the default keybindings

```
"cmd-'": "editor::ToggleHunkDiff",
"cmd-\"": "editor::ExpandAllHunkDiffs",
```

that allow to browse git hunk diffs in Zed:


https://github.com/zed-industries/zed/assets/2690773/9a8a7d10-ed06-4960-b4ee-fe28fc5c4768


The hunks are dynamic and alter on user folds and modifications, or
toggle hidden, if the modifications were not adjacent to the expanded
hunk.


Release Notes:

- Added `editor::ToggleHunkDiff` (`cmd-'`) and
`editor::ExpandAllHunkDiffs` (`cmd-"`) actions to browse git hunk diffs
in Zed
2024-05-01 22:47:36 +03:00
..
syntax_map Add a setting for custom associations between languages and files (#9290) 2024-03-13 10:23:30 -07:00
buffer.rs Allow to toggle git hunk diffs (#11080) 2024-05-01 22:47:36 +03:00
buffer_tests.rs Improve the ergonomics of creating local buffers (#10347) 2024-04-10 08:32:51 -06:00
diagnostic_set.rs Send along diagnostics when requesting code actions (#10281) 2024-04-08 17:54:06 +02:00
highlight_map.rs Docs for indent_size_for_line and co 2024-01-09 20:50:34 +01:00
language.rs Merge Zed task context providing logic (#10544) 2024-04-15 11:52:15 +03:00
language_registry.rs Allow controlling Tailwind via the language_servers setting (#11012) 2024-04-25 17:29:47 -04:00
language_settings.rs Allow to toggle git hunk diffs (#11080) 2024-05-01 22:47:36 +03:00
markdown.rs Fix Markdown code rendering in tooltips ignoring languages (#10607) 2024-04-16 12:49:35 +02:00
outline.rs Enable clippy::useless_conversion (#8724) 2024-03-02 16:31:47 -05:00
proto.rs Revert "Revert "language: Remove buffer fingerprinting (#9007)"" (#9671) 2024-04-12 18:40:35 +02:00
syntax_map.rs Don't panic when a tree-sitter parse fails (#11076) 2024-04-26 16:59:35 -06:00
task_context.rs Always provide default task context (#10764) 2024-04-19 10:51:50 +03:00