zed
zed copied to clipboard
Terminal support GitEditor(commit)
Check for existing issues
- [X] Completed
Describe the feature
I need to git commit in the terminal to edit in zed, and I think it can be done better than vscode, for PREFIX setting highlighting, for example: fix / feat / chore / docs
If applicable, add mockups / screenshots to help present your vision of the feature
No response
Hey @d1y, did your PR address all the things you wanted here?
Hey @d1y, did your PR address all the things you wanted here?
Running well 🥳
git commitThat's right, no need to specify EDITOR
https://github.com/zed-industries/zed/assets/45585937/93c3bff6-33be-4c66-a8d8-46cf403e74e6
I'm getting this error everytime I try to edit a commit message in Zed:
[ERROR] failed to load language Git Commit: no such grammar git_commit
I'm getting this error everytime I try to edit a commit message in Zed:
[ERROR] failed to load language Git Commit: no such grammar git_commit
Fix to https://github.com/zed-industries/zed/pull/7982
Had noticed that in my Linux builds in VMs, an eternity is spent during
Building [=====================> ] 1163/1168: tree-sitter-gitcommit(build)
@d1y would you consider moving that into an extension, given that it's all about the highlights?
Had noticed that in my Linux builds in VMs, an eternity is spent during
Building [=====================> ] 1163/1168: tree-sitter-gitcommit(build)@d1y would you consider moving that into an extension, given that it's all about the highlights?
Are you talking about fallback to extensions? next I'll roll it back to the extension, contains other git related highlights
Do you need to make any additional settings? i installed the extension but when i used the "git commit" command i was unsuccessful.
Do you need to make any additional settings? i installed the extension but when i used the "git commit" command i was unsuccessful.
I guess you need to set the $EDITOR environment variable
{
"terminal": {
"env": {
"EDITOR": "zed"
}
},
}
I guess you need to set the $EDITOR environment variable
I think the correct config is "EDITOR": "zed --wait"
{
"terminal": {
"env": {
"EDITOR": "zed --wait"
}
}
}