jupyterlab-toc icon indicating copy to clipboard operation
jupyterlab-toc copied to clipboard

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

Open stefansimik opened this issue 4 years ago • 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

stefansimik avatar May 30 '20 09:05 stefansimik

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!

hottwaj avatar Sep 30 '20 11:09 hottwaj