Vimwiki: VimwikiTOC removes the following non-empty line if it contains a hyphen

Created on 10 Jun 2020  路  4Comments  路  Source: vimwiki/vimwiki

Problem

:VimwikiTOC removes the following non-empty line if it contains a hyphen (-). I suspect it may be removing it as it uses hyphens to detect if that line is part of the existing TOC before updating it.

GIF of problem

Steps to reproduce

  1. Add some headers
  2. :VimwikiTOC
  3. Add a line containing a hyphen after the generated TOC
  4. :VimwikiTOC

Configuration

Syntax: default

let g:vimwiki_list = [{
            \ 'path'             : '~/Projects/knowledge/wiki/',
            \ 'path_html'        : '~/Projects/knowledge/docs/',
            \ 'template_path'    : '~/Projects/knowledge/templates/',
            \ 'template_default' : 'template',
            \ 'template_ext'     : '.html',
            \ 'nested_syntaxes'  : {
                \ 'algorithm': 'plaintex',
                \ 'cpp': 'cpp',
                \ 'clang': 'c',
                \ 'scala': 'scala',
                \ 'haskell': 'haskell'},
            \ 'custom_wiki2html' : '~/Projects/knowledge/wiki2html.sh',
            \ }]
let g:vimwiki_global_ext=0
noremap <Leader>wo :VimwikiGoto<Space>
noremap <Leader>wb :Vimwiki2HTMLBrowse<CR>
let g:vimwiki_conceallevel=0

VimwikiShowVersion

Os: Linux
Vim: 800
Branch: dev
Revision: 285f162
Date: 2020-05-30 18:08:23 -0400

Prior to submitting a new issue make sure to complete these steps:

  • [X] Checkout the dev branch and confirm the issue is present there as well.
    The dev branch contains fixes that may not have been merged to master yet.
  • [X] Post the syntax you are using (default/mediawiki/markdown) and your vimwiki settings from your .vimrc
  • [X] Provide a detailed description of the problem including steps to reproduce the issue.
  • [X] Include the output of :VimwikiShowVersion.
bug

All 4 comments

Nice feedback: Thanks for the video that says all. Yes it can be annoying. I'll have a look at that (when motivated).

full time bug creator

(On your profile) LoL !

full time bug creator

(On your profile) LoL !

Haha, I take pride in my ability to accidentally break things, whether my own code or not. :)

Fixed: 0693e4113252

Was this page helpful?
0 / 5 - 0 ratings

Related issues

imbilltucker picture imbilltucker  路  5Comments

imze5z picture imze5z  路  3Comments

gmarmstrong picture gmarmstrong  路  5Comments

lsrdg picture lsrdg  路  5Comments

joaocortes picture joaocortes  路  4Comments