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

Fold both headings and list items #1355

Open
qadzek opened this issue Jul 8, 2023 · 1 comment
Open

Fold both headings and list items #1355

qadzek opened this issue Jul 8, 2023 · 1 comment
Labels
config Related to configuration: default, customization enhancement folding good first issue hacktoberfest https://hacktoberfest.digitalocean.com/details

Comments

@qadzek
Copy link
Contributor

qadzek commented Jul 8, 2023

let g:vimwiki_folding = 'list:quick' folds list items (e.g. - foo or - [ ] bar) and let g:vimwiki_folding = 'expr:quick' folds Markdown headings (e.g. ## Baz), is there any way to fold both?

This was discussed a long time ago in another issue (#117), but it seems no solution was found.

Right now, this is a global setting (see issue #894), so it isn't even possible to choose list for one wiki and expr for another one, let alone choose one method for a particular file and another method for other files.

E.g. in this screenshot I would like to fold "Cake" and "To do":
image

@tinmarino tinmarino added config Related to configuration: default, customization folding labels Jul 8, 2023
@tinmarino
Copy link
Member

Hi @infinitewhileloop,

Short: Feature request

  1. Fold List AND Heading
  2. Make fold method wikilocal

Estimated time: 3h

Long:
Thank you for the issue. In fact I do not know how it is possible, it may be not. But this would be a nice feature, without so much work.
Besides I agree that this must be a wiki or syntax local variable (very short to change).

@tinmarino tinmarino added enhancement good first issue hacktoberfest https://hacktoberfest.digitalocean.com/details labels Jul 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
config Related to configuration: default, customization enhancement folding good first issue hacktoberfest https://hacktoberfest.digitalocean.com/details
Projects
None yet
Development

No branches or pull requests

2 participants