hynek / structlog

Simple, powerful, and fast logging for Python.

Home Page:https://www.structlog.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

question/feature request: Adjustable width in rich_traceback / Passing options to rich

jvacek opened this issue · comments

My file paths are quite long, and rich_traceback wraps lines. This breaks the link functionality in terminals, which allow me to directly jump to the file and the line where an exception happened.
image
(Instead of being pointed to the file+line, I'm being pointed to the folder above)

The normal traceback allows me to open these long paths directly
image

It would be nice if there was a way to keep this feature even in the pretty ones, even if the terminal's width is less than the length of the path (like below)
image


Alternatively, it would be nice if there was a way to pass some options to rich.console directly

Can you please check if #549 does everything you need