Commit Graph

31 Commits

Author SHA1 Message Date
thawk
45d77ca909 Add 'scriptencoding utf-8' to all scripts 2016-09-24 08:16:30 +08:00
Christian Brabandt
43e3ef5428 Do not cache gitgutter values
fixes #1230
2016-08-24 21:22:28 +02:00
Julien Pivard
53dcd8a49c Hunks won't appear if g:airline_skip_empty_sections = 1 2016-07-24 21:15:10 +02:00
Christian Brabandt
8fda614d0d Cache hunk values, shorten for small windows
Cache the hunk values. In case of short windows, shorten the hunk string
a little bit and make the branch extension take the hunk value into
account when deciding how much to shorten it.
2016-07-03 20:44:05 +02:00
Marco Hinz
d85d697b5f Hunks: make s:source_func local to buffer
Prior to this change airline set the function for getting hunks only once,
which works as long as you don't use simlar plugins for different VCS at the
same time.

If that was the case, only one plugin would have won, depending on the first
buffer handled by these plugins. And although the code for the other plugin
was run every time, you would never see the actual line changes, since airline
didn't even bother checking.

Now these plugins can be used side-by-side in the same Vim instance, e.g.
gitgutter for, well, git and signify for the rest.
2016-01-15 13:05:01 +01:00
Bailey Ling
048b24a916 happy 2016! 2016-01-14 21:38:38 -05:00
Daniel Hahler
f22fbfd41d hunks: add support for quickfixsigns
Closes: https://github.com/bling/vim-airline/pull/754
2015-05-03 19:50:11 +02:00
Bailey Ling
1ca6ffb6d0 happy 2015
resolves #692.
2015-02-13 21:47:43 -05:00
Christian Brabandt
f2ae2bd7d0 integrate changesPlugin for displaying hunks 2014-05-27 20:22:59 +02:00
Bailey Ling
baed8ac063 happy 2014 2014-01-19 23:44:44 -05:00
Bailey Ling
ce32405105 fix possibility of the branch extension being unavailable. resolves #366. 2013-12-03 20:01:26 -05:00
Bailey Ling
0966b693d9 expose cleaner api to determine empty head. 2013-12-03 05:32:54 +00:00
Dmitry Kruglov
08a57d0227 Hide hunks when Git Gutter is enabled, but current file is NOT under git version control 2013-12-02 17:29:04 -08:00
Bailey Ling
3a5a40730a check guard for all extensions. resolves #241. 2013-09-10 15:40:54 +00:00
Bailey Ling
6689aca82b fixes wrong echoing behavior on stock osx vim. resolves #209. 2013-09-02 20:12:03 -04:00
Bailey Ling
60cc5a5ca1 hide hunks for inactive windows. 2013-09-02 14:48:03 +00:00
Bailey Ling
ded2c2ff7e remove temp fix for vim-signify. resolves #188. 2013-08-31 16:23:53 -04:00
Bailey Ling
fa517238c7 introduce parts metadata. 2013-08-30 21:51:10 +00:00
Bailey Ling
bdd758dd38 convert branch/hunks/bufferline to function names. 2013-08-29 00:15:07 +00:00
Bailey Ling
2708951715 place hunks and branch extension into parts. 2013-08-27 23:22:26 +00:00
Bailey Ling
9194a9f02d add temporary fix for vim-signify integration (#188). 2013-08-26 13:46:49 +00:00
Bailey Ling
41159bfbc2 improve vim-signify integration (#169). 2013-08-21 23:24:56 +00:00
Bailey Ling
a04d7c277a support vim-signify as a hunk source. 2013-08-20 15:43:26 +00:00
Bastian Winkler
bbe077037e hunks: Display the hunks summary only if Git Gutter is enabled 2013-08-20 16:53:29 +02:00
Bailey Ling
fa62cbb5f6 simplify, no globals unless necessary. 2013-08-20 03:44:24 +00:00
Benjamin Bergman
a5f084dc4e Use extension local variables, and expose hunk_symbols to user 2013-08-19 22:32:14 -05:00
Benjamin Bergman
4d9a0e257f Add option to show only non-zero hunks 2013-08-19 17:28:42 -05:00
Bailey Ling
de69bba26e re-enable gitgutter integration with new upstream function. resolves #154 and #153. 2013-08-19 16:03:10 +00:00
Bailey Ling
16f2d7013d disable hunks by default, a couple bugs remaining. 2013-08-19 13:22:24 +00:00
Bailey Ling
da4d0730d3 improve gitgutter integration and algorithm 2013-08-18 21:39:27 +00:00
Bailey Ling
dad0d5a8d8 add gitgutter integration. 2013-08-18 21:02:33 +00:00