Commit Graph

1688 Commits

Author SHA1 Message Date
Christian Brabandt 6ba65b2c8c
tabline: remove s:show_tab_type variable 2018-01-04 14:30:16 +01:00
Christian Brabandt 708c76e22c
tabline: do not cache s:buffer_idx_mode 2018-01-04 14:23:50 +01:00
Christian Brabandt d03c3fa7b9
tabline: remove l: variable prefix 2018-01-04 14:20:36 +01:00
Christian Brabandt 72e457d8c2
tabline: remove static caching of s:vars
rather let them be defined whenever they are needed. They were only used
inside a single function anyhow, so it does not make sense to cache
them. In addition, having the user later change the variable won't work
as expected.
2018-01-04 14:11:13 +01:00
Christian Brabandt 2e3cdeb808
tabline: try/catch mapping of the keys
fixes #1621
2018-01-04 14:11:11 +01:00
Christian Brabandt c386332570
Merge pull request #1619 from tracyone/doc
doc: update ctrlp.vim url
2017-12-28 11:20:23 +01:00
Christian Brabandt 125d3443e4
Merge pull request #1620 from Cimbali/master
Cache file names in fugitiveline extension
2017-12-28 11:20:05 +01:00
Cimbali 18da5aa699 Separate updating and displaying branch information
This will cause any calls that are not just head() to be delayed and
cached whenever possible.
2017-12-26 22:30:23 +01:00
Cimbali 1ee057362d Caching path simplified using fugitive 2017-12-26 22:30:23 +01:00
tracyone 450fa168ea doc: update ctrlp.vim url 2017-12-25 21:27:55 +08:00
Cimbali e0dd3d8125 Rename merge file names
Clearer names that reference the HEADs of git: FETCH_HEAD, ORIG_HEAD and
MERGE_HEAD, rather than the names that fugitive uses for them.
2017-12-23 15:05:59 +01:00
Christian Brabandt bc985301db
Merge pull request #1603 from Cimbali/master
Improve fugitive integration
2017-12-21 09:09:44 +01:00
Christian Brabandt 6c8d0f5e6a
Merge pull request #1605 from EdwardBetts/patch-2
Correct spelling mistake.
2017-11-27 09:27:58 +01:00
Christian Brabandt 77ab703a55
Merge pull request #1604 from EdwardBetts/patch-1
Correct spelling mistake.
2017-11-27 09:27:40 +01:00
Edward Betts 3b304f36ae
Correct spelling mistake. 2017-11-25 21:14:31 +00:00
Edward Betts 7afc60af25
Correct spelling mistake. 2017-11-25 21:12:44 +00:00
Cimbali e415c5301f Trusting fugitive instead of tracking paths manually
The initial reason in #237 is not valid anymore, as vim-gitgutter
functions as expected for editing files that are not part of a repo,
whether they are:
- in a different repo
- in a parent repo (cwd being a submodule)
- outside of the repo

Furthermore, removing this check allows to show relevant info for
specific fugitive file names that are fugitive://..../sha1//...
which are hard to parse manually, especially in complicated situations
such as submodules.
2017-11-22 23:55:22 +01:00
Cimbali 8c4bf37588 Configurability: parametrizable sha1 length 2017-11-22 23:01:54 +01:00
Cimbali 33663d7df2 Show buffer name relative to git folder 2017-11-22 23:00:58 +01:00
Cimbali 009f7932fb Show #branch#head() as "ref-or-sha1(current-branch)"
Only changes anything in the case of using fugitive to show a file that
is not from the current working directory.
2017-11-22 23:00:57 +01:00
Cimbali f0093ceaa6 Remove code redundant with fugitive#head()
It which requires a path, and just performed the same as
fugitive#head() does internally.
2017-11-22 19:25:26 +01:00
Christian Brabandt 3e13bab201
Merge pull request #1600 from PratikBhusal/patch-1
Add function to show line number
2017-11-20 13:58:21 +01:00
Christian Brabandt d719d0664a
Merge pull request #1602 from jreybert/dev/vimagit
vimagit: let vimagit itself returns the current mode
2017-11-20 13:57:42 +01:00
Jerome Reybert 640d6762f7 vimagit: let vimagit itself returns the current mode
If current vimagit version does not provide vimagit#get_current_mode(),
internal string version is kept.
2017-11-20 13:47:48 +01:00
Pratik Bhusal 58328b347c Added function to show line number
The function shows the line number of the first error/warning that appears in the current buffer. If there are 20 warnings and the first warning exists on line 33, then vim-airline would show "W:20(L33)".

