Closed tconbeer closed 7 months ago
re-use space used by the validation error label
Show fully-resolved path, but try to show it relative to ~ if that works.
~
e.g.:
./foo
~/projects/data_project/foo
~/projects/data_project
/tmp/abc123/foo
/tmp/abc123
see https://github.com/tconbeer/harlequin/discussions/511
see this event handler:
https://github.com/tconbeer/textual-textarea/blob/a4c3291c77c48192f2f2c1aa2d8fbdc988d15bf3/src/textual_textarea/text_editor.py#L1132-L1139
re-use space used by the validation error label
Show fully-resolved path, but try to show it relative to
~
if that works.e.g.:
./foo
, show~/projects/data_project/foo
if cwd is~/projects/data_project
./foo
, show/tmp/abc123/foo
if cwd is/tmp/abc123
see https://github.com/tconbeer/harlequin/discussions/511