Marco Hinz
ffab0c9d71
Preview: polish hunk parser
2019-08-16 17:05:47 +02:00
Marco Hinz
8b9eea5782
Preview: scroll up to 6 lines for showing diff
...
References https://github.com/mhinz/vim-signify/issues/300
2019-08-16 16:34:22 +02:00
Marco Hinz
748ca45019
Fix support for very old Vim versions
...
Fixes https://github.com/mhinz/vim-signify/issues/304
2019-08-16 09:17:02 +02:00
Marco Hinz
cd155d3edc
Nvim: fix off-by-one
2019-08-14 15:49:19 +02:00
Marco Hinz
f813d66d47
Nvim: filter empty lines
2019-08-14 15:33:45 +02:00
Marco Hinz
b686925732
Nvim: change stdout handler according to :h on_exit
2019-08-14 15:22:36 +02:00
Marco Hinz
e77a402cc6
Vim: use almost entire width
2019-08-14 14:45:16 +02:00
Marco Hinz
29d5f294a6
SignifyDiffPreview: fix deleted line logic
...
References https://github.com/mhinz/vim-signify/issues/300
2019-08-14 14:29:01 +02:00
Marco Hinz
2b6824eb9f
Rename :SignifyPreviewHunk to :SignifyDiffPreview
...
References https://github.com/mhinz/vim-signify/issues/300
2019-08-14 14:17:01 +02:00
Marco Hinz
0309fbb039
SignifyPreviewHunk: use entire window width below current line
...
References https://github.com/mhinz/vim-signify/issues/300
2019-08-14 14:15:31 +02:00
Marco Hinz
736466ccce
README: add notes about diff capabilities
2019-08-13 22:09:00 +02:00
Marco Hinz
b468a27940
Remove unneeded function indirection
2019-08-13 21:48:22 +02:00
Marco Hinz
f32b69033b
Remove unused argument
2019-08-13 21:32:45 +02:00
Marco Hinz
16fa49bda2
Only preview if a VCS was detected
2019-08-13 21:27:42 +02:00
Marco Hinz
469ae5c9f7
Vim: make :SignifyPreviewHunk use popup window
...
References https://github.com/mhinz/vim-signify/pull/302
2019-08-13 21:17:41 +02:00
Carlos Ramos
2673d732dd
Nvim: make :SignifyPreviewHunk use floating window ( #302 )
2019-08-09 15:37:44 +02:00
Marco Hinz
ee299579c7
Assume at least 7.3.442
...
That version addded `:doau <nomodeline>`. Soon this plugin will be Vim 8+ only
anyway.
Fixes https://github.com/mhinz/vim-signify/issues/301
2019-08-08 17:12:22 +02:00
Marco Hinz
801856453c
Improve :SignifyPreviewHunk
2019-08-06 23:36:35 +02:00
Marco Hinz
ad6d7a9635
Refactoring: all funcrefs to sy#repo#get_diff() use same boilerplate code
2019-08-06 21:15:16 +02:00
Marco Hinz
b7ea1a1bb2
Add :SignifyPreviewHunk
...
This is merely a first draft that needs to get refined further.
2019-08-06 00:34:17 +02:00
Marco Hinz
83b226f069
Refactoring: provide funcref to run on job exit
2019-08-01 19:11:13 +02:00
Marco Hinz
0f763b514a
Refactoring: introduce s:parse_hunk()
2019-08-01 19:11:13 +02:00
Marco Hinz
ac23bd95d5
Win: use cmd.exe instead of running cmd directly
...
Fixes https://github.com/mhinz/vim-signify/issues/298
2019-05-29 16:09:54 +02:00
Marco Hinz
c3f26e4599
Add support for yadm
...
Closes https://github.com/mhinz/vim-signify/issues/297
2019-05-25 19:15:50 +02:00
Paolo Cretaro
f34fea0eff
CVS: handle case where diff is valid but empty ( #294 )
...
CVS diff return code is 1 when the file differs from HEAD revision or
when there is an error (e.g. file is not under revision control),
while it is 0 (with an empty output) when the file is up-to-date.
The latter case was not handled, causing vim-signify to not recognize a
file under CVS when it did not have any change.
2019-04-05 11:11:49 +02:00
Marco Hinz
b7a1f91282
Fix stat count
2019-04-03 12:56:04 +02:00
Marco Hinz
7afad33753
Execute "sign place" with C lang
...
Fixes https://github.com/mhinz/vim-signify/issues/293
2019-03-28 14:59:34 +01:00
Eric Peters
bdbda32568
Fossil: add support for :SignifyDiff
2019-03-28 12:44:58 +01:00
Mike
192d5734b1
Win: support Powershell for Windows ( #291 )
2019-03-21 09:55:49 +01:00
Marco Hinz
c38d4002e0
Don't alter jumplist on :SignifyRefresh
...
Fixes https://github.com/mhinz/vim-signify/issues/290
2019-03-15 16:56:25 +01:00
itouen
b285820778
Use one of &shellxquote and &shellquote
2019-02-28 12:08:45 +01:00
itouen
7c62f29d62
add &shellquote to job cmd
2019-02-27 13:28:46 +01:00
Marco Hinz
8b900a5491
SignifyDiff: set filetype before diffmode
...
References https://github.com/mhinz/vim-signify/issues/285
2019-02-19 14:19:11 +01:00
Marco Hinz
b8a1b656c6
Fossil: add note about non-conventional diff fix
...
References https://github.com/mhinz/vim-signify/issues/282
2019-02-10 16:41:55 +01:00
Marco Hinz
768f523192
Fossil: fix detection of deleted lines (second try)
...
References https://github.com/mhinz/vim-signify/issues/282
2019-02-04 18:45:45 +01:00
Marco Hinz
99a57ebd49
Revert "Fossil: fix detection of deleted lines"
...
This reverts commit 6ab96c13937754e3078076c7fb6996a404f04459.
Unfortunately the situation is a tad more complicated than I thought. Revert for
now and have an eye on https://fossil-scm.org/forum/forumpost/834ce0f1e1
2019-02-04 18:45:41 +01:00
Marco Hinz
64b226cf1b
Fossil: fix detection of deleted lines
...
Assuming line 28 was deleted, the block header for a unified diff looks like:
+28,1 -27,0
This is true for usual suspects like `diff -U0` and `git diff -U0`, but
unfortunately not for Fossil. It would report this instead:
+28,1 -0,0
This lead our code to believe that line 1 instead of line 28 was deleted. And
maybe it's right about that. There does not seem to be a standard for patch/diff
output, but according to my knowledge Fossil is the only VCS doing that.
Anyway, this commit's change should make the detection of a deleted first line
work for every VCS again.
Fixes https://github.com/mhinz/vim-signify/issues/282
2019-02-04 15:41:34 +01:00
Marco Hinz
3332ee2cd7
Doc: correct default Perforce command
...
Sync code and doc again.
fe8b5eb4c5 (commitcomment-32171566)
2019-02-03 12:55:40 +01:00
Marco Hinz
6c0f42f413
Doc: be more precise about when Signify event is fired
2019-01-30 12:29:01 +01:00
Eric Peters
a1ddf6d524
Fossil: don't fall back to external 'diff' tool
...
Nowadays Fossil supports unified output without context on its own.
Fixes #281
2019-01-25 10:23:22 +01:00
Marco Hinz
14f7fda000
Verbose: mention cmd dir and run dir
2018-12-27 15:37:51 +01:00
Marco Hinz
49c8ce0f13
Typo
2018-12-27 15:19:49 +01:00
Marco Hinz
ea6db3c7df
Improve directory changing
...
On Windows, Vim and Nvim can't work with mklink'ed paths. Issue an error message
and bail out before starting the actual job when the directory can't be changed.
Fixes https://github.com/mhinz/vim-signify/issues/279
2018-12-20 23:28:01 +01:00
Marco Hinz
412ae37d93
Add missing "catch all exceptions" clause
2018-12-16 17:42:42 +01:00
itouen
ea87e05e6f
SignifyDiff: convert encoding based on fileencoding ( #278 )
2018-11-16 17:23:24 +01:00
Marco Hinz
c4eb6e1469
SignifyDiff! will not open a new tab
...
This makes is behave like :SignifyFold.
Closes #271
2018-11-02 21:15:34 +01:00
Marco Hinz
cd8a85296d
Doc: example for using DiffText for changed lines
...
Closes #276
2018-11-02 20:53:05 +01:00
Marco Hinz
4e7faba8d3
Hg: change default invocation ( #275 )
...
Mercurial used to enable colors via an extension. Nowadays that is not true
anymore and `extensions.color=!` is rendered useless. Use the omnipresent
`--color=never` instead.
`defaults` is deprecated in favor of `aliases`. We use `aliases.diff=` to force
the use of the standard diff behaviour of `hg diff` which is the same as from
GNU diff. Otherwise an external diff tool could produce output that signify does
not understand.
Refrences #272
2018-10-31 16:59:03 +01:00
Marco Hinz
ce2dd937bf
Doc: mention SignColumn highlight group
...
References #182
2018-10-02 01:02:38 +02:00
spar01
40d1a4ee19
Don't open folds in diff mode ( #269 )
...
Closes #268
2018-08-05 12:11:25 +02:00