Ivan Tishchenko
5247de4a0b
Prevent scrolling of large folds while filesave updates TOC.
...
During TOC update, screen sometimes scrolls -- most often I've seen this
when I'm working inside large enough fold (does not fit in one screen).
Fix uses winsaveview()/winrestview() instead of getpos()/setpos().
Winview pair would also manage scroll position on screen, not just
cursor position in text.
2015-11-27 03:20:44 +03:00
Ivan Tishchenko
0d3f526a88
Preserve fold open/close status of the TOC on save.
...
Since TOC is completely recreated, Vim loses its fold open/close status.
If your TOC was open, after you save it gets closed.
Fix will save fold status, and restore it after TOC is updated.
2015-11-27 03:13:25 +03:00
Ivan Tishchenko
d265df42f5
Prevent cursor moving up/down when TOC changes.
...
getpos()/setpos() combination does not account for changes of lines
count. So if you do getpos, then remove lines _above_ it, then do
setpos -- it's going to be off.
The fix calculates the "diff", and adjusts saved position for that diff
(if any).
2015-11-27 03:05:39 +03:00
Ivan Tishchenko
7df0405c4e
Fix sorting order of tags.
...
Before the fix, tags file sorting was done alphabetically. That would
treat line numbers as strings, and so, for example, if the same tag was
placed on the same page on lines, say, 9 and 114, the order you would
get, 114 would go first, instead of 9.
Fix adds proper entries comparison to the sort function.
2015-11-27 01:50:41 +03:00
Hongbo Liu
399e9a4512
follow url silently in mac
2015-11-26 11:54:32 +08:00
EinfachToll
c799d61b19
Clean up the help file (part 3)
...
Notably, put my name in the list of contributors. Well, and some other
names, too.
2015-11-23 13:10:46 +01:00
EinfachToll
b794a3bd3b
Restrict the distance of tag to header to two lines
...
Suffices, I think.
Also, clean the code a bit and correct the help file.
Ref #85
2015-11-21 21:20:33 +01:00
EinfachToll
ad4a12612c
When doing VimwikiCheckLinks, check if index files exist
...
Also, clean the code a bit
2015-11-20 11:50:31 +01:00
EinfachToll
3901b7566b
Fix uneven indentation of list items with checkboxes in HTML
2015-11-13 14:40:55 +01:00
EinfachToll
0931685ba2
Merge branch 'tags' into dev
...
Ref #85
2015-11-12 11:56:03 +01:00
EinfachToll
52634a6753
add HTML processing for tags
...
Ref #85
2015-11-10 14:37:25 +01:00
EinfachToll
642a94ffae
:VimwikiGenerateTags now updates a potentially existing listing
...
instead of adding it to the end.
Ref #85
2015-11-09 15:45:56 +01:00
EinfachToll
2afff4c411
Detect the OS correctly
...
Fix #158
2015-09-14 15:11:14 +02:00
EinfachToll
7aa273fd7c
A file tag must be at the very top of the file
...
Ref #85
2015-06-10 22:08:40 +02:00
EinfachToll
b808dcfdc1
Simplify a function call
2015-06-10 22:00:07 +02:00
EinfachToll
d28b615286
two small things
...
Ref #85
2015-05-15 11:20:44 +02:00
EinfachToll
a2a28a2d91
Make <BS> work also when the user jumped to a tag
...
Ref #85
2015-05-15 11:04:53 +02:00
EinfachToll
3a333881d8
When jumping to anchor, tags have highest precedence
...
Otherwise, in the list generated by VimwikiGenerateTags, Vimwiki would
jump to the header of the concerning tag rather than to the tag
Ref #85
2015-05-15 11:03:14 +02:00
EinfachToll
8bbe0408f9
Set the 'tags' option correctly
...
Ref #85
2015-05-15 11:01:55 +02:00
EinfachToll
6c77fd9101
:VimwikiRebuildTags! only reads files newer than .tags file
...
Ref #85
2015-05-15 10:56:46 +02:00
EinfachToll
6846459255
Fix regression bug: correctly convert links like [[http:...]]
...
Ref #123
2015-05-12 15:54:53 +02:00
Ivan Tishchenko
b53dd48429
Merge remote-tracking branch 'upstream/dev' into upstream/tags
...
Conflicts:
doc/vimwiki.txt
2015-05-06 17:27:25 +04:00
EinfachToll
baf3be038a
Fix wrong highlight of directories when maxhi is set
2015-04-30 13:52:33 +02:00
EinfachToll
77607f635a
slightly change the semantics of file: and local: scheme
2015-04-29 14:59:10 +02:00
Ivan Tishchenko
fd66db5551
Merge remote-tracking branch 'upstream/dev' into upstream/tags
2015-04-15 22:44:58 +03:00
EinfachToll
99494655c2
Support for absolute links when converting to HTML
...
Also, Fix #124
2015-04-09 14:48:26 +02:00
EinfachToll
62da755350
Fix for #122 , don't claim ownership over directories
2015-04-09 14:29:50 +02:00
EinfachToll
6607a3f641
Force wiki files to have filetype=vimwiki
...
Fix #122
2015-03-31 14:31:58 +02:00
Ivan Tishchenko
c543f8cfb1
Fixed issue with tags in subfolders not being saved in tags file properly (subdir name lost)
2015-03-25 21:44:44 +03:00
Ivan Tishchenko
28114d8c85
Merge remote-tracking branch 'upstream/dev' into 'upstream/tags'
...
Conflicts:
autoload/vimwiki/base.vim
2015-03-25 21:33:19 +03:00
EinfachToll
4ab0bdf3da
Don't trigger QuickFixCmdPost autocmd unnecessarily
...
Fix #121
2015-03-23 13:25:39 +01:00
EinfachToll
f823589076
make VimwikiCheckLinks also find nonexisting directories
...
Fix #120
2015-03-19 13:22:28 +01:00
EinfachToll
d20e03d660
Make absolute wiki links work with wikiN: scheme
...
Ref #105
2015-03-19 09:05:19 +01:00
EinfachToll
4511bf09e6
Don't highlight absolute links when 'maxhi' is on
...
Ref #105
2015-03-17 10:33:43 +01:00
EinfachToll
6922836a0c
Wiki links starting with / are always relative to the wiki root
...
Also, links with the file: scheme are absolute iff they start with / or
drive letter
Ref #105
2015-03-13 16:31:15 +01:00
EinfachToll
55adfca6a1
Rename a function, fixes previous commit
2015-02-24 09:39:03 +01:00
EinfachToll
8d7d568214
Clean up all file headers
...
- remove author names. There's git blame for this job
- change home from code.google to github
- add short descriptions
2015-02-23 12:10:42 +01:00
EinfachToll
7e87e92954
Move tags-related functions to extra file
...
also rename some functions from vimwiki#tags#bla() to s:bla()
2015-02-23 11:29:02 +01:00
Ivan Tishchenko
7bc2fcb3a7
Merge remote-tracking branch 'vimwiki/dev' into 'vimwiki/tags'
...
Conflicts:
doc/vimwiki.txt
ftplugin/vimwiki.vim
2015-02-12 22:20:16 +03:00
EinfachToll
41bce9ae42
Remove apparently unused function
2015-02-09 21:06:04 +01:00
EinfachToll
e4de62b7d5
turn all =~ into =~# or =~?; !~ analogically
2015-02-09 20:58:05 +01:00
EinfachToll
6716ba709f
turn all != into !=# or !=? when comparing strings
2015-02-09 20:24:18 +01:00
EinfachToll
9ada4d2041
turn all == into ==# or ==? when comparing strings
...
or vimwiki#path#is_equal, if the strings are file names
2015-02-09 20:05:25 +01:00
EinfachToll
b240b52a3f
Small fix for #112
...
Ref #111
2015-02-09 09:20:30 +01:00
EinfachToll
bf1eb62c32
Merge pull request #112 from t7ko/completion-fix-issue111
...
Use case sensitive/insensitive path comparison depending on the OS
2015-02-09 09:18:21 +01:00
EinfachToll
827b3a8974
Unify yes/no question
2015-02-07 22:12:32 +01:00
Ivan Tishchenko
68b82a15c6
Adjust case sensitivity of path comparison depending on the OS
2015-02-07 01:50:04 +03:00
Ivan
13bdb43a54
Merge pull request #113 from t7ko/auto-cd
...
Option to enable auto-change-dir when opening a wiki index page with <Leader>ww
2015-02-04 23:58:04 +03:00
EinfachToll
e34e160a34
Merge pull request #104 from t7ko/autoload-fix
...
Don't source base.vim at Vim startup
2015-02-04 14:36:23 +01:00
EinfachToll
3d3586417d
Remove an option that is written but never read
2015-02-03 13:53:56 +01:00
Ivan Tishchenko
10293f60d7
Use case insensitive path comparison for vimwiki#path#relpath()
2015-02-03 13:34:07 +04:00
EinfachToll
de11957fca
Use script local variable instead of buffer local
2015-02-02 10:35:32 +01:00
Ivan Tishchenko
d2ff96717e
Encapsulate tag path into a function; expand paths in it to make them absolute
2015-01-29 13:48:15 +04:00
Ivan Tishchenko
0511b51a5f
Implement auto-chdir option
2015-01-24 10:49:20 +03:00
Ivan Tishchenko
17cfd6e613
Modify patterns and code -- tag colons must be either at line boundary, or surrounded with white spaces
2015-01-23 23:13:27 +03:00
Ivan Tishchenko
f5e1cbe721
Move get-known-sytaxes back into base.vim
2015-01-23 22:41:36 +03:00
EinfachToll
43cad87426
Merge pull request #106 from t7ko/get_anchors-bugfix
...
Bold anchors were duplicated in get_anchors() results
2015-01-12 10:06:09 +01:00
EinfachToll
8f24644967
Remove unused function parameter
2015-01-12 09:34:59 +01:00
Ivan Tishchenko
b912e4e3c7
Update :VimikiGenerateTags -- use tags as anchors in links
2015-01-10 17:10:18 +03:00
Ivan Tishchenko
d72ef4dd70
Treat tags as anchors (wikilink completion, jumping to)
2015-01-10 16:39:11 +03:00
Ivan Tishchenko
28af35bcfe
Fix collecting anchors -- bold anchors were added to the list twice
2015-01-10 16:12:40 +03:00
Ivan Tishchenko
b99a3dc988
Convert file format to CTAGS. Update docs
2015-01-10 01:44:25 +03:00
Ivan Tishchenko
8a0433dec5
Fix error 'metadata file not found' when tag functions are called first time
2015-01-10 00:51:37 +03:00
Ivan Tishchenko
66626ad415
Move two helper functions to plugin file out of autoload. Plugin would have called them at startup anyway, defeating the whole purpose of autoload file.
2015-01-10 00:23:21 +03:00
Ivan Tishchenko
e44b188a49
:VimwikiGenerateTags
2015-01-10 00:05:58 +03:00
Ivan Tishchenko
a62bebceb2
Implement :VimwikiSearchTags to look up tag instances in a wiki
2015-01-10 00:05:11 +03:00
Ivan Tishchenko
df91772d7e
Implement :VimwikiRebuildTags to rebuild metadata for all pages in current wiki
2015-01-10 00:01:18 +03:00
Ivan Tishchenko
a01290160c
Support for omni completion of tags
2015-01-10 00:01:12 +03:00
Ivan Tishchenko
c7436a44cf
Reading metadata file; filtering by page name
2015-01-10 00:01:09 +03:00
Ivan Tishchenko
6cafc97c9c
Implement saving metadata to file
2015-01-10 00:01:05 +03:00
Ivan Tishchenko
2d0616343d
Implemented tags scan function (go over range of lines and compose list of tag entries and their metadata
2015-01-10 00:00:57 +03:00
Ivan Tishchenko
19cc1b873a
Added placeholders for tags on-page-save analysis
2015-01-10 00:00:53 +03:00
mMontu
edb72680a1
Use backward compatible version of shiftwidth()
2015-01-08 14:14:16 -02:00
mMontu
b89c22fe03
Use shiftwidth() instead of &shiftwidth
...
Using &shiftwidth makes VimwikiListChangeLvl misbehave when this option is set
to 0, which is a default configuration of [DetectIndent](https://github.com/roryokane/detectindent ).
2015-01-08 11:20:34 -02:00
EinfachToll
2804a4495d
Don't process placeholders inside preformatted text
...
Fixes #93
2014-12-16 15:52:53 +01:00
EinfachToll
37ef87b930
Suppress an annoying error message when it's not the right time
2014-12-14 14:49:06 +01:00
EinfachToll
f419b04346
:VimwikiBacklinks now considers subdirs and other wikis
2014-12-07 11:59:56 +01:00
EinfachToll
53ecfdcc68
Fix and clean resolution of links
2014-12-07 11:58:08 +01:00
EinfachToll
e5c5a1420d
:VimwikiGenerateLinks also generates links for subdirectories
2014-12-04 21:27:02 +01:00
EinfachToll
931b40ade1
New command :VimwikiCheckLinks
...
while we are at it, refactor the code to search through files
2014-12-04 21:26:19 +01:00
EinfachToll
eb02e0be9a
Move some file system related functions to path.vim
2014-12-04 21:12:04 +01:00
EinfachToll
a091bd5a76
Remove some pointless comments
2014-12-04 21:03:49 +01:00
EinfachToll
c7366625a3
Remove the grammar based HTML converter -- too slow
2014-12-04 21:00:25 +01:00
EinfachToll
19465760b4
Fix the menu entries which are sometimes not shown correctly
2014-11-26 14:35:38 +01:00
EinfachToll
a3e06e4e8d
Disable updating of TOC while in diff mode
2014-11-12 11:13:14 +01:00
EinfachToll
9fa06803d6
Merge pull request #83 from t7ko/autocompletion
...
Autocompletion for VimwikiGoto command.
2014-11-12 09:11:00 +01:00
Ivan Tishchenko
f47f3c4e26
Removed unused functions; added a few more comments
2014-11-11 23:12:03 +03:00
EinfachToll
d8853c5a34
Fix and simplify the collection of anchors
2014-11-11 13:43:44 +01:00
Ivan Tishchenko
6b9edefecc
Fixed misprint in comments; corrected completion to escape filenames properly; add documentation.
2014-11-10 23:04:06 +03:00
EinfachToll
a579e258a1
Merge pull request #77 from lervag/issue66
...
Improved normalize links in diary (fixes #66 )
2014-11-10 09:14:23 +01:00
Ivan Tishchenko
f7df798b25
Support autocompletion of link argument for VimwikiGoto command
2014-11-07 00:02:37 +03:00
Ivan Tishchenko
395cfec299
Extract links list generation to an individual function
2014-11-06 23:52:26 +03:00
Karl Yngve Lervåg
bb815bcdd8
Replaced all ¦¦
by |
2014-11-06 20:01:16 +01:00
EinfachToll
39b6239820
Vim gets stuck when converting a read-only file
...
because it tries to write it beforehand.
Fix #81
2014-10-23 12:18:28 +02:00
EinfachToll
fb5ea2886b
Merge remote-tracking branch 'patrickdavey/check_for_binary' into dev
2014-10-16 11:42:38 +02:00
Patrick Davey
c1a5bb51ad
Checks if custom_wiki2html is executable on PATH
2014-10-14 15:39:46 +13:00
Karl Yngve Lervåg
f02fbffaf1
Fixed more issues.
2014-09-17 23:26:16 +02:00
Karl Yngve Lervåg
ec4066ad83
Solved some minor issues
2014-09-17 23:10:49 +02:00
EinfachToll
24d690f32d
Use relative paths in omnicomplete
...
Fix #70
Ref #72
2014-09-16 10:18:40 +02:00
Karl Yngve Lervåg
e8ad164fb0
Improved normalize links in diary ( fixes #66 )
2014-09-15 21:44:32 +02:00