antonmedv / walk

Terminal file manager
MIT License
3.22k stars 89 forks source link

Better trimming of path location in bar #79

Closed iddev5 closed 1 year ago

iddev5 commented 1 year ago

1) If the path is too long then use only the first letters, for eg. ~/test/llama -> ~/t/l 2) If the path is still too long, use old strategy to remove certain number of letters from beginning. On top of that replace the first 3 letters of new string with "...". For eg, ~/t/l/f/h -> .../f/h

Partially resolves #78