Action (so I can make a keyboard shortcut) to include current chunk in git commit
已回答
Is there an action (so I can make a keyboard shortcut) to include the current chunk in a git commit? Right now, I have to take my hand off the keyboard to click on the checkbox in the gutter, which is really inefficient & annoying.
If it doesn't exist, it should be added. Maybe it could piggyback off / use the same keyboard shortcut by default as the Accept Left/Right Side action (Left or Right depending on whatever side the uncommitted changes are on, which is normally the Right).
请先登录再写评论。
Hi,
Go to; File | Settings | Keymap and under Diff&Merge you may find:
I don't want to split the chunk, though. I want to include the whole chunk, without having to select every line in the chunk. If it's a 100-line chunk, it would be faster for me to switch to the mouse to click on the gutter checkbox than to highlight 100 lines.
This option has been removed.
Please feel free to open a request on YT if you feel it should be added with your use-case.
However, once you open the diff all of the chunks have been pre-selected and you can just exclude chunks you do not need.
Thanks. I'l get around to opening a YT request later this week.