Color file paths for visual clarity

This helps a LOT, but putting it in a tooltip might still be better.
This commit is contained in:
Isaiah Odhner 2023-06-04 16:20:14 -04:00
parent f727a3c08d
commit a735443acc

View File

@ -615,7 +615,7 @@ class NodeInfo(Container):
else:
action = f"open_file({file!r}, {line_number})"
return Text.assemble(
Text(f"{file}:{line_number} "),
Text.styled(f"{file}:{line_number} ", "green"),
Text.from_markup(f"[@click={action}](Open)[/@click]"),
)
except OSError as e: