164 Commits

Author SHA1 Message Date
Christian
f54f7859a3
tabline: disable Vim9 script add_tab_label 2020-11-27 10:43:54 +01:00
Christian
ad7dcbdece
tabline: disable Vim9 script functions that do not work currently 2020-11-27 10:43:54 +01:00
Christian
bb204d1fee
tabline: fix vim9 syntax error in group_of_bufnr 2020-11-27 10:43:53 +01:00
Christian
d49b655e72
tabline: fix possible vim9script error in init func 2020-11-27 10:43:52 +01:00
Christian
70dc69fcd8
tabline: fix errors in Vim9script get_buffer_name 2020-11-27 10:43:52 +01:00
Christian
cdb265c410
tabline: fix errors in Vim9script title function 2020-11-27 10:43:52 +01:00
Christian
de3dbfcb3c
tabline: fix errors in Vim9script load_theme 2020-11-27 10:43:51 +01:00
Christian
cc2a836b9a
tabline: Vim9 script implementation of add_tab_label 2020-11-27 10:43:51 +01:00
Christian
6ff95bac4e
tabline: Vim9 script implementation of add_label 2020-11-27 10:43:51 +01:00
Christian
c8c30c9e3e
tabline: Vim9 script implementation of group_of_bufnr 2020-11-27 10:43:51 +01:00
Christian
a77cd28ecc
tabline: Vim9 script implementation of new_builder 2020-11-27 10:43:51 +01:00
Christian
6a6945d45d
tabline: Vim9 script implementation of get_buffer_name func 2020-11-27 10:43:51 +01:00
Christian
d5ffa5fd58
tabline: Vim9 script implementation of #title func 2020-11-27 10:43:50 +01:00
Christian
b10c1107e1
tabline: init function, do call autocommand functions 2020-11-27 10:43:50 +01:00
Christian
4f59fef538
move script local variable current_tabcnt to top 2020-11-27 10:43:50 +01:00
Christian
e59a654d17
tabline: Vim9 script implementation of get() 2020-11-27 10:43:50 +01:00
Christian
18ae588bad
tabline: remove bang attribute in load_theme func definition 2020-11-27 10:43:50 +01:00
Christian
86c466d81e
tabline: fix vim9 error in enable func 2020-11-27 10:43:50 +01:00
Christian
c08b1c0c75
tabline: fix vim9 error in toggle_on func 2020-11-27 10:43:49 +01:00
Christian
3d536ef950
tabline: fix vim9 error in init func 2020-11-27 10:43:49 +01:00
Christian
02aaaf94e8
tabline: Vim9 script implementation of load_theme 2020-11-27 10:43:49 +01:00
Christian
bbc70019f6
tabline: Vim9 script implementation of enable 2020-11-27 10:43:49 +01:00
Christian
0bc7ff3629
tabline: Vim9 script implementation of redraw 2020-11-27 10:43:49 +01:00
Christian
7880f0a73c
tabline: Vim9 script implementation of update_tabline 2020-11-27 10:43:49 +01:00
Christian
5502e5302d
tabline: Vim9 script implementation of toggle_on 2020-11-27 10:43:48 +01:00
Christian
59c906da4d
tabline: Vim9 script implementation of toggle_off 2020-11-27 10:43:48 +01:00
Christian
19f8be42b6
tabline: Vim9 script implementation of #init function 2020-11-27 10:43:48 +01:00
Christian
e81d400b09
tabline: check existence of "e" flag in guioptions 2020-11-27 10:43:48 +01:00
Christian
5062eeeaed
tabline: add foldmarkers and remove some empty lines 2020-11-27 10:43:48 +01:00
Christian
e6bd342293
tabline: prepare for vim9script implementation 2020-11-27 10:43:48 +01:00
Christian
caaa553ce9
tabline: set expandtab and foldmarker to modeline 2020-11-27 10:43:47 +01:00
huanhuan_zhuang
5d3cfa4045
add 'g:airline#extensions#tabline#tabtitle_formatter' option
The option can be used to specify a customized format() function to display tab title in tab mode
2020-08-25 13:42:18 +02:00
Christian Brabandt
6a1c2a74e9
Merge pull request #2125 from shaine/master
Use disabled style for inactive tabs
2020-08-12 15:43:05 +02:00
Christian Brabandt
bc8fdfe946
terminal: correctly shorten terminal tabline
If there is a single terminal window in  the current tabpage, the whole
long command will be displayed in the tabline, even when it should be
shortened by default.

By default the title will not be shown if there are several windows in
the current tabpage, but if there is only one single terminal window, it
will still be shown (and might be a bit long). But I guess, it is better
to just show a possible too long terminal window name, than not show
anything).

fixes #2126
2020-06-21 22:31:43 +02:00
Shaine Hatch
62e7fc6ab1
Use disabled style for inactive tabs 2020-04-30 12:13:55 -06:00
Christian Brabandt
29eec37c66
tabline: fix typo
related: #2103
2020-03-30 08:27:20 +02:00
kazukazuinaina
185bcc5e88 [add] new option / always show tab count feature 2020-03-30 01:06:06 +09:00
kazukazuinaina
cf6dcf5e19 update license's year in vim-airline 2020-01-06 11:22:49 +09:00
kazukazuinaina
60aaed01ae fix typo in tabline.vim 2019-12-15 21:28:51 +09:00
Christian Brabandt
9c3f84fc67
tabline: skip expansive BufAdd call on Session load
closes #2015
2019-12-13 08:44:15 +01:00
Christian Brabandt
758c83acbf
tabline: simplify autocommand condition 2019-12-12 09:58:21 +01:00
s1341
3f7222e488
Add support for vim-tabws tabline
closes #1938
2019-07-23 09:40:18 +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
c8a36e14e9
Updated Copyright Statements 2019-03-25 12:29:47 +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
fd5bde1a3a
allow to show the statusline on top
This is an experimental feature that allows to display the statusline in
the tabline. It might still be a bit rough, but seems to work so far.

Remaining problem:
- Mode changes are not immediately detected, only after moving the
  cursor

fixes #1388
closes #1867
2019-02-03 17:30:55 +01:00
Christian Brabandt
6fd5b6ae56
tabline: Fix redrawtabline typo 2019-01-09 08:26:07 +01:00
Christian Brabandt
4604f6d465
tabline: Use :redrawtabline if available
this needs patch 8.1.706 and is a less hacky approach to force updating
the tabline
2019-01-09 07:42:32 +01:00
Christian Brabandt
a0298263b7
autocomd: do not re-evaluate modelines
fixes #1804
2018-09-25 16:03:30 +02:00