Add option to set a character which replaces spaces when creating links.

The wikilocal option links_space_char will be used to replace any spaces
when creating a new wiki link and page. This only affects link creation
with a visual selection.
This commit is contained in:
Rane Brown
2019-03-31 21:16:44 -06:00
parent 3396e87dbe
commit 41aa647aba
4 changed files with 20 additions and 2 deletions

View File

@ -269,6 +269,7 @@ function! s:populate_wikilocal_options()
\ 'exclude_files': {'type': type([]), 'default': []},
\ 'ext': {'type': type(''), 'default': '.wiki', 'min_length': 1},
\ 'index': {'type': type(''), 'default': 'index', 'min_length': 1},
\ 'links_space_char': {'type': type(''), 'default': ' ', 'min_length': 1},
\ 'list_margin': {'type': type(0), 'default': -1, 'min': -1},
\ 'maxhi': {'type': type(0), 'default': 0, 'min': 0, 'max': 1},
\ 'nested_syntaxes': {'type': type({}), 'default': {}},