Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shorten CWD path #854

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Shorten CWD path #854

wants to merge 1 commit into from

Commits on Oct 25, 2021

  1. Shorten CWD path

    For showing the CWD path in a more compact way, this function
    
        - shortens path parts before last from right to left, until first
          character of the path stays (directory -> direc~ or d~)
        - combines parts before last from right with left (a~/b~ -> a~~)
        - shortens the last part from middle, preferring to keep characters
          from left (longdirectoryname -> long~ame)
    
    in order (of 2nd and 3rd, the one that removes more characters is
    applied first) until given maximum length is reached.
    Ekin Dursun committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    e2b9b21 View commit details
    Browse the repository at this point in the history