Andy Stewart
6660aca947
Update screenshot to include hunk preview
2019-09-24 11:37:14 +01:00
Andy Stewart
fdecc23368
Hunk previews highlight intra-line changes.
...
Closes #577 .
2019-09-18 11:55:01 +01:00
Andy Stewart
b71ab64dc1
Add comment about quickfix list
2019-09-05 18:36:55 +01:00
Andy Stewart
c5d2519cd5
Update example maps to use g-based maps
2019-09-05 18:36:39 +01:00
Andy Stewart
0469b8435a
Deprecate <Plug>... maps in favour of <Plug>(...)
2019-09-04 08:56:36 +01:00
Andy Stewart
88d396f1b4
Add :GitGutterQuickFix command.
...
It loads all hunks into the quickfix list.
Closes #617 .
2019-08-28 11:59:19 +01:00
Andy Stewart
8bafd08ef4
Support diffs relative to the working tree.
...
Closes #558 .
2019-08-28 09:22:06 +01:00
Andy Stewart
98ce886999
Mention staging partial hunks in top of readme.
2019-08-27 16:57:13 +01:00
Andy Stewart
67c8cca890
Support Vim's popup windows for hunk previews.
...
Note this prevents staging partial hunks via the previw window.
2019-08-27 16:56:30 +01:00
Andy Stewart
f0f56b9569
Use floating windows for hunk previews on Neovim.
2019-08-27 16:02:51 +01:00
Andy Stewart
77fb3fd81e
Enable :w in preview window to stage the hunk.
2019-08-21 10:27:23 +01:00
Andy Stewart
46f15ed42a
More doc updates.
2019-08-16 16:52:38 +01:00
Andy Stewart
c351eb13cf
Update docs.
2019-08-16 16:38:32 +01:00
Andy Stewart
afe94ede1b
Do not use a dummy sign to keep the sign column open.
...
This removes the g:gitgutter_sign_column_always option.
Vim 7.4.2201 introduced the |signcolumn| option to configure when the
signcolumn is visible, building in behaviour which the plugin provided
manually.
Although it would be good to maintain this feature for older Vims, the
complexity added by the code outweighs the benefit of backward
compatibility.
2019-08-16 12:06:28 +01:00
Andy Stewart
b036fcf527
Stage part of any hunk.
...
See #279 .
2019-08-13 15:57:22 +01:00
Andy Stewart
bc1d28db46
Allow staging part of an additions-only hunk.
...
See #279 .
2019-08-12 17:19:05 +01:00
Andy Stewart
fef14f1d49
Ignore non-gitgutter signs by default on Neovim >= 0.4.0
...
See #627 .
2019-08-12 10:03:59 +01:00
Dan Aloni
9bf988bd1d
Add g:gitgutter_sign_allow_clobber to control clobbering.
...
I.e. how gitgutter handles non-gitgutter signs.
See #565 , #627 .
Co-authored-by: Andy Stewart <boss@airbladesoftware.com >
2019-08-10 07:29:15 +01:00
Andy Stewart
de200ffdd4
Document cmd.exe vulnerability where it can execute the wrong git.
...
See #508 , #538 .
2019-08-10 06:16:13 +01:00
delphinus
6c320c71c5
Update README
2019-08-08 16:40:35 +01:00
Andy Stewart
ed4d8bec89
Add note to readme about preview window location.
2019-08-08 16:33:47 +01:00
Andy Stewart
eddec4a59a
Fix typo in tmux command.
2019-06-19 14:45:24 +01:00
Andy Stewart
e5936a22cf
Fix tmux command.
2019-05-15 16:27:17 +01:00
Andy Stewart
a6174df8a2
Document getting focus events in tmux.
...
Solution by @astier. Thanks!
See #612 .
2019-05-15 16:25:45 +01:00
Ana María Martínez Gómez
78db200b12
Correct typo in README
...
s/ctermb=<Y>/ctermbg=<Y>/
2019-02-26 12:05:42 +00:00
Andy Stewart
3ce2a4be25
Clarify how signs' colours are derived.
2019-02-17 07:10:48 +00:00
Andy Stewart
afa4f2ddf0
Use the Diff* highlight groups by default.
...
This change makes the plugin default to using the highlight groups
defined by the colorscheme instead of hardcoding its own foreground
colours.
If you liked the previous colours you can restore them by adding these
lines to your vimrc:
highlight GitGutterAdd guifg=#009900 guibg=<X> ctermfg=2 ctermb=<Y>
highlight GitGutterChange guifg=#bbbb00 guibg=<X> ctermfg=3 ctermb=<Y>
highlight GitGutterDelete guifg=#ff2222 guibg=<X> ctermfg=1 ctermb=<Y>
– where you should replace <X> and <Y> are the background colour of your
SignColumn in the gui and the terminal respectively.
For example, with the solarized colorscheme and a dark background,
guibg=#073642 and ctermbg=0.
Closes #545 , #560 .
2019-01-25 17:27:08 +00:00
Andy Stewart
faa1e953de
Suggest zr over zo to open contextual folds.
2019-01-16 16:03:54 +00:00
Andy Stewart
714d468344
Enable unfolding 3 lines of context around each hunk.
2019-01-15 11:33:48 +00:00
Andy Stewart
ac787afa02
Add GitGutterFold command.
...
Closes #286 , #571 .
2019-01-14 11:48:24 +00:00
Andy Stewart
2dce8e032b
Add commands to enable/disable/toggle GitGutter per buffer.
2019-01-08 12:47:10 +00:00
Andy Stewart
b11d74ca8f
Explicitly mention that the plugin never saves the buffer.
2019-01-08 12:30:25 +00:00
Andy Stewart
d2d2da11c5
Add g:gitgutter_git_args for args to git when running git-diff.
...
See #541 , #546 .
2018-07-31 14:28:36 +01:00
Martin Bukatovic
13e88015b4
Update FAQ in README: refresh on file save
2018-05-30 22:12:45 +02:00
Andy Stewart
c39a5c240a
Add g:gitgutter_terminal_reports_focus to enable FocusGained workaround.
...
See #490 .
2018-02-28 15:09:36 +00:00
Andy Stewart
4a66a09658
Document dependency on focus events.
2018-02-28 11:43:00 +00:00
Andy Stewart
4692457ae2
Document how to disable realtime updates.
2018-02-19 14:31:59 +00:00
Andy Stewart
213bd34bdf
Mention hunk text object in introduction.
2018-02-15 17:17:23 +00:00
Andy Stewart
d586e4398e
Add note about updatetime to troubleshooting section.
2018-02-15 17:16:59 +00:00
Andy Stewart
72b789ea8f
Clarify that unstaging staged hunks is out of scope.
2018-02-15 17:16:16 +00:00
Andy Stewart
5bfe5b9209
Big refactor.
...
- Hunk stage/undo/preview no longer saves the buffer.
- Hunk undo no longer makes locations go out of sync.
- Grep can be opted out of (grep output with ansi escapes is number one cause
of issues).
- Replaced g:gitgutter_grep_command with g:gitgutter_grep.
- Always runs git-diff the same way instead of in two possible ways.
- Separated detection of git tracking from diffing.
- Simplified path handling.
- Removed support for xolox shell: Windows taskbar does not flash with async
jobs.
- Removed g:gitgutter_{eager,realtime}.
- Simplified implementation generally.
2018-02-12 14:25:11 +00:00
Andy Stewart
dc73a81bfe
Deprecate g:gitgutter_sign_column_always for &signcolumn.
2017-08-02 15:47:04 +01:00
Andy Stewart
dcac1f74ee
Add a note about CDPATH.
...
See #382 , #423 .
2017-06-08 09:10:48 +01:00
Tyler Brazier
b803a28f47
External commands (:!) update the gutter
...
Fixes #418
2017-04-28 20:13:09 -05:00
Andy Stewart
9ecce5a269
Do not use --color=never flag for grep.
...
See #410 .
2017-04-03 13:30:23 +01:00
Andy Stewart
092369c19c
Use plain grep instead of extended grep.
...
See #410 .
2017-04-03 13:23:50 +01:00
Andy Stewart
562e6043d3
Explain how to cycle through hunks in all buffers.
2017-02-22 10:03:04 +00:00
Billy
efa1ead770
Typo fix.
2016-09-09 09:05:41 +01:00
Luke Farrar
c8fa0b3349
Move -r to start of args for non-GNU folk.
2016-06-21 10:28:56 +01:00
Luke Farrar
88e26c0fdf
Fix manual install commands.
2016-06-21 10:28:56 +01:00