Commit Graph

485 Commits

Author SHA1 Message Date
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
EinfachToll
8231433bad Merge pull request #168 from hiberabyss/macurl
follow url silently in mac
2015-11-26 09:32:51 +01:00
Hongbo Liu
399e9a4512 follow url silently in mac 2015-11-26 11:54:32 +08:00
EinfachToll
2f95a6a651 Clean up the help file (part 4) 2015-11-25 10:43:26 +01: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
da899311c7 Clean up the help file (part 2)
Notably, complete the changelog.
2015-11-22 20:42:21 +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
debd308eea Clean up the help file (part 1)
Notably, integrate the parts about schemes, transclusion and thumbnails
into the part about links. I hope that makes things more clear.
2015-11-20 13:51:19 +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
82c435c1e4 Some cosmetic changes to the readme 2015-11-17 15:58:01 +01:00
EinfachToll
2c0e6ebfd9 Add two screenshots 2015-11-17 15:52:02 +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
e8164bb58a Add description of :VimwikiRebuildTags! to the help file
Ref #85
2015-11-11 13:18:09 +01:00
EinfachToll
a043e7d973 Don't allow ' in tags
Ref #85
2015-11-11 12:56:28 +01:00
EinfachToll
977f234f6d Allow tags in markdown and mediawiki syntax as well
Ref #85
2015-11-11 12:01:01 +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
Tomsod M
64f71bc785
Add :VimwikiMakeYesterdayDiaryNote command
Opens diary for yesterday.
For when you stay up past midnight.
2015-10-29 01:00:00 +03:00
EinfachToll
2afff4c411 Detect the OS correctly
Fix #158
2015-09-14 15:11:14 +02:00
EinfachToll
854219f42e Merge pull request #144 from t7ko/bugfix/fold-shortening-bug-on-utf8
Fix bug with folds shortening on multibyte characters.
2015-07-08 11:54:25 +02:00
Ivan Tishchenko
d7becafbdd Fix bug with folds shortening on multibyte characters.
If section title contains multibyte chars, the fold shortening function
often fails, because it works with text as array of bytes, not
characters (see strlen() doc for example).

This commit fixes this issue.
2015-07-07 22:54:57 +03:00
EinfachToll
3142e08095 Fix some links in the doc from the latest commit
Ref #142
2015-07-03 14:21:13 +02:00
EinfachToll
5e382fe079 Merge pull request #142 from JohnKaul/dev
.gitignore and vimwiki.txt changes
2015-07-03 14:14:38 +02:00
John Kaul
d502d653f7 vimwiki.txt:
1. I corrected the webpage links to the github site instead of the old
   code.google.com.
2. Added note the changelog section
2015-06-26 13:47:28 -05:00
John Kaul
477d54ca51 .gitignore:
1. Added sections and comments to gitignore file for better readability.
2. Added more entries to the Vim list (there was already two entries
   for Vim.)
3. Added entries for the following sections/areas: OS &
   Package formats.

jlk
2015-06-26 13:28:40 -05: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
f7725fb506 Clarify use of links to directories
Fix #138
2015-05-13 11:10:25 +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
b5da4ffc8a auto complete absolute wiki links 2015-04-30 13:53:25 +02:00
EinfachToll
baf3be038a Fix wrong highlight of directories when maxhi is set 2015-04-30 13:52:33 +02:00
EinfachToll
41b40374f9 Finish doc for absolute/relative link stuff 2015-04-30 13:50:58 +02:00
EinfachToll
77607f635a slightly change the semantics of file: and local: scheme 2015-04-29 14:59:10 +02:00
Ivan Tishchenko
4617576c20 Fix bug: tags would not work in subfolders ('tags file not found') 2015-04-26 22:13:03 +03: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