inline-git-diff

Inline git diffs in editor.

t9md

4,225

5

2.4.0

MIT

GitHub

This package provides the following services:

This package consumes the following services:

What's this?

Inline git diffs in editor. Can revert/copy specific diff.

This project is fork of git-diff-details pkg

Commands

How to use

  1. Open editor then execute inline-git-diff:toggle.(handled per editor basis)
  2. You can revert(inline-git-diff:revert) or copy(inline-git-diff:copy-removed-text)
  3. Disable by executing inline-git-diff:toggle again.

keymap

For default keymap, see this file.

Here is my keymap

'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

  1. g d to see inline diff.
  2. tab to review changes I made, after review hit tab to move to next diff.
  3. g r to revert, g c to copy-removed-text

Differences from original git-diff-details package