James McCoy
c61dded98a
Add the buffer number as an argument to sy#stop()
...
sy#stop() is called by the BufDelete autocmd so b: variables may not
correspond to the buffer actually being deleted. Instead, we must use
<abuf> to determine which buffer is being deleted and pass that into
sy#stop().
There are some ripple effects, causing sy#sign#remove_all_signs to also
gain a buffer number argument.
Signed-off-by: James McCoy <vega.james@gmail.com>
2014-11-25 11:25:40 -05:00
James McCoy
babf2fd975
Remove extraneous :call in FocusGained autocmd
...
Closes mhinz/vim-signify#143
Signed-off-by: James McCoy <vega.james@gmail.com>
2014-11-06 14:02:00 -05:00
Marco Hinz
bd0956eee6
Remove all default mappings except for ]c / [c
...
References #142 .
2014-11-05 14:16:44 +01:00
Alex Rodionov
de297820bc
Expose sy#util#refresh_windows()
...
References #141 .
2014-11-05 13:07:59 +01:00
Alex Rodionov
4c3c10d1cb
Update signs both on FocusGained and FocusLost
2014-11-02 19:47:49 +06:00
Marco Hinz
a03bee658f
Add support for lazy loading
2014-11-02 09:28:54 +01:00
killphi
e4a428c0d7
Make hunk text object mappable
...
References #138 .
2014-11-02 09:11:28 +01:00
Marco Hinz
2723b1e86e
Execute FocusGained action for all windows
...
References #113 .
2014-10-06 14:09:22 +02:00
Marco Hinz
9186a58ca7
Doc: add remark about ]c and [c
2014-10-06 01:32:10 +02:00
Marco Hinz
ecd0bb0dbc
Introduce hunk text object
2014-10-06 01:17:57 +02:00
Marco Hinz
8cef26186e
Make sure b:sy_path is always set
...
References #136 .
2014-10-04 19:48:10 +02:00
Marco Hinz
fe3bafce11
Introduce smarter sign management
2014-10-04 15:56:10 +02:00
Marco Hinz
a4e06fb303
Set b:sy_path also for SessionLoadPost events
...
Closes #101 .
2013-12-27 14:45:44 +01:00
Marko Tibold
dcae627181
Improve speed of :vimgrep by using a global lock
2013-11-26 11:11:52 +01:00
Marco Hinz
6ecab1b621
Prevent potential regressions
...
References #95 .
2013-11-22 16:44:06 +01:00
James McCoy
5211c19ee7
Move Sy's data from g:sy to b:sy
2013-11-22 13:48:49 +01:00
Marco Hinz
a9284f363c
Move modelines to the top
2013-09-30 10:19:31 +02:00
Dario Sneidermanis
99ef641012
Fix mapping shadowing
...
Use empty() instad of ! when testing for string emptiness.
if !'foo' == !'' | echo 'facepalm!' | endif
2013-09-06 17:36:30 +02:00
Marco Hinz
b29cd71f6d
Set encoding for plugin files
...
Closes #54 .
2013-08-19 17:36:16 +02:00
Marco Hinz
b53043de80
New option: signify_update_on_focusgained
2013-08-13 08:09:02 +02:00
Marco Hinz
9733f6cfac
Improve jumping once again
...
References #4 .
2013-07-22 00:21:34 +02:00
deris0126
4b1dc081d7
Do not overwrite already mapped keys
...
Don't set <plug> mappings twice and don't set them at all if the target
keys are already mapped.
Closes 42.
2013-07-21 18:51:00 +02:00
deris0126
6df6dd1eb7
Fix jumping if no count is specified for commands
...
References #40 .
Closes #43 .
2013-07-21 17:55:19 +02:00
deris0126
f550254e33
Fix wrong jump if no count is specified
...
If jump next hunk with no count, it move last hunk of below hunks.
v:count step is 0, 2, 3, 4..., so if no count is specified, next hunk is
-1(this is last hunk of below hunks). Because of above reason, I change
to use v:count1 instead of v:count. v:count1 step is 1, 2, 3, 4... .
Closes #40 .
2013-07-21 14:23:29 +02:00
Marco Hinz
7d56e9aac1
Minor corrections
2013-07-17 12:44:21 +02:00
Marco Hinz
ea331d6065
Populate autoload/
2013-07-17 12:30:58 +02:00
Marco Hinz
0718c1a2a9
Add sy#repo.vim
2013-07-17 10:14:43 +02:00
Marco Hinz
7d4759866a
New sy#utils.vim
2013-07-17 09:54:03 +02:00
Marco Hinz
b28fbe2625
New: s:repo_get_stat_git()
2013-07-17 09:23:29 +02:00
James McCoy
e9747e791a
Add support for accurev
2013-07-10 16:08:11 -04:00
Marco Hinz
d6086e769a
Docs: minor corrections
2013-07-09 07:28:03 +02:00
Marco Hinz
673d17a2da
Indicate deleted lines for ChangeDelete signs
2013-07-08 11:56:23 +02:00
Marco Hinz
4c8fa59309
Setup hl groups on VimEnter
2013-07-08 11:25:12 +02:00
Marco Hinz
16359f44f2
Put hl group linking into a function
2013-07-08 11:17:11 +02:00
Marco Hinz
abdd63063c
Fix wipeout error
...
Closes #38 .
2013-07-08 02:13:39 +02:00
Marco Hinz
5dd80d421b
Echomsg won't interpret unprintable characters
2013-07-05 11:36:23 +02:00
Marco Hinz
9a42020f53
Bump to 1.9
2013-07-04 13:06:08 +02:00
Marco Hinz
282262cba6
New option: g:signify_disable_by_default
...
You can choose to disable Sy by default now. You can enable it anytime
via :SignifyToggle (or the default mapping: <leader>gt).
Closes #34 .
2013-07-04 12:28:18 +02:00
James McCoy
93006d94a3
Make "jump to hunk" behave like the builtin ]c/[c
...
Instead of using the sign id as the primary piece of data, store
information on a per-hunk granularity. A hunk has a start/end line as
well as a set of sign ids that have been placed within those lines.
This makes moving to the start of the next/previous hunk, as per the
behavior of the standard `]c`/`[c` bindings, pretty straight forward --
a simple filter to find relevant hunks, and then grab the first sign id.
2013-07-04 01:49:08 -04:00
Marco Hinz
039f361ff7
Heavily reduce compexity by removing color options
...
This will be the first backwards incompatible commit for Sy for the sake
of simplicity.
For more information see: :help signify-colors
2013-07-03 17:01:51 +02:00
Marco Hinz
9e4de23259
Fix SignifyDeleteChanged sign setting
...
Closes #33 .
2013-07-02 11:05:42 +02:00
Marco Hinz
32f70cac6d
Merge branch 'ext-signs'
2013-06-24 11:27:53 +02:00
Marco Hinz
ae799c152f
Fix BufDelete racing problem
...
In certain cases the code that gets triggered by BufDelete would use
the wrong s:path due to a racing problem.
Thanks to @techlivezheng for the feedback.
Closes #30 .
2013-06-22 11:47:50 +02:00
Marco Hinz
6d00d4707d
Correct g:signify_difftool check
2013-06-07 17:57:51 +02:00
Marco Hinz
476f22ac48
Merge branch 'ext-signs'
2013-06-07 09:02:06 +02:00
Marco Hinz
1ec3e34109
Bump to 1.8
2013-06-07 08:45:17 +02:00
Marco Hinz
7895cb92eb
Show number of deleted lines
2013-06-07 08:38:41 +02:00
Marco Hinz
e1cbc2082e
New option: g:signify_difftool
...
Some VCS rely on an external diff tool, because they don't support the
-U0 flag natively. Most of the time that's the standard 'diff' utility.
But fritzophrenic was reporting that even a GNU diff won't always be
installed as 'diff', but e.g. as 'gnudiff' instead.
You can set the external diff tool now.
Closes #29 .
2013-06-07 01:03:34 +02:00
Marco Hinz
068c0e894d
Write buffer when 'update_on_bufenter' is enabled
...
References #28 .
2013-06-06 18:03:02 +02:00
Marco Hinz
f1a82a8654
Readd BufEnter for setting s:path
2013-06-06 13:08:15 +02:00