Quinn Strahl
30df99a681
Don't wipe out b:airline_head if fugitive finds the head
...
- Fugitive can edit virtual files that represent objects in git; while
editing these files, it still reports on the HEAD of the relevant
repo, which should be displayed as the branch (rather than having the
branch section disappear)
2014-08-25 09:51:52 -04:00
Andrew Gregory
83a7e30790
use commit hash as git branch with detached HEAD
...
Abbreviated to 7 characters to match `git rev-parse --short HEAD`.
2014-08-20 18:59:15 -04:00
Ben Joldersma
4f904ab0d4
Fix #462 - Configurable head limit.
2014-05-21 10:41:53 -07:00
Johnathan
9e8fe7a98e
doesn't assume user has 'set autochdir' set
2014-04-24 03:03:03 +10:00
Bailey Ling
a37f0b9ae0
restore original directory change detection. also resolves #474 .
2014-04-03 00:54:43 +00:00
Bailey Ling
d111e4edb3
remove usage of fugitive#detect as per request
...
https://github.com/tpope/vim-fugitive/issues/463
2014-04-01 16:45:06 -04:00
Russell Hancox
13297cee03
Add CursorHold autocmd to unset airline_head
2014-03-28 10:53:13 -04:00
Russell Hancox
25059d43b1
Save branch head to a buffer variable
...
Save branch head to a buffer-local variable to prevent looking up the VCS head for every status line refresh.
2014-03-24 14:01:31 -04:00
Paweł Więcek
5e25794d4b
Correctly detect mercurial repos using lawrencium
2014-02-25 22:36:36 +01:00
Bailey Ling
fae68dbcb7
account for possibilty of branch extension unavailable. resolves #419 .
2014-01-20 12:39:33 -05:00
Bailey Ling
baed8ac063
happy 2014
2014-01-19 23:44:44 -05:00
Rich Alesi
6141a59278
Allow changes to airline_symbols.branch after init
...
If the user updates the airline_symbols.branch variable later in the vimrc, the value will not update after the initial init. Since these variables are only used in the get_head() function, I moved them locally within the function to allow evaluation on each instance.
2014-01-15 21:31:07 -07:00
Bailey Ling
0966b693d9
expose cleaner api to determine empty head.
2013-12-03 05:32:54 +00:00
Bailey Ling
253974506a
disable vcscommand integration by default. resolves #340 .
2013-11-12 09:45:04 -05:00
David Zderic
2e8f99d39b
Use VCSCommand to display revision if available
2013-11-08 10:39:00 +11:00
Bailey Ling
a8c96b6020
parse out submodule path when not in a .git directory ( #273 ).
2013-10-02 10:18:33 -04:00
Bailey Ling
2735282992
account for different git submodule format. resolves #273 .
2013-10-01 21:36:24 -04:00
Bailey Ling
948a4178a8
use code 160 for space to fix rendering problems.
2013-09-18 22:23:50 -04:00
Bailey Ling
59e4ab49ce
fix windows path separator parsing ( #251 ).
2013-09-13 19:15:01 +00:00
Bailey Ling
3a5a40730a
check guard for all extensions. resolves #241 .
2013-09-10 15:40:54 +00:00
Bailey Ling
4c6aa4401b
check the git/hg root when changing buffers. resolves #237 .
2013-09-08 14:03:49 +00:00
Bailey Ling
d268744077
test the layout config for the default extension.
2013-08-30 22:44:20 -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
d5d87d2cdc
reduce variable deprecation.
2013-08-27 14:12:03 +00:00
Bailey Ling
6dd4cd5423
clean up how symbols are defined.
2013-08-26 23:39:25 -04:00
Jacob Walker
3920817442
Better toggling of powerline fonts
...
+ Check the value of airline_powerline_fonts not just existence
2013-08-22 09:14:17 -05:00
Bailey Ling
494d15232c
reduce pollution of global scope variables
2013-08-20 03:38:02 +00:00
Bailey Ling
7e563f9c74
detect branch when changing directories. resolves #138 .
2013-08-18 18:34:02 +00:00
Bailey Ling
0a88fd81d3
update branch head all the time ( #42 ).
2013-08-18 17:22:35 +00:00
Bailey Ling
2a10bfc32f
make the mode and branch text window local
2013-08-11 13:42:47 +00:00
Bailey Ling
35539b2667
customizable empty branch message. closes #121 .
2013-08-09 20:12:56 +00:00
Bailey Ling
e858eaa990
fix branch detection
2013-08-06 00:42:59 -04:00
Bailey Ling
990e3fc949
make branch/bufferline default statusline rather than overrides
2013-08-06 00:35:07 -04:00
Bailey Ling
98f3d13705
do not overwrite when left only
2013-08-06 03:33:25 +00:00
Bailey Ling
9c960875fe
extract fugitive/lawrencium
2013-08-06 03:07:01 +00:00