Skip to content

Commit

Permalink
Full path dispay fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
jasursadikov committed Sep 12, 2024
1 parent 8ca0fc1 commit 76685d7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,7 @@ def _get_formatted_path(path: str) -> str:
if path.startswith('/'):
path = path[1:]
parts = path.split('/')
return DIM + WHITE + ('/'.join([p[0] for p in parts[:-1]] + [RESET + DIM + parts[-1]]) if simplify_branches else '/'.join(
[p for p in parts[:-1]] + [(parts[-1][:10] + '..' if len(parts[-1]) > 10 else parts[-1])])) + RESET
return DIM + WHITE + ('/'.join([p[0] for p in parts[:-1]] + [RESET + DIM + parts[-1]]) if simplify_branches else ('/'.join(parts[:-1])) + f'/{RESET}{DIM}' + parts[-1] + RESET)

return f'{DIM}{path}{RESET}'

Expand Down

0 comments on commit 76685d7

Please sign in to comment.