Henry Qin
e6d6830db7
Merge branch 'colorcodes' into 'dev'. Closes PR #616 .
...
This colors all CSS color codes found alone in inline code blocks to the
color they mention.
2019-03-17 18:09:06 -07:00
Hugo Hörnquist
2f87f92060
Better foreground for colorcodes.
2019-03-17 22:40:34 +01:00
Henry Qin
8941508e35
Allow AddHeaderLevel and RemoveHeaderLevel to take counts
2019-03-17 10:43:42 -07:00
Henry Qin
abd12d4479
Merge PR #377 from https://github.com/schmeisers/vimwiki
2019-03-14 18:08:27 -07:00
Hugo Hörnquist
08ec02a755
Alternative where text color is inverse of background.
2019-02-19 21:04:57 +01:00
Hugo Hörnquist
21f5069e48
Code-blocks auto-color.
2019-02-19 20:45:10 +01: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
Fredrik Arnerup
69aa609941
Don't include trailing period in link
2019-02-01 17:43:05 +01:00
Hugo Hörnquist
bda3a59f91
Made headings link to themselves.
...
Made each heading link to itself, by placing an <a> tag inside each
<h[1-6]> tag.
Also adds class="header" to each header, allowing for the CSS rule
.header a { ... }
to remove all styling from the inner links, allowing the outputed
document to look like before.
2019-01-30 21:13:29 +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
fdc367f725
Check all user settings for correct type, range etc.
2019-01-19 21:05:27 +01:00
EinfachToll
6257c8fa54
Revert "Allow to specify additional chars for lists"
...
This reverts commit 75819ca23a
.
2019-01-17 21:57:42 +01:00
EinfachToll
35d1f23b92
Revert "Allow list symbols to be configured per wiki"
...
This reverts commit 79c295a92f
.
2019-01-17 21:57:40 +01:00
EinfachToll
54e064f5c4
Revert "Fix bug"
...
This reverts commit 2346b7e299
.
2019-01-17 21:57:28 +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
Michael F. Schönitzer
2346b7e299
Fix bug
2019-01-04 01:19:26 +01:00
Michael F. Schönitzer
79c295a92f
Allow list symbols to be configured per wiki
2019-01-03 21:02:21 +01:00
Michael F. Schönitzer
75819ca23a
Allow to specify additional chars for lists
...
See also #390 and #479 for earlier attempts
2019-01-03 21:02:21 +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
d9b6d77e90
Accept '.foo' and 'foo' as value for the ext option
2018-12-17 20:27:15 +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
a72c14da1c
More reasonable behavior for [-] and [X] list items
...
A parent [-] list item should have only [-] items as children.
2018-12-08 21:13:04 +01:00
EinfachToll
c398f5cd81
Remove code duplicate
2018-12-08 21:06:30 +01:00
EinfachToll
fa36bf3838
Don't check a [-] list item when its parent is [X] checked
2018-11-30 17:02:38 +01:00
EinfachToll
a653e2d8c2
HTML converter: trim strings correctly
...
The old version didn't remove trailing spaces.
2018-11-25 17:56:43 +01:00
EinfachToll
349d551181
Diary: make + in visual mode work correctly
2018-11-25 17:55:43 +01:00
EinfachToll
dcd1c0a364
Make gl* work again
...
The problem was that map() also changed the given list in-place, that's
not what was intended.
2018-11-19 21:02:37 +01:00
EinfachToll
2fb0e17adb
glx on a list item creates a checked checkbox
...
... instead of an unchecked one.
2018-11-17 20:07:48 +01:00
EinfachToll
12349b8cb6
Remove duplicated code
2018-11-17 20:07:09 +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
bddd644fbb
Use $HOME instead of ~/ in paths
...
Apparently, the latter doesn't work on all platforms.
Ref #565
2018-11-07 22:02:30 +01:00
EinfachToll
90722a4703
Make an error message more clear
2018-11-01 21:12:14 +01:00
EinfachToll
7969810b49
Fix losing highlighting after VimwikiAll2HTML
...
Apparently, switching buffers in connection with disabled events caused
the highlighting to disappear. Solution: use the :wa command to save all
buffers. A disadvantage is that now also non-Vimwiki buffers are saved,
but I think that is bearable.
2018-10-27 17:01:52 +02: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
Steven Stallion
d7d94e2160
Initial commit
2018-09-29 20:23:26 +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
Steven Schmeiser
10f502a698
table align - catch up to dev
2018-07-09 13:51:18 -04:00
Steven Schmeiser
23d273d547
table alignment: break out of loop when separator found
2018-07-09 10:05:30 -04: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