Inline git diffs in editor. Can revert/copy specific diff.
inline-git-diff:toggle
: Enable/disable inline diffinline-git-diff:revert
: Revert diff at cursorinline-git-diff:copy-removed-text
: Copy removed diff to clipboardinline-git-diff:toggle
.(handled per editor basis)revert
(inline-git-diff:revert
) or copy
(inline-git-diff:copy-removed-text
)inline-git-diff:toggle
again.For default keymap, see this file.
'atom-text-editor.vim-mode-plus.normal-mode':'g d': 'inline-git-diff:toggle''atom-workspace:not(.has-narrow) atom-text-editor.vim-mode-plus.normal-mode.has-inline-git-diff':'tab': 'git-diff:move-to-next-diff''shift-tab': 'git-diff:move-to-previous-diff''atom-text-editor.vim-mode-plus.normal-mode.has-inline-git-diff':'g r': 'inline-git-diff:revert''g c': 'inline-git-diff:copy-removed-text'
My workflow is
g d
to see inline diff.tab
to review changes I made, after review hit tab
to move to next diff.g r
to revert
, g c
to copy-removed-text
git-diff-details
packageabove
of removed place not at below
copy-removed-text
revert
, I tried and given up because I couldn't achieve smooth fadeout effect as it is in copy-removed-text
undo
command to revert
)added
, removed
, modified
) whereas git-diff-details
shows removed
and modified
onlyadded
diff too.revert
or copy-removed-text
so that user can revert/copy where cursor is not strictly placed at difftoggle
to avoid Atom startup overhead.Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.