Commit Graph

1307 Commits

Author SHA1 Message Date
Karl Yngve Lervåg
9d614b6a1b Merge Pull Request #674 2017-01-28 23:33:56 +01:00
slaiba
f535f07a6d Modified complete.vim to improve parsing of equation numbers and support subfile command 2017-01-26 20:05:44 +01:00
Karl Yngve Lervåg
2495c848ed Fixed #669: Better bookkeeping and exit handling
* Don't remove blobs on exit
* Properly reuse existing local blobs
2017-01-24 21:36:54 +01:00
Karl Yngve Lervåg
7c1b6c02e7 Merge pull request #672 from zhouyan/patch-1
Use `strchars` for calculating line length
2017-01-24 20:46:29 +01:00
Yan Zhou
8e5ccd4e1c Use strchars for calculating line length
The original, which use `len` to calculate the line length, cause multibyte characters, (such as UTF-8 characters outside the ASCII range) to count as 2 characters or more. And thus visually, the lines look shorter than expected after formatting.

Compare, (`tw = 79`)

New formatting
```
It was in July, 1805, and the speaker was the well-known Anna Pávlovna Schérer,
maid of honor and favorite of the Empress Márya Fëdorovna. With these words she
greeted Prince Vasíli Kurágin, a man of high rank and importance, who was the
first to arrive at her reception. Anna Pávlovna had had a cough for some days.
She was, as she said, suffering from \emph{la grippe;} \emph{grippe} being then
a new word in St.~Petersburg, used only by the elite.
```

