jupyterlab/jupyterlab-toc

Python files: 'def' keyword occupies whole line in TOC

stefansimik opened this issue · 1 comments

Hi,
I found sub-optimal behaviour in TOC for Python files.
The def keyword occupies separate line in long function names.

This is not optimal behavior, as it occupies whole new line in TOC
and occupies precious space
(one want to see as many functions as possible in the view without scrolling)

One screenshot says it all:

2020-05-30_110737

Hey @stefansimik I think the problem is the combination of function name & first argument is treated as one word and so forces a line break after def?

A related issue that I think would help would be to not include arguments for functions/methods in the toc see #151

Thanks!