{"action":"created","issue":{"url":"https://api.github.com/repos/vim-pandoc/vim-pandoc/issues/120","labels_url":"https://api.github.com/repos/vim-pandoc/vim-pandoc/issues/120/labels{/name}","comments_url":"https://api.github.com/repos/vim-pandoc/vim-pandoc/issues/120/comments","events_url":"https://api.github.com/repos/vim-pandoc/vim-pandoc/issues/120/events","html_url":"https://github.com/vim-pandoc/vim-pandoc/issues/120","id":58188852,"number":120,"title":"Make disabled folding on split windows optional","user":{"login":"jjaderberg","id":6028968,"avatar_url":"https://avatars.githubusercontent.com/u/6028968?v=3","gravatar_id":"","url":"https://api.github.com/users/jjaderberg","html_url":"https://github.com/jjaderberg","followers_url":"https://api.github.com/users/jjaderberg/followers","following_url":"https://api.github.com/users/jjaderberg/following{/other_user}","gists_url":"https://api.github.com/users/jjaderberg/gists{/gist_id}","starred_url":"https://api.github.com/users/jjaderberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjaderberg/subscriptions","organizations_url":"https://api.github.com/users/jjaderberg/orgs","repos_url":"https://api.github.com/users/jjaderberg/repos","events_url":"https://api.github.com/users/jjaderberg/events{/privacy}","received_events_url":"https://api.github.com/users/jjaderberg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-19T10:12:39Z","updated_at":"2015-02-23T01:20:36Z","closed_at":null,"body":"The folding module doesn't work with split windows. As I understand it `pandoc#folding#FoldExpr` tests if there are more windows than one open and if so returns without doing any work. There is a code comment stating that this is for performance reasons (it is also stated at the end of the help section for folding). Is it really a big performance problem to maintain folds with split windows? I just started with `vim-pandoc` and possibly am misunderstanding how I am supposed to use it, but so far I have found it limiting to have to choose between splits and folds. Would it be possible to make this performance feature optional? Perhaps a `pandoc#folding#disable_folding_on_splits` option that is checked together with `winnr` before short-circuiting `FoldExpr`. If not, I would suggest explaining the feature a little further and making the information more prominent in the help as I found this folding behavior confusing.\r\n\r\nI have tried disabling the three relevant lines of code and have not yet suffered from any tardiness in vim."},"comment":{"url":"https://api.github.com/repos/vim-pandoc/vim-pandoc/issues/comments/75477704","html_url":"https://github.com/vim-pandoc/vim-pandoc/issues/120#issuecomment-75477704","issue_url":"https://api.github.com/repos/vim-pandoc/vim-pandoc/issues/120","id":75477704,"user":{"login":"fmoralesc","id":221465,"avatar_url":"https://avatars.githubusercontent.com/u/221465?v=3","gravatar_id":"","url":"https://api.github.com/users/fmoralesc","html_url":"https://github.com/fmoralesc","followers_url":"https://api.github.com/users/fmoralesc/followers","following_url":"https://api.github.com/users/fmoralesc/following{/other_user}","gists_url":"https://api.github.com/users/fmoralesc/gists{/gist_id}","starred_url":"https://api.github.com/users/fmoralesc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fmoralesc/subscriptions","organizations_url":"https://api.github.com/users/fmoralesc/orgs","repos_url":"https://api.github.com/users/fmoralesc/repos","events_url":"https://api.github.com/users/fmoralesc/events{/privacy}","received_events_url":"https://api.github.com/users/fmoralesc/received_events","type":"User","site_admin":false},"created_at":"2015-02-23T01:20:36Z","updated_at":"2015-02-23T01:20:36Z","body":"I made it so the folding is disabled only for buffers with multiple splits open, which should improve things."}}