Steven Stallion
eb00d30d9b
Initial commit
2019-03-19 10:33:08 -05:00
Rane Brown
c8d09d7c9e
Merge pull request #629 from gpanders/dev
...
Allow customization of header level of TOC
2019-03-18 17:20:30 -06:00
Steven Stallion
ad8e1d30bf
Add g:vimwiki_create_link option to prevent link creation.
...
Adds a new global option named create_link, which allows the user to
control :VimwikiFollowLink behavior when attempting to follow a
non-existent link. The original behavior of creating a new link is
preserved. However, by setting this option to 0, new links will not be
created when pressing return over regular text. Closes #528 .
2019-03-18 14:37:12 -07:00
Henry Qin
8941508e35
Allow AddHeaderLevel and RemoveHeaderLevel to take counts
2019-03-17 10:43:42 -07:00
Greg Anders
bb40826def
Allow customization of header level of TOC
...
Instead of forcing the TOC to always be at header level 1, allow the
user to specify via the option g:vimwiki_toc_header_level what level
they want.
This defaults to 1, so if the user does nothing then the old behavior
will remain the same.
2019-03-14 08:34:52 -06:00
Nico
a7160310c9
Patch for issue #585 - implement suggested improvements
2019-02-01 17:43:05 +01:00
Nicolas Brailovsky
0f38192b03
Patch for issue #585 , fix anchor links for multiple extensions
2019-02-01 17:43:05 +01:00
EinfachToll
1cffbdbf3d
Fix: Don't double a ' character in header in TOC
...
When building the TOC, every ' in a header got doubled. According to git blame, I did this doubling explicitely, but I have no idea why I did this.
2019-01-25 16:45:11 +01:00
EinfachToll
65b0c97c6d
Revert "Update the links when renaming markdown wikis"
...
This reverts commit 599a0e9083
.
Sorry, we can't simply change the syntax of something as basic as a
link, even if the old syntax is wrong. We need to keep Vimwiki
reasonably backwards compatible.
2019-01-16 20:56:49 +01:00
Raphael Feng
599a0e9083
Update the links when renaming markdown wikis
...
Two reasons whey the links in markdown wikis are not updated:
1. The markdown link pattern is wrong, should be []() rather than [][];
2. The logic of getting wiki local var cannot get correct wiki index as:
a. the renamed file's buffer is removed and %:p would return empty
b. the function that gets the wiki local var depends on buffer's %:p
value to find the wiki it belongs to and it would always return -1
and result in the default option values instead the user's option
The fix is
1. fix the markdown link pattern regex;
2. keep the renamed file's buffer open during the period of updating the link
2019-01-03 13:00:19 +01:00
sreejith994
2366523001
Fixed updation of links when renaming wiki files in subdirectories
2018-12-21 11:08:14 +01:00
EinfachToll
645ae61dc3
Fix error when trying to make a link out of '-'
...
Fix #582
2018-12-14 21:03:46 +01:00
EinfachToll
349d551181
Diary: make + in visual mode work correctly
2018-11-25 17:55:43 +01:00
EinfachToll
2e523b308f
Check if there is a TOC header before trying to update it
2018-11-17 20:05:58 +01:00
EinfachToll
6f6023610c
Don't jump to the TOC on C-o etc.
...
Before, the cursor would jump to the TOC a lot when pressing <C-o> etc.,
because it is changed every time the buffer is saved.
Use :keepjumps to make it less intrusive. Sadly, the cursor still jumps
to the TOC when you press u and C-r, but it seems there is no way around
it.
2018-11-12 21:54:52 +01:00
EinfachToll
90722a4703
Make an error message more clear
2018-11-01 21:12:14 +01:00
Michael F. Schönitzer
a32a06f3b8
Follow up to 5f76208
2018-10-25 23:39:45 +02:00
Michael F. Schönitzer
a244246641
Merge branch 'dev' of github.com:vimwiki/vimwiki into dev
2018-10-25 23:27:15 +02:00
Michael F. Schönitzer
5f762082d2
Fix bug: change links when renaming pages
2018-10-25 23:26:35 +02:00
Benjamin Brandtner
7668985b43
Fixed system file handlers for windows
...
Fixes #560
Opening external files containing spaces should now work on cmd and powershell.
2018-10-22 21:25:56 +02:00
EinfachToll
bd88ea968b
Better error handling when opening a file of which a swapfile exists
...
Ref #569
2018-10-16 22:25:33 +02:00
EinfachToll
76f51f1dba
Nicer error message when linking to not registered wiki
2018-10-15 07:36:41 +02:00
Fredrik Arnerup
f639c0a342
Clean URLs that don't have slashes
...
Will fix normalization of links like [[local:./foo.txt]]
Also, allow schemes to end with a number, so that e.g. [[wiki1:foo]]
will normalize as expected.
2018-09-19 12:12:32 +02:00
Michael F. Schönitzer
2185815b00
Fix problem with open swap-file
2018-07-27 02:49:47 +02:00
EinfachToll
786aa470e3
Remove the user-mappable function and use commands instead.
2018-06-26 21:38:55 +02:00
Michael F. Schönitzer
50c95f1bef
Remove all protocols and tlds on URL-cleaning
...
Also make removal of protocol, tld and 'www' more robust against
fails-positives by considering the position in the url.
2018-06-17 16:10:44 +02:00
Michael F. Schönitzer
4d4e88bfa2
Improve heuristic for cleaning urls in link descr.
2018-06-17 15:31:57 +02:00
EinfachToll
9a8854756e
Refactoring: simplify and remove some regexes
2018-05-20 15:18:05 +02:00
Michael F. Schönitzer
d73c1e4ed6
Remove useless statement
2018-05-08 10:56:10 +02:00
Michael F. Schönitzer
b5dcd1ebeb
Allow wikis in subfolders of other wikis
2018-05-08 10:56:10 +02:00
Zhuang Ma
c8b02e4bc5
Use markdown link syntax for the TOC
...
Ref #483
Fix #200
2018-05-01 21:22:07 +02:00
Ben Burrill
1176f60ec6
Allow any visual mode to be used to create a link
...
The only real condition we care about is whether the selection is
contained within a single line. It is practical to do something like
V<CR> to link a whole line, and AFAIK there is no reason for why that
doesn't work.
2018-04-22 20:58:39 +02:00
EinfachToll
c1dbf90c29
Remove foldmarkers; general reformatting
2018-04-20 07:03:53 +02:00
EinfachToll
90dc1e5871
Make ]] work when cursor is above first header
...
Ref #462
2018-04-17 08:53:08 +02:00
EinfachToll
3556de54e1
Small refactorings
2018-04-17 07:15:23 +02:00
EinfachToll
86a8604c4e
Remove recently introduced code duplication
2018-04-08 20:41:27 +02:00
Jonathan McElroy
bf2039555a
Allow Powershell to open links in Windows
2018-04-08 18:41:17 +02:00
EinfachToll
2941913ccc
Add keys for motions between headers
...
Fix #462
Inspired by #23
2018-04-06 21:11:40 +02:00
EinfachToll
a144be2a30
Improve header text objects
...
- make it work for markdown and media syntax as well
- don't find headers in preformatted text or headers of the form = foo ==
- introduce iH and aH text objects for headers plus subheaders
- add a count to include parent headers
Inspired by #462
2018-04-06 09:58:28 +02:00
blyoa
a2a9f2e6ca
Fix path resolution of diary notes ( #442 )
2018-04-02 21:34:21 +02:00
EinfachToll
52f3bf7c3b
Don't throw errors when the user presses 123\ww
...
This reverts commit 5a00028e6a
.
2018-03-25 21:51:08 +02:00
EinfachToll
8009e5c7cf
Handle all combinations of 'autowriteall' and 'hidden'
...
Ref #445
2018-03-16 21:39:24 +01:00
EinfachToll
5a00028e6a
Don't exit if there are no registered wikis
...
Vimwiki can handle that.
Ref #440
2018-02-22 20:56:30 +01:00
EinfachToll
b016eab91a
Set 'tw' to 99 in all source files. We're not in the middle ages anymore.
2018-02-21 07:11:51 +01:00
EinfachToll
46a5be9b3b
Fix regression: some variables are global, not syntax-local
...
Ref #256
2018-02-20 17:42:13 +01:00
EinfachToll
2757a7826a
Cherry-pick the changes from dev -- part8
2018-02-19 07:44:19 +01:00
EinfachToll
4c940cd5bb
Cherry-pick the changes from dev -- part6
2018-02-17 21:30:01 +01:00
EinfachToll
7d4254a75d
Cherry-pick the changes from dev -- part2
2018-02-16 17:47:32 +01:00
EinfachToll
4e16db926f
Fix more regression bugs
2017-11-11 21:52:07 +01:00
EinfachToll
d5ed58f763
Fix a few regression bugs
...
Ref #256
Fix #301
2017-02-16 21:54:10 +01:00
EinfachToll
31760a7ef7
Fix a few regression bugs
...
Ref #256
2017-01-16 22:10:28 +01:00
EinfachToll
fea76ace23
Use new access functions for buffer-local variables
...
Ref #256
2017-01-13 16:33:41 +01:00
EinfachToll
ce5c822072
Start refactoring the rest -- part 6
...
Ref #256
2017-01-12 21:45:09 +01:00
EinfachToll
b61ff8b5ee
Start refactoring the rest -- part 6
...
Ref #256
2017-01-11 22:12:33 +01:00
EinfachToll
1806d3edfa
Start refactoring the rest -- part 5
...
Ref #256
2017-01-07 21:51:15 +01:00
EinfachToll
4a96eb4d32
Remove two undocumented and probably buggy features
2017-01-04 22:10:10 +01:00
EinfachToll
7c98ce3934
Start refactoring the rest -- part 2
...
Ref #256
2016-12-28 22:17:08 +01:00
EinfachToll
c9104fc2c1
Start refactoring the rest -- part 1
...
Ref #256
2016-12-25 21:35:56 +01:00
EinfachToll
250fd3c47b
Use new access functions for wiki-local variables -- part 5
...
Ref #256
2016-12-23 20:05:53 +01:00
EinfachToll
2329d602a7
Use new access functions for wiki-local variables -- part 4
...
Ref #256
2016-12-22 21:00:19 +01:00
EinfachToll
f497a4abc7
Use new access functions for wiki-local variables -- part 3
...
Ref #256
2016-12-22 19:55:20 +01:00
EinfachToll
6221861957
Use new access functions for wiki-local variables -- part 1
...
Ref #256
2016-12-22 18:16:05 +01:00
EinfachToll
23ee20887a
Use new access functions for global variables -- part 3
...
Ref #256
2016-12-21 22:11:44 +01:00
EinfachToll
49bdf7fa47
Use new access functions for global variables -- part 2
...
Ref #256
2016-12-21 21:28:48 +01:00
EinfachToll
e6d997867a
Use new access functions for global variables -- part 1
...
Ref #256
2016-12-21 19:43:34 +01:00
EinfachToll
0966031234
Highlight math not using TeX but TeX math
...
Fix #236
2016-11-24 16:46:56 +01:00
John Conroy
8534219694
Automatic detection of nested syntaxes in markdown
2016-10-31 15:35:57 -04:00
EinfachToll
722d6e4b9a
'+' on a raw url surrounds it with brackets
...
Fix #188
2016-03-21 09:02:22 +01:00
EinfachToll
68cdfe36df
Unify all messages to the user
2016-03-19 21:29:42 +01:00
EinfachToll
4c2e13a284
Skip preformatted and math text while scanning for headers
...
Fix #191
2016-03-18 15:18:23 +01:00
EinfachToll
5f9dbca89c
Small cleanup of the merged PR
...
Ref #187
2016-01-28 10:52:40 +01:00
EinfachToll
2aeaea5f0d
Merge pull request #187 from mMontu/nested
...
Dynamically detect nested syntaxes (fix #128 )
2016-01-28 10:29:53 +01:00
mMontu
fc947523b0
Dynamically detect nested syntaxes ( fix #128 )
2016-01-27 10:14:49 -02: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
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
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
ad4a12612c
When doing VimwikiCheckLinks, check if index files exist
...
Also, clean the code a bit
2015-11-20 11:50:31 +01:00
EinfachToll
0931685ba2
Merge branch 'tags' into dev
...
Ref #85
2015-11-12 11:56:03 +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
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
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
28114d8c85
Merge remote-tracking branch 'upstream/dev' into 'upstream/tags'
...
Conflicts:
autoload/vimwiki/base.vim
2015-03-25 21:33:19 +03: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