Commit Graph
100 Commits
Author SHA1 Message Date
Christian Brabandt a0e9b383c6 tabline: add buffer number to unique_tail formmater
fixes #1987
2019-10-25 17:20:34 +02:00
Christian Brabandt 6eda2735aa Merge pull request #1986 from kazukazuinaina/add_update_statusline_check
add check to statusline's update
2019-10-24 09:38:01 +02:00
Christian Brabandt 3736132370 Merge pull request #1982 from kazukazuinaina/update_airline.txt
update airline.txt about airline-term
2019-10-23 13:07:13 +02:00
Christian Brabandt 6d665580a3 term: allow to disable the term extension
closes #1981
2019-10-16 18:07:35 +02:00
Christian Brabandt 297ca3d004 Merge pull request #1980 from kazukazuinaina/update_airline.txt
update airline.txt
2019-10-11 17:09:32 +02:00
Christian Brabandt 92c0a90b64 Update Changelog
This documents some of the changes that happend since the release
[v0.10](https://github.com/vim-airline/vim-airline/releases/tag/v0.10)
and is needed for the next release v0.11, planned around November 09th/10th

references #1975
2019-10-02 15:09:58 +02:00
Christian Brabandt 262fdc20d5 wordcount: use the short format for widths <= 85
Previously it used a width of >= 80 to display the long word count
format. However I personally found that a bit too wide, while other
sections will be shortened too much which does not really look nice.

Therefore, adjust the limit a bit, using the short word count format for
windows up to 85 characters.
2019-10-02 14:50:55 +02:00
Christian Brabandt 0b537b3065 Update the Changelog 2019-10-02 14:24:46 +02:00
Christian Brabandt 89d1d43165 Merge pull request #1966 from felleg/patch-1
Modified dark.vim commandline foreground color
2019-09-11 21:29:20 +02:00
Christian Brabandt 63d8764f9d po: do not shorten empty fuzzy/untranslated messages 2019-09-09 09:39:41 +02:00
Christian Brabandt 6409c7b317 tabline: do not display neovim terminal there 2019-08-26 15:16:38 +02:00
Christian Brabandt 22f54d8528 sort airline#extensions#tabline#ignore_bufadd_pat 2019-08-26 15:14:21 +02:00
Christian Brabandt 018688a90f tabline: do not show defx buffers
fixes #1962
2019-08-26 15:11:50 +02:00
Christian Brabandt d848de4918 branch: remove double '.' for string concatenation
fixes #1961
2019-08-22 07:56:51 +02:00
Christian Brabandt 57fb980df7 util: micro-optimization of existence check for vcscommand plugin 2019-08-20 22:30:20 +02:00
Christian Brabandt 5df9e23f14 util: micro-optimization of existence check for lawrencium 2019-08-20 22:28:49 +02:00
Christian Brabandt 0370a3b89b util: micro-optimization of existence check for fugitive 2019-08-20 22:28:49 +02:00
Christian Brabandt 51e74f1d1f util: micro-optimization of existence check for strcharpart() 2019-08-20 22:22:19 +02:00
Christian Brabandt ccef93e887 util: micro-optimization of existence check for strchars() 2019-08-20 22:20:39 +02:00
Christian Brabandt 15322e41c7 util: Add comment header, declaring s:vars as constant 2019-08-20 22:19:48 +02:00
Christian Brabandt 486b68cb08 term: get rid of useless variable, add comment 2019-08-20 22:12:34 +02:00
Christian Brabandt af96e9745f wordcount: only try to access buffer content in the actual current buffer
closes #1955
(this actually needs Vim patch 8.1.1372 to work properly)
2019-08-20 14:28:54 +02:00
Christian Brabandt 0f375addd2 term: differentiate different term modes
closes #1958
closes #1957
2019-08-20 14:01:09 +02:00
Christian Brabandt a40184536b Merge pull request #1951 from liujoey/master
add neoterm support
2019-08-11 14:38:52 +02:00
Christian Brabandt c213f2ac44 Merge pull request #1947 from matoruru/patch-1
Updata a url in airline.txt
2019-07-27 11:13:37 +02:00
Christian Brabandt 28cd6253e9 Remove rvm dependency on ruby 1.9.3
looks like this no longer runs on travis-ci, so disableing it for now
2019-07-23 09:36:35 +02:00
Christian Brabandt 2db9b27e39 async: Better fix for #1936
fix #1936 in a different way
2019-06-14 10:30:05 +02:00
Christian Brabandt 71c80aaf54 async: Check existence of buffer before accessing it
fixes #1936
2019-06-14 09:40:30 +02:00
Christian Brabandt 63a75aca2a term: Make terminal extension work on entering it
does not work with Neovim since TermOpen is not used (see #1828 for the
bug)
2019-06-12 11:36:47 +02:00
Christian Brabandt 73b4e4233c Remove Neovim Workaround, as bug has been fixed 2019-06-12 11:26:09 +02:00
Christian Brabandt 28453d7038 Support Multiple Cursor mode
Detect the use of plugin https://github.com/mg979/vim-visual-multi
and show mode "MULTI" when it is active.

closes #1933
2019-06-11 09:48:08 +02:00
Christian Brabandt 826561daf3 say thanks 2019-06-04 08:30:57 +02:00
Christian Brabandt 48d9d5e901 neovim: Do not react on BufWinEnter for floating windows
closes #1930
2019-06-03 10:35:58 +02:00
Christian Brabandt 7d5302b51f plugin: make the on_window_changed function take the autocommand as argument
This is just for making it easier to debug why the plugin update called
2019-06-03 08:30:27 +02:00
Christian Brabandt 3921bc13a3 async: do not clean up job dir for running jobs
closed #1929
2019-06-03 08:22:39 +02:00
Christian Brabandt c7b8a56b22 Merge pull request #1928 from cometsong/cometsong-readme-link
Update README.md: new link(38) to vim-ctrlspace
2019-05-30 19:32:02 +02:00
Christian Brabandt 4a1ac56286 Define coc functions as empty by default
fixes #1926
2019-05-29 21:04:32 +02:00
Christian Brabandt b19dc8fc65 Merge pull request #1925 from peng1999/master
Coc integration
2019-05-29 17:30:24 +02:00
Christian Brabandt 193e350440 Check existence of variable before trying to set it
closes #1924
2019-05-24 08:14:25 +02:00
Christian Brabandt 3abbfabf55 Merge pull request #1922 from petobens/master
Extend denite statusline to denite-filter buffer
2019-05-22 15:39:21 +02:00
Christian Brabandt 7b20361baf denite: correctly test denite version
references #1918
2019-05-14 16:31:52 +02:00
Christian Brabandt 9a1acf144f async: Correctly reset dirty flag 2019-05-08 17:22:34 +02:00
Christian Brabandt 79f91649b6 branch: Check untracked and dirty only wehn the fugitive/lawrencium plugins are installed 2019-05-08 13:57:25 +02:00
Christian Brabandt 1b41629214 async: do not show dirty sign for error messages
closes #1915
2019-05-08 13:51:50 +02:00
Christian Brabandt ea7f5d5313 extensions: show loaded extension once (at most once)
could happen, that extensions are shown several times, if airline is
available in your &rtp several times (for whatever reason)
2019-05-03 12:43:21 +02:00
Christian Brabandt cd2884abf1 bookmark: do not error out, if the plugin isn't installed
fixes #1912
2019-05-03 12:37:17 +02:00
Christian Brabandt 715274c3f9 Merge pull request #1912 from bpetri/master
vim-bookmark extension
2019-05-03 12:00:57 +02:00
Christian Brabandt a26a460698 branch: configure what additional checks to run
Allow to customize, whether to check the untracked status of a file or
whether the current repository is clean.

fixes #1910
2019-05-02 08:14:57 +02:00
Christian Brabandt cc8f47e248 async: fix small problems with dirty jobs 2019-05-02 07:57:10 +02:00
Christian Brabandt 2db882e9b8 async: check dictionary keys before trying to access them 2019-05-01 07:45:06 +02:00
Christian Brabandt 8169aa25af init: make sure the dirty symbol is defined
references #1907
2019-04-30 17:36:31 +02:00
Christian Brabandt 7469672a46 extensions: Allow customization of filetypes
Define the variable :let g:airline_filetype_overrides to allow for
specific customization how a specific filetype will be displayed.

For e.g. a German display, you can use: >

    :let g:airline_filetype_overrides = {'help': ['Hilfe', ':%f']}
<

This defines how section a and b will look like for a window with that
specific filetype.

Closes #1888
2019-04-30 17:28:51 +02:00
Christian Brabandt 170b6d4c26 extensions: sort filetype_overrides 2019-04-30 16:54:48 +02:00
Christian Brabandt d1e82c71a3 branch: check existence of dirty key before accessing it
closes #1907
2019-04-30 16:33:05 +02:00
Christian Brabandt 28ed36a9ec whitespace: fix small problems from conflicts test 2019-04-26 22:08:26 +02:00
Christian Brabandt 1fedd3a2b7 updated Changelog 2019-04-26 14:42:35 +02:00
Christian Brabandt 538326ceac whitespace: Also check for Git conflict markers 2019-04-26 14:38:13 +02:00
Christian Brabandt d4f645777e Updated documentation 2019-04-26 13:56:02 +02:00
Christian Brabandt a753422549 main: Make :AirlineRefresh! skip recrecrating highlighting groups
When `g:skip_empty_sections` is set, `:AirlineRefresh` can be called
very often and cause slow down, because it forcefully re-creates the
highlighting groups. This is mostly not needed for the redraw to happen,
therefore, add the `<bang>` attribute to the command, making it skip to
re-create the highlighting groups and have all extensions that rely on a
forced update use the `!` form.

Should be much fast then.

fixes #1908
2019-04-26 10:16:40 +02:00
Christian Brabandt fdd75df927 async: cleanup logic for nvim/vim8/vim7 2019-04-25 15:07:12 +02:00
Christian Brabandt 6b213e1071 branch: make it work with vim74
closes #1907
2019-04-25 14:43:56 +02:00
Christian Brabandt 9c1486522a branch: ignore submodules for git when determing clean state 2019-04-25 08:47:05 +02:00
Christian Brabandt 11cd15d218 async: fnameescape filename
A buffer name wich special characters such as Command-T [Files] will
cause E94 when trying to call setbufvar() on it. That is because the
'[]' is special in buffer names. Therefore, fnameescape the buffer name.

This should prevent 'E94: No matching buffer for
/home/louis/git/minivimrc/Command-T [Files]' errors.

closes #1906
2019-04-25 07:41:56 +02:00
Christian Brabandt 1297773a26 branch: skip untracked files for clean state 2019-04-25 07:35:41 +02:00
Christian Brabandt a8b0c5f760 branch: skip for non-empty &buftype buffers 2019-04-25 07:32:13 +02:00
Christian Brabandt ffd8c406ab branch: Make the branch extension available with 80 char wide windows 2019-04-24 16:12:54 +02:00
Christian Brabandt 9f193de600 branch: Remove spurious dirty var 2019-04-24 15:51:43 +02:00
Christian Brabandt 28bebd35ea fugitiveline: use correct fugitive functions 2019-04-24 15:48:16 +02:00
Christian Brabandt 3ac318bfd3 fugitive: replace old buffer().commit() function by new global function
as requested by the exception thrown:
fugitive: A third-party plugin or vimrc is calling
fugitive#buffer().commit() which has been removed. Replace it with
matchstr(FugitiveParse()[0], '^\x\+')
2019-04-24 15:29:51 +02:00
Christian Brabandt 9112675ad8 branch: display dirty state
If the repository is considered dirty, do display the
g:airline_symbols.dirty symbol right after the branch name.
2019-04-24 15:16:57 +02:00
Christian Brabandt a8c96d7c07 async: Move function definition so it is valid for nvim 2019-04-24 13:27:25 +02:00
Christian Brabandt 941341d085 branch: simplify async logic a bit 2019-04-24 13:25:31 +02:00
Christian Brabandt ead2cd63bb term: only strip first letter from name, if it starts with '!' 2019-04-18 15:52:54 +02:00
Christian Brabandt 704e58e1b7 Fix failing test and make it aware of tablabel_right 2019-04-17 13:24:19 +02:00
Christian Brabandt 6acb234a12 tabline: Use separate hi group for label on right
if the same highlighting group is used on the left and right for the
label, the `airline_tablabel_to_airline_tabmod` will be overwritten on
the right side, causing the fg/bg colors to be wrong, because on the
right side they have to be the opposite of the left side.

So use a separate highlighting group for the tablabel on the right.

closes #1902
2019-04-17 09:04:56 +02:00
Christian Brabandt d1d9548b8e themes: correctly catch not-found in init function
plugin/airline.vim was calling airline#switch_theme() without actually
catching the 'not-found' exception.

Therefore, in case of errors, explicitly switch to a dark theme.

closes #1903
2019-04-17 08:27:30 +02:00
Christian Brabandt 773f0e3637 Merge pull request #1898 from clobrano/short-path-formatter
Add formatter for short paths
2019-04-15 10:07:19 +02:00
Christian Brabandt cbf264ff5f Merge pull request #1897 from shayneholmes/wordcount-formatters
Search for wordcount formatters with extension
2019-04-09 20:56:34 +02:00
Christian Brabandt 86e73cade7 Get a random number from win32 cmd.exe 2019-03-26 21:53:47 +01:00
Christian Brabandt 4265798d4b style: rename inconsistent function names 2019-03-26 21:10:45 +01:00
Christian Brabandt 148eb6bb28 Allow to switch to a random theme
You can now specify the special theme name `random` and vim-airline will
load a random theme from the ones installed. This works from either your
.vimrc as well as when calling `:AirlineTheme` command directly.

closes vim-airline/vim-airline-themes#170
2019-03-26 21:03:13 +01:00
Christian Brabandt a6fb6d9da0 Extensions: indicate, if an extension is external
Show in :AirlineExtensions if the extension comes bundled with airline
or from an external source.

closes #1890
2019-03-26 08:41:36 +01:00
Christian Brabandt 1fb184305b fugitiveline: simplify modify logic
The 'autochdir' option could be toggled on later in a session.
So do not set the has_autochdir flag once the file is read, but evaluate
it every time the corresponding function is called.

While at it, get rid of the s:fmod variable. Instead let a helper
function return the correct modifier flags depending on the value of the
'autochdir' option.
2019-03-25 12:34:09 +01:00
Christian Brabandt c8a36e14e9 Updated Copyright Statements 2019-03-25 12:29:47 +01:00
Christian Brabandt 45205aa4a3 wordcount: expose filetype list to global scope
allows better configuration of filetypes to be wordcounted.

fixes #1887
2019-03-19 08:28:51 +01:00
Christian Brabandt b84e548522 Make displaying the tab count optional
Set the g:airline#extensions#tabline#show_tab_count to zero to disable.

fixes complaints at #1882
2019-03-16 09:32:35 +01:00
Christian Brabandt 6ab14bf474 tabline: add consistent tab label to the end
closes #1882
closes #1883
2019-03-08 14:05:38 +01:00
Christian Brabandt 1c3ae6077a Merge pull request #1879 from gmolau/Fix-syntastic-formatting
Fix the formatting of syntastic error messages
2019-02-22 07:49:52 +01:00
Christian Brabandt eb0ddf61dc Merge pull request #1877 from maxnordlund/resepct-minwidth-for-vcs
Respect minwidth for hunks and branch parts
2019-02-22 07:49:28 +01:00
Christian Brabandt 448aa43ec4 Merge pull request #1875 from petobens/master
Fix denite extension
2019-02-12 11:15:14 +01:00
Christian Brabandt 1471330825 Adjust buffer numbers for buf_idx_mode v2 slightly
fixes #1823
2019-02-08 07:55:35 +01:00
Christian Brabandt 05572482b8 tabline: add forgotten changes from commit cd1d8c2a96
I accidentally missed including some more changes for buffer_idx_mode=2.
So add those files now.
2019-02-07 08:17:33 +01:00
Christian Brabandt cd1d8c2a96 Introduce buffer_idx_mode v2
fixes #1823
2019-02-07 08:11:47 +01:00
Christian Brabandt 624d2f1438 tabline: AirlineSelectTab still wrong sometimes
Partly revert commit 105e9daaf7
and fix #1857 another way, by making sure, that buffers are not taking
away from the s:current_visible_buffers list.

Fixes #1857
Fixes #1872
2019-02-06 22:42:10 +01:00
Christian Brabandt 767c1efd10 bufferline: catch invalid modelines 2019-02-05 08:35:57 +01:00
Christian Brabandt 999c40fcf3 tabline: simplify creation of maps
instead of typing all the mapping commands, create a loop that will
create the new maps.
2019-02-04 21:59:40 +01:00
Christian Brabandt 105e9daaf7 tabline: Make the PlugAirlineSelectTab buffers work as expected
for bufferlist.

fixes #1857
2019-02-04 21:47:11 +01:00
Christian Brabandt 4078688305 README.md: move section header 2019-02-04 10:38:11 +01:00
Christian Brabandt 96d42317b1 Update README.md 2019-02-04 10:37:34 +01:00
Christian Brabandt 23a8a7e04d doc: ammend doc about statusline on top 2019-02-04 09:55:48 +01:00