mdmintz / pdbp

pdbp (Pdb+): A drop-in replacement for pdb and pdbpp. To replace "pdb", add "import pdbp" to an "__init__.py" file.
Other
75 stars 2 forks source link

Non-"truncate" "sticky" mode should become the default mode #36

Closed mdmintz closed 1 year ago

mdmintz commented 1 year ago

Non-"truncate" "sticky" mode should become the default mode.

After the changes are made in https://github.com/mdmintz/pdbp/issues/35, it should be safe to make non-truncate sticky mode the default mode. The current default setting is truncate with sticky.

This will prevent missing important details when long lines are truncated. This will also make screen-resizing more feasible, as the display will automatically correct itself during a resize.

mdmintz commented 1 year ago

If the console width in non-truncate mode is wider than the width of the longest line, you'll be able to tell which mode you're in because in non-truncate mode, the highlighting will stop at the last character of the line (see below).

Screenshot 2023-04-26 at 2 26 40 PM

That is unlike an active truncate mode, where the highlighting goes all the way to the end of the line (see below).

Screenshot 2023-04-26 at 3 10 01 PM
mdmintz commented 1 year ago

This was resolved in 1.4.0 - https://github.com/mdmintz/pdbp/releases/tag/v1.4.0