Commit Graph

185 Commits

Author SHA1 Message Date
zhang_ji
b0cc6ff0de fix #64: markdown style link support 2016-01-18 16:51:08 +08:00
Ivan
f9045a40e0 Merge pull request #169 from t7ko/bugfix/tags-sorted-in-wrong-order
Fix sorting order of tags.
2015-12-08 16:31:01 +03:00
EinfachToll
9be96884ba Remove g:VimwikiLog and the timing stuff
For profiling, there is Vim's :profile command
2015-12-07 12:29:25 +01:00
EinfachToll
2a70e1517e Remove g:vimwiki_debug, which probably nobody used 2015-12-07 12:27:32 +01:00
EinfachToll
c565b38bb6 Remove some unreachable code 2015-12-07 12:25:17 +01:00
Ivan
37aae9c3ce Merge pull request #170 from t7ko/bugfix/cursor-moves-on-toc-update
Bugfix: cursor moves on TOC update, TOC fold gets closed.
2015-12-04 14:36:26 +03:00
Ivan Tishchenko
c2b0fd843b Fix bug: saving a page would err out trying to open fold if folds are disabled or are configured differently. 2015-12-04 15:33:03 +04:00
Ivan Tishchenko
77fca9080c Fix code review notes on 'norm zo':
- Only issue 'zo' if there is any fold at all.
        - Correct possible bug, code was using 'start_lnum' var, but it
          was changed/incremented which could lead to wrong results.
        - Use bang with norm, to prevent user re-mapping interfere with
          standard ones.
2015-12-01 22:41:50 +03:00
EinfachToll
3eb20a6c98 Fix regression bug: Normalize paths if settings changed after startup
Fix #171
2015-11-30 13:33:22 +01:00
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