SimpylFold icon indicating copy to clipboard operation
SimpylFold copied to clipboard

Comment BLOCKS (in file licenses)

Open PyTis opened this issue 3 years ago • 0 comments

First of all, thank you for making this. FYI, I couldn't seem to get it installed without also including the following 3 lines at the bottom of my local .vimrc file:

source ~/.vim/autoload/SimpylFold.vim
source ~/.vim/plugin/SimpylFold.vim
source ~/.vim/ftplugins/python/SimpylFold.vim

Right out of the gate, the only feature-add that I would like to request. LARGE comment blocks (it could be a configurable variable where 0 is off, then a minimum amount of lines starting with # with the same tabulation have to be met to be folded.. I.E. OFF -> "g:SimpylFold_fold_commentblock Fold commentblock 0" I.E. 4 or more -> "g:SimpylFold_fold_commentblock Fold commentblock 4"

Where I work at (but I use this personally as well, and have my own personal GPL going at the top of my files), the license is so long, that I can't even see any code on the screen when putty/vim is maximized, the whole first page is being taken up by something that could be folded.

See Screenshot for example:

potential-SimplyFold-bug

PyTis avatar Jul 23 '21 08:07 PyTis