Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VimwikiTOC removes the following non-empty line if it contains a hyphen #910

Closed
4 tasks done
chuahou opened this issue Jun 10, 2020 · 4 comments
Closed
4 tasks done
Assignees
Labels

Comments

@chuahou
Copy link

chuahou commented Jun 10, 2020

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:

  • 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.
  • Post the syntax you are using (default/mediawiki/markdown) and your vimwiki settings from your .vimrc
  • Provide a detailed description of the problem including steps to reproduce the issue.
  • Include the output of :VimwikiShowVersion.
@tinmarino tinmarino self-assigned this Jun 10, 2020
@tinmarino
Copy link
Member

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

@tinmarino
Copy link
Member

full time bug creator

(On your profile) LoL !

@chuahou
Copy link
Author

chuahou commented Jun 10, 2020

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. :)

@tinmarino tinmarino added the bug label Aug 6, 2020
@tinmarino tinmarino added this to Needs triage in Bug Triage Deprecated via automation Aug 6, 2020
@tinmarino tinmarino moved this from Needs triage to Low priority in Bug Triage Deprecated Aug 6, 2020
tinmarino added a commit to tinmarino/vimwiki that referenced this issue Aug 6, 2020
@tinmarino
Copy link
Member

Fixed: 0693e41

Bug Triage Deprecated automation moved this from Low priority to Closed Aug 6, 2020
deepredsky pushed a commit to deepredsky/vimwiki that referenced this issue Jan 16, 2021
jls83 pushed a commit to jls83/vimwiki that referenced this issue Jan 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

No branches or pull requests

2 participants