Old formatting
```
It was in July, 1805, and the speaker was the well-known Anna Pávlovna
Schérer, maid of honor and favorite of the Empress Márya Fëdorovna. With these
words she greeted Prince Vasíli Kurágin, a man of high rank and importance, who
was the first to arrive at her reception. Anna Pávlovna had had a cough for
some days. She was, as she said, suffering from \emph{la grippe;} \emph{grippe}
being then a new word in St.~Petersburg, used only by the elite.
```
2017-01-24 21:02:54 +08:00
Karl Yngve Lervåg
85cf4215ea Fixed #668: Improve graphics completion 2017-01-21 21:40:48 +01:00
Karl Yngve Lervåg
05697bddb0 Added test files for #664 2017-01-19 22:09:48 +01:00
Karl Yngve Lervåg
96ce49de01 Fixed #664: Regex matched too much 2017-01-19 22:04:58 +01:00
Karl Yngve Lervåg
a9e8f2e502 Must press ENTER (cf. #661) 2017-01-18 21:33:27 +01:00
Karl Yngve Lervåg
10372c7d3a Merge branch 'issue-640/feature/improve-img-completion' 2017-01-18 19:16:17 +01:00
Karl Yngve Lervåg
f86a72ce90 Fixed #640: Parse \graphicspath for img completion
Note: This deprecates the option g:vimtex_complete_img_use_tail!
2017-01-18 19:12:40 +01:00
Karl Yngve Lervåg
c98b178377 Added functions to calculate relative path 2017-01-18 19:12:40 +01:00
Karl Yngve Lervåg
184fca889a Added test files for #640 2017-01-18 19:12:09 +01:00
Karl Yngve Lervåg
b344cfa968 Fixed #660: Error in luacode nested syntax 2017-01-14 22:14:26 +01:00
Karl Yngve Lervåg
ce316881ef Merge pull request #658 from Libbum/docfix
Corrected Okular options in documentation
2017-01-10 20:36:40 +01:00
Tim DuBois
1e565580d5 Fix Okular options 2017-01-10 19:55:32 +01:00
Karl Yngve Lervåg
baa6467bc6 Fixed #649: Silly regex bug 2017-01-04 12:37:36 +01:00
Karl Yngve Lervåg
4c76e8f740 Refactored and improved recursive file finder 2017-01-03 23:25:42 +01:00
Karl Yngve Lervåg
404061ff99 Fixed #613: Add option for indent on &s 2016-12-30 22:27:57 +01:00
Karl Yngve Lervåg
4dda0dc03a Minor improvements to docs 2016-12-30 22:26:48 +01:00
Karl Yngve Lervåg
b98d4db8d0 Added test files for #627 2016-12-29 19:38:04 +01:00
Karl Yngve Lervåg
9c9091ca7b Fixed #614: Better citation completion
- Support \jobname in bibliography file name
- Support \nobibliography
- Support \bibentry for completion
2016-12-29 19:27:50 +01:00
Karl Yngve Lervåg
6c159818d1 Cf. #614: Support for bibentry as cite syntax 2016-12-29 19:25:11 +01:00
Karl Yngve Lervåg
4526043aaa Fix #646: Allow matchparen motions in comments 2016-12-28 22:53:47 +01:00
Karl Yngve Lervåg
338c4c675c Use script local variables 2016-12-28 13:17:33 +01:00
Karl Yngve Lervåg
0382995382 Fixed #648: Improve natbib syntax support 2016-12-28 12:58:01 +01:00
Karl Yngve Lervåg
6b5c633fc8 Fixed silly error 2016-12-20 21:25:25 +01:00
Karl Yngve Lervåg
5e48e275cc Fix #642: Don't raise error in syntax file 2016-12-20 21:13:29 +01:00
Karl Yngve Lervåg
eb1423d25c Fixed #644: Use more sensible tikz context 2016-12-17 12:13:21 +01:00
Karl Yngve Lervåg
2b39554f68 Fixed #636: Support for \subref completion 2016-12-15 19:29:18 +01:00
Karl Yngve Lervåg
cade17d13e Fixed #604: Remove indent condition for multi command folding 2016-12-14 21:09:38 +01:00
Karl Yngve Lervåg
aa60cda284 Cf. #604: Added vader test 2016-12-14 21:07:29 +01:00
Karl Yngve Lervåg
c79e7afb3b Fix #637: Jump back to the right window 2016-12-14 20:17:18 +01:00
Karl Yngve Lervåg
7d740682d6 Fix #634: Add option to ignore indents on envs 2016-12-05 22:23:51 +01:00
Karl Yngve Lervåg
6a08af94a4 Revert 1cd633d6ba (cf. #634)
This did not solve the issue like I thought it would.
2016-12-05 22:09:34 +01:00
Karl Yngve Lervåg
7046490ce2 Fix #632: Refresh viewer paths when changing main 2016-12-04 13:03:17 +01:00
Karl Yngve Lervåg
1cd633d6ba Fix #634: Added option for indented verbatim envs 2016-12-03 12:32:58 +01:00
Karl Yngve Lervåg
305eb16133 Fixed #633 2016-12-02 12:31:46 +01:00
Karl Yngve Lervåg
53b4a454ec Fix Vader subfiles test 2016-12-01 10:14:22 +01:00
Karl Yngve Lervåg
e2f8b0dd3b Fixed #629: Subfiles class is not a main file 2016-12-01 10:01:35 +01:00
Karl Yngve Lervåg
d382cb4d4f Added Vader test for subfile main detection (#629) 2016-12-01 10:01:15 +01:00
Karl Yngve Lervåg
491057bb9f Merge pull request #628 from DelusionalLogic/master
Infinite recursive main discovery
2016-11-28 22:40:11 +01:00
Jesper Jensen
fc569e994b Recursive main discovery fix
Main discovery always ended up starting on the base file when recursing.
To fix this we use the file stored in l:file instead of % (current file)
2016-11-28 22:39:34 +01:00
Karl Yngve Lervåg
33955aa83a Fix #624: Bad regex 2016-11-25 20:36:59 +01:00
Karl Yngve Lervåg
368820d884 Initialize script when loaded 2016-11-25 20:36:46 +01:00
Karl Yngve Lervåg
0ccb84fb27 Merge pull request #625 from DelusionalLogic/master
Better handling of relative subimports
2016-11-25 08:13:55 +01:00
Jesper Jensen
75a95c6801
Style improvements 2016-11-25 00:01:54 +01:00
Jesper Jensen
8c2d25ebb9
Better handling of relative subimports
The old way of handling sub imports didn't actually allow them to be
relative, which is half the power of the import package.

The new code correctly identifies all my subimported texfiles in
a pretty complicated latex project.
2016-11-24 17:40:54 +01:00
Karl Yngve Lervåg
e5eeeb1f39 Fix bug: reenable Fakefolds 2016-11-17 11:57:53 +01:00
Karl Yngve Lervåg
489331f1c0 Fix bug in vimtex fold (#623) 2016-11-16 23:18:42 +01:00