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
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
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
58bbc512f9
tabline: Only define Terminal autocommand if vim supports it
...
fixes the broken CI test which runs in a vim that does not come with
terminal support
2019-02-03 10:43:23 +01:00
Christian Brabandt
1d03b9dc62
tabline: invalidate buffer list on Terminal Enter
...
should workaround and fix #1853 in a better way
2019-02-03 10:36:07 +01:00
Christian Brabandt
916d023c35
buflist: do not consider empty buffers to be excluded
...
currently, empty buffer names were still considered to match against the
exclude_path setting. That does not make sense, so skip the check for
empty bufnames.
2019-02-02 22:43:27 +01:00
Christian Brabandt
5415c5e6ec
tabline: Fix broken call to formatter
2019-02-02 21:57:15 +01:00
Christian Brabandt
dc7d991007
Tabline: Make specifying formatter more easy
...
closes #1863
2019-02-02 17:45:55 +01:00
Christian Brabandt
d372b5bc46
tabnr formmatter: fix style
2019-02-02 17:45:33 +01:00
Christian Brabandt
d68c9bbeb2
tabline: make middle-click work as expected in neovim
...
closes : #1854
2019-01-11 10:44:10 +01:00
Christian Brabandt
2eaf57ece8
xtabline: use airline#util#warning instead of echo conistently
2018-11-13 21:37:52 +01:00
Aaron Miller
62f3d1d412
Add option for numbered tabs
...
Cleaned up variable name, added documentation
2018-11-01 10:44:44 -04:00
Christian Brabandt
a0298263b7
autocomd: do not re-evaluate modelines
...
fixes #1804
2018-09-25 16:03:30 +02:00
Christian Brabandt
110594c91a
tabline: remove spurious variable
2018-09-20 10:31:14 +02:00
Christian Brabandt
012229fe08
tabline: Ignore buffers in buflist matching ignore_bufadd_pat
...
closes #1777
2018-09-20 10:26:32 +02:00
Christian Brabandt
5aef1b90e5
tabline: Correctly trigger on BufDelete autocommand
...
fixes #399
2018-07-13 22:29:34 +02:00
Christian Brabandt
821372b9cf
tabline: re-map tabline keys
...
fixes #1753
2018-07-13 21:33:03 +02:00
Liam Fleming
feca81fb86
add "!" to function signatures
2018-06-13 17:52:13 +01:00
Hana Shiro
acb93da0d8
Fix tabline didn't update when enable both buffers and tabs
2018-06-05 06:11:14 +08:00
Christian Brabandt
add75907d5
Merge pull request #1738 from shirohana/fix/ctrlspace-tabline-switching
...
airline#extensions#ctrlspace: Fix tabline didn't update when switch to tab which focused on non-listed buffer
2018-06-04 22:56:22 +02:00
Christian Brabandt
1bb1ce594a
Formatter: Use pathshorten() instead of substitute()
...
The default formatter uses a hand-build regexp for shortening the path
in the tabline. However, since it uses the \w regex atom, this won't
match e.g. cyrillic letters.
To fix this, use the builtin pathshorten() function which does handle
this case correctly. For a test, use e.g. 'D/Учёба/t.c'
closes #1737
2018-06-04 21:59:16 +02:00
Hana Shiro
c7d4710f76
Refactor airline#extentions#tabline#ctrlspace#*
2018-06-02 23:41:15 +08:00
Hana Shiro
6e1e6686e7
Fix problems caused by #1524
2018-06-02 21:22:00 +08:00
Hana Shiro
a6e07b6a55
Remove unused catch block
2018-06-02 14:04:25 +08:00
Hana Shiro
4db6d11962
Fix indentation
2018-06-02 13:59:08 +08:00
Hana Shiro
ac799f6021
Rename parameters for better readability
2018-06-02 13:49:32 +08:00
Hana Shiro
92bf1b0b39
Use ternary-operator
2018-06-02 13:02:49 +08:00
Christian Brabandt
a76f523be5
bufferline: always add a space for the very first item
...
closes #1631
2018-04-15 10:16:28 +02:00
mg979
f7c818a0ff
add xtabline extension
2018-04-14 14:03:21 +02:00
Christian Brabandt
47bdae9067
Merge pull request #1702 from mrmr1993/fix-buffer-counts
...
Fix buffer numbering to start from 1 with buffer_idx_mode
2018-04-03 03:16:38 +02:00
Gianni Chiappetta
023fe122c5
Support typescript in jsformatter
2018-04-02 11:29:18 -04:00
mrmr1993
fbf96559c9
Fix buffer numbering to start from 1 with buffer_idx_mode
...
275ec4fe63
broke this so that numbering
started from 0 instead of 1 with
g:airline#extensions#tabline#buffer_idx_mode = 1
Specifically, I overlooked that |index| actually tracked the index of
the current buffer in the buffer list *starting from 1*, whereas I
assumed it tracked the true index (starting from 0).
2018-04-02 01:04:43 +01:00
Christian Brabandt
f0b969549a
Merge pull request #1693 from mrmr1993/current-tabs-visible-experiments
...
Rework tabline for tabs and buffers
2018-04-01 14:01:17 +02:00
mrmr1993
47c36d2819
Don't let the current buffer be -1 when calculating the tabline
2018-04-01 01:17:18 +01:00
mrmr1993
aee733aa87
Don't show titles in the tabline if there aren't any
...
airline#extensions#tabline#buflist#list doesn't pick up some buffers
(most notably Netrw buffers), so there are sometimes no buffers to show
and the tabline code fails with an error. This avoids that situation.
It would be better to detect these and show titles for them, but for now
this restores the old behaviour.
2018-04-01 01:05:51 +01:00
mrmr1993
c75106f12d
Don't change remaining_space in tabline builder until necessary
2018-03-22 16:42:06 +00:00
mrmr1993
4b1913ad13
Use insert_section for overflow markers in tabline builder
2018-03-22 16:42:06 +00:00
mrmr1993
df2f380c9e
Add get_separator_change_with_end to tabline builder
2018-03-22 16:14:18 +00:00
mrmr1993
2528de7d81
Add comments to tabline/builder
2018-03-19 16:21:43 +00:00
mrmr1993
7396dc7a10
Create helper function tabline_evaluated_length
2018-03-19 15:05:50 +00:00
mrmr1993
51bb8dd7e0
Move strchars into util.vim
2018-03-19 15:03:51 +00:00
mrmr1993
5b7b9cf656
Rename remaining tab -> title in tabline/builder
2018-03-19 15:03:51 +00:00
mrmr1993
0b47adf087
Rename tab -> title in tabline/builder method names
2018-03-19 14:36:02 +00:00
mrmr1993
3914d5b475
Rename skipped_tabs_marker to overflow_marker
2018-03-19 14:36:02 +00:00