One can change how the line number is represented using: `g:airline#extensions#ale#open_lnum_symbol` and `airline#extensions#ale#close_lnum_symbol`
2017-11-18 14:24:47 -06:00
Christian Brabandt 4a1f65841c
README: mention how to use pack feature for install
fixes #1594
2017-11-15 08:06:17 +01:00
Christian Brabandt 1f84ad886c
README: still some problems 2017-11-15 07:58:22 +01:00
Christian Brabandt c88dca5c96
README: still some problems with the table
(I hate markdown)
2017-11-15 07:54:50 +01:00
Christian Brabandt dd368b3e31
README: one more fix for the table 2017-11-15 07:51:48 +01:00
Christian Brabandt 20a6fe2b9f
README: Fix table 2017-11-14 23:44:52 +01:00
Christian Brabandt f3aae5f72b
README: show a screenshot and document what this plugin does
fixes #1589
2017-11-14 23:43:04 +01:00
Christian Brabandt 52ce640534
startup: remove workaround for skipping redraw
commit 7d082c03b2 added a workaround to skip
a few redraws on startup so that the intro message is not shown anymore.

However might cause problems, that some highlighting groups are not
correctly set. Also recent Vims (8.0.1290 and so on) do not seem to
suffer from the problem that an too early initializiation of airline
causes a redraw which skips the intro message.

Therefore, revert that commit.

Fixes #1585
2017-11-14 23:38:32 +01:00
Christian Brabandt 396cc92261
Merge pull request #1578 from ompugao/tabline_collapse_fname
collapse fname in tabline when using unique_tail formatter
2017-11-06 08:19:04 +01:00
Shohei Fujii b044b4b204 collapse fname in tabline when using unique_tail formatter 2017-10-30 20:00:05 +09:00
Christian Brabandt a1b7479b54 Merge pull request #1584 from Taikuh/wordcount_format
Add option to change wordcount display for the default formatter
2017-10-25 21:27:23 +02:00
Taikuh ccc4c9f430 Add option to change wordcount display for the default formatter 2017-10-26 01:02:10 +08:00
Christian Brabandt e72ec51e59 Merge pull request #1582 from 0x6a62/doc-typo
Fix typo
2017-10-23 08:57:57 +02:00
jb 78ca75af6e Fix typo 2017-10-21 13:29:17 -04:00
Christian Brabandt 6e2a9e38cd
tabline: force redraw on BufAdd autocommands
closes #1580
2017-10-19 11:37:24 +02:00
Christian Brabandt a5d9a4bcb2 Merge pull request #1577 from ompugao/skip_toggling_ctrlspace_if_not_installed
skip toggling ctrlspace tabline plugin when not installed
2017-10-16 10:57:20 +02:00
Shohei Fujii 7bf1d9b1fb skip toggling ctrlspace tabline plugin 2017-10-16 17:33:40 +09:00
Christian Brabandt 27acd851a7
cleanup term extension 2017-09-27 20:28:18 +02:00
Christian Brabandt 0ad4f97c1a
Add a terminal statusline function for vim 2017-09-27 20:28:16 +02:00
Christian Brabandt bd613e69b6 Merge pull request #1569 from yehuohan/master
Fix: Use the CS-symbol of ctrlspace which may be changed by user in ctrlspace-extension
2017-09-27 13:21:10 +02:00
yehuohan 4d645711e5 Fix: Use the CS-symbol of ctrlspace which may be change by user in ctrlspace-externsion 2017-09-27 16:17:50 +08:00
Christian Brabandt 031cb31056
branch: do not show errors for mq extensions
skip anything that matches abort

e.g. running hg qtop with Vims path outside of the repository returns
something like "abort: no repository found in ..."
in that case, do not show anything.
2017-09-22 21:39:17 +02:00
Christian Brabandt 9f186d899a
branch: mq patch not correctly displayed
also make the branch extension make use of the specific code to handle
the mq output
2017-09-22 21:37:28 +02:00
Christian Brabandt cfb107c75f Merge pull request #1564 from gidj/vcs-patch-fix
Use regex matching to prevent message from bubbling up
2017-09-18 19:54:38 +02:00
Gideon VanRiette a763c6b53f Catch trailing whitespace when matching output 2017-09-18 09:02:39 -05:00
Christian Brabandt 8a3e3e2794
mq: remove trailing \n from system()
fixes #1563
2017-09-14 11:43:53 +02:00