SimpylFold icon indicating copy to clipboard operation
SimpylFold copied to clipboard

No-BS Python code folding for Vim

Results 19 SimpylFold issues
Sort by recently updated
recently updated
newest added

As it is, README doesn't really provide the information needed for someone to determine if they want to give it a try.

With the following block: ``` @property def test(self): pass ``` This plugin folds it like: ``` @property +--- 2 lines def test(self):--------------- ``` But python-mode folds it like: ``` def...

enhancement
need-opinions

Sometimes I have portions of code that I would like to be folded as such as classes and functions. For this, I use the vim's markers that are supported by...

enhancement
need-opinions

I'm trying to fold _only_ docstrings, is this possible?

Python focuses on indents for readability, thus I think the fold-text should respect the indent for readability. The indent based on the fold-level as we get here is in my...

question

This definition won't have its docstring previewed: ```python def f(a): # type: (int) -> int """Bars the foo. """ return a + 3 ``` [PEP-484](https://www.python.org/dev/peps/pep-0484/#suggested-syntax-for-python-2-7-and-straddling-code), specifically the section for syntax...

To browse long functions, I sometimes wished that `if`, `elif`, `else`, `for`, `while`, `try` and `except` blocks were also folded by SympylFold. Would it be difficult to have them optionally...

enhancement

I think SimpylFold can benefit from some body of automated testcases. We can use [vim-vspec](https://github.com/kana/vim-vspec) for it. I'll drop different versions of what we can do in comments.

enhancement

Maybe I'm missing the point here, but function definitions with try blocks aren't getting folded: ``` +-- 1 line: def process_schedule(header, output_path, pubs_deliver, root_dir, schedule_name): try: logging.info(f'Processing schedule {schedule_name}...') ......