Slackbot
05/09/2023, 11:51 PMDavid Balatero
05/10/2023, 1:16 AMEDIT_DESCRIPTION
to EDIT_DESCRIPTION.md
- this way, neovim (and other editors?) will syntax highlight for Markdown automaticallyDavid Balatero
05/10/2023, 1:42 PMDavid Balatero
05/10/2023, 1:52 PMDavid Balatero
05/10/2023, 1:53 PMBut while just editing a body, this is meaningless and more disturbs greatly:i think i know what you mean but it might be more powerful/clear in your own words why you think it's not necessary to be in Git commit mode here
Vampire
05/10/2023, 3:03 PMDavid Balatero
05/10/2023, 3:25 PMJacob Gold
05/10/2023, 3:29 PMEDIT_DESCRIPTION
as the name for this file because they specifically wanted this behavior ā I think we can make it configurable. Sending to the channel in case the user in question sees thisVampire
05/10/2023, 3:32 PMJacob Gold
05/10/2023, 3:33 PMDavid Balatero
05/10/2023, 3:34 PMDavid Balatero
05/10/2023, 3:35 PMJacob Gold
05/10/2023, 3:35 PMDavid Balatero
05/10/2023, 3:35 PMVampire
05/10/2023, 3:36 PMVampire
05/10/2023, 3:37 PMJacob Gold
05/10/2023, 3:37 PMVampire
05/10/2023, 3:37 PMDavid Balatero
05/10/2023, 3:37 PMGRAPHITE_PR_DESCRIPTION.md
⢠in vim if someone wants this custom, they can force it to be gitcommit with set ft=gitcommit
on buffer enter matching that filename
⢠otherwise most people will get the default Markdown (which imo is more "correct")Jacob Gold
05/10/2023, 3:38 PMDavid Balatero
05/10/2023, 3:38 PMEDITOR=vi
David Balatero
05/10/2023, 3:38 PMDavid Balatero
05/10/2023, 3:39 PMGRAPHITE_PR_DESCRIPTION
lets people just target this specific caseVampire
05/10/2023, 3:40 PMDavid Balatero
05/10/2023, 3:45 PMautocmd BufNewFile,BufRead GRAPHITE_PR_DESCRIPTION.md set ft=gitcommit
neovim
vim.api.nvim_create_autocmd({ "BufNewFile", "BufRead" }, {
pattern = "GRAPHITE_PR_DESCRIPTION.md",
command = "set ft=gitcommit",
})
Vampire
05/10/2023, 3:58 PM-e
make a difference?
I didn't try that option so far.
But if it means that the title and body are edited within one vim
session and there the subject should be separated from the body by a blank line just like for regular commit usage,
then it might make sense to use EDIT_DESCRIPTION
in that case and something else in other cases.David Balatero
05/10/2023, 3:59 PMDoes maybesorry which program are you recommendingmake a difference?-e
-e
for?David Balatero
05/10/2023, 3:59 PMgt
?)Vampire
05/10/2023, 4:45 PMgt bs -e
David Balatero
05/10/2023, 5:08 PMDavid Balatero
05/10/2023, 6:12 PMVampire
05/10/2023, 6:24 PMgt bs -e
, which I did not use so far, what is the content of the file you edit?
If it is PR title, then empty line, then body, it should probably be like it is right now in that specific case.David Balatero
05/10/2023, 6:24 PMDavid Balatero
05/10/2023, 6:25 PMDavid Balatero
05/10/2023, 6:25 PM$EDITOR
for description:Vampire
05/10/2023, 6:26 PMVampire
05/10/2023, 6:26 PM-e
then actually do?David Balatero
05/10/2023, 6:27 PMDavid Balatero
05/10/2023, 6:27 PM-e, --edit Edit PR fields inline. If --no-interactive is true, this is
automatically set to false. [boolean]
David Balatero
05/10/2023, 6:27 PMgt bs --help
)David Balatero
05/10/2023, 6:28 PMVampire
05/10/2023, 6:28 PMDavid Balatero
05/10/2023, 6:28 PMamonshiz
05/10/2023, 8:16 PMDavid Balatero
05/10/2023, 8:18 PMautocmd
bit?amonshiz
05/10/2023, 8:25 PMJacob Gold
05/10/2023, 8:40 PMDavid Balatero
05/12/2023, 1:51 AM