Commit Graph

669 Commits

Author SHA1 Message Date
Karl Yngve Lervåg
22eabfe48e Use generic interface for generic viewers
This update removes the viewers

  qpdfview
  sumatrapdf
  skim
  okular

from the possible g:vimtex_view_method values.  Instead, these viewers
may now be defined with the `general` view method using the options

  g:vimtex_view_general_viewer
  g:vimtex_view_general_options
  g:vimtex_view_general_options_latexmk

Resolves: #180
2015-06-30 21:52:42 +02:00
Karl Yngve Lervåg
b29b91affc Improve label completion (fixes #182) 2015-06-26 22:12:47 +02:00
Karl Yngve Lervåg
7a91dfde9f Change name to snippets
Updated creation of predefined snippets

Allow to create custom snippets through g:vimtex_snippets_custom

See: #172
2015-06-22 21:42:21 +02:00
Karl Yngve Lervåg
4069edc4b0 Merged with master 2015-06-22 20:49:19 +02:00
Karl Yngve Lervåg
078ceb76d6 Create mappings after modules are initialized
Remove old mappings.vim module, instead use a single function
in autoload/vimtex.vim to initialize the main mappings.

Also fix minor bug for reverse search.

Fix: #190
2015-06-22 20:45:10 +02:00
Karl Yngve Lervåg
d530a6beb4 Mappings should now work 2015-06-21 22:29:00 +02:00
Karl Yngve Lervåg
b9c438d6ee Merge branch 'master' into math-mappings 2015-06-21 21:04:39 +02:00
Karl Yngve Lervåg
e1fd82296a Fix quickfix window bug (fixes #184)
Callback could sometimes open quickfix window when the current buffer was not
a LaTeX (.tex) buffer.
2015-06-21 20:59:31 +02:00
Karl Yngve Lervåg
100ce1aa13 Use new option for callback executable
Added new option: g:vimtex_latexmk_progname.  The default value is v:progpath
if available, else v:progname.  In some cases, e.g. for MacVim, the value
should be set manually.  I do not currently know the correct value to set.

Resolves: #186
2015-06-21 20:32:50 +02:00
Karl Yngve Lervåg
82ecbeef71 First attempt at built-in Skim support
See: #185
2015-06-21 00:07:37 +02:00
Karl Yngve Lervåg
d4c26abccf Improved filename change handler
* Added informative message
* Kill old latexmk process if active

See: #187
2015-06-20 23:45:05 +02:00
Karl Yngve Lervåg
2e14a2b4fe Added new highlight group VimtexInfo 2015-06-20 23:44:08 +02:00
Karl Yngve Lervåg
e6f0a7289d Support file name changes (fixes #187) 2015-06-20 23:16:53 +02:00
Karl Yngve Lervåg
d36be66c93 Updated augroup names 2015-06-20 23:15:58 +02:00
Karl Yngve Lervåg
b1b15c6877 Improved latexmk kill when deleting a buffer
We now store some script variables whenever a buffer is left.  These variabes
are then used when a buffer is deleted to test if a latexmk process must be
killed.

The new implementation seems more robust and is no longer dependent on the
'hidden' attribute in vim.

Fixes: #189
2015-06-20 19:44:48 +02:00
Karl Yngve Lervåg
b818cca297 Ensure pids are stored as numbers 2015-06-20 19:23:32 +02:00
Karl Yngve Lervåg
a7ca172143 Added doc about requirement for |hidden|
See: #189
2015-06-20 18:40:30 +02:00
Karl Yngve Lervåg
670c0cd3d1 Improve label completion (fixes #182) 2015-06-18 23:19:26 +02:00
Karl Yngve Lervåg
12fdc029e0 Add search for existing process (fixes #188) 2015-06-18 18:06:14 +02:00
Karl Yngve Lervåg
5a4664ff41 Add support for minted package
Supports c, csharp and python out of the box.  More languages may be added to
the list `g:vimtex_syntax_minted` (see help for more info).

Resolves: #167
2015-06-17 21:05:40 +02:00
Karl Yngve Lervåg
0698403dfc Improved syntax highlighting for listings and dot 2015-06-17 20:51:18 +02:00
Karl Yngve Lervåg
692df6c245 Fixed init problem (fixes #183) 2015-06-10 08:05:49 +02:00
Karl Yngve Lervåg
b33268b204 Move setting of default options 2015-06-09 22:30:39 +02:00
Karl Yngve Lervåg
b40cf63c61 Implement hooks for viewers
This implements capability for view and callback hooks for all viewers (though
not all viewers have callback functionalities implemented).

For Zathura and MuPDF this change also implements a default focus behaviour
which may now be changed through the use of these hooks.
2015-06-09 22:21:32 +02:00
Karl Yngve Lervåg
602ba319ff Raise viewer after \lv (#180) 2015-06-08 19:03:10 +02:00
Karl Yngve Lervåg
7cc2fd2877 Fixed problem with \lv mapping (#180) 2015-06-08 09:14:27 +02:00
Karl Yngve Lervåg
7f5493c62c Further development (NOT WORKING!)
* Added a lot more mappings
* Began to find an ok structure
* Current commit does NOT work, as it is work in progress
2015-06-07 21:42:51 +02:00
Karl Yngve Lervåg
374d5c984f Fixed some minor itches (#180) 2015-06-07 19:24:19 +02:00
Karl Yngve Lervåg
a6ec6a7b85 Merge branch 'master' into math-mappings 2015-06-06 23:51:36 +02:00
Karl Yngve Lervåg
6d7b0abd16 A lot of convenient restructuring 2015-06-06 23:49:28 +02:00
Karl Yngve Lervåg
ec1c318eae Merge branch 'master' into math-mappings 2015-06-06 20:23:34 +02:00
Karl Yngve Lervåg
a76cba6330 Updated docs to reflect code structure change 2015-06-06 20:21:48 +02:00
Karl Yngve Lervåg
5444067f4a Moved default value to change.vim and added doc 2015-06-06 20:21:29 +02:00
Karl Yngve Lervåg
2b0175df60 Improved blob namings
* Now b:vimtex points to the local LaTeX project blob.
* The global list of blobs is renamed to g:vimtex_data
2015-06-06 20:08:13 +02:00
Karl Yngve Lervåg
bb03883581 Added option for change env completion (#174) 2015-06-06 19:56:35 +02:00
Karl Yngve Lervåg
a118fb5163 Improve vimL in change.vim 2015-06-06 19:47:05 +02:00
Karl Yngve Lervåg
72a5dd6a3b Removed deprecation warning 2015-06-06 19:33:11 +02:00
Karl Yngve Lervåg
b252dc0b5f Added VimtexInfo! 2015-06-06 00:03:51 +02:00
Karl Yngve Lervåg
aab42ad2ae Only initilize mupdf viewer once 2015-06-05 23:57:41 +02:00
Karl Yngve Lervåg
421e53b54e Removed debug print statement 2015-06-05 23:56:37 +02:00
Karl Yngve Lervåg
bba575b3b6 Simplified local data var name 2015-06-05 23:55:34 +02:00
Karl Yngve Lervåg
b891bd72a3 Only initialize viewer once (fixes #177) 2015-06-05 23:02:17 +02:00
Karl Yngve Lervåg
d65f92d7b9 Don't reset PID if already set (fixes #176) 2015-06-05 22:37:11 +02:00
Karl Yngve Lervåg
e05ba6b9ae Fixed completion of cse (fixes #174) 2015-06-05 22:14:11 +02:00
Karl Yngve Lervåg
23338b31a3 Fixed stupid bug 2015-06-01 08:04:47 +02:00
Karl Yngve Lervåg
6fa8a0dbb3 Minor update 2015-05-31 22:57:50 +02:00
Karl Yngve Lervåg
68d61d2f98 Added latexmk callback for general viewer (#175) 2015-05-31 22:56:27 +02:00
Karl Yngve Lervåg
91942ceb25 Improved the math mapping structure 2015-05-30 10:41:19 +02:00
Karl Yngve Lervåg
01e832d019 Added first mappings 2015-05-29 13:39:18 +02:00
Karl Yngve Lervåg
0ca317e459 Added comment on xdotool for zathura (cf. #171) 2015-05-25 18:05:14 +02:00