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

Add configuration and CLI options: truncate owner #905

Merged
merged 1 commit into from
Sep 17, 2023

Commits on Sep 16, 2023

  1. Add configuration and CLI options: truncate owner

    This adds the following CLI flags:
    
    - `--truncate-owner-after`
    - `--truncate-owner-marker`
    
    And the following configuration fields:
    
    ```yaml
    truncate-owner:
      after:
      marker: ""
    ```
    
    The default behavior of LSD is unchanged.
    
    The problem this change attempts to solve is the usability of the `-l`
    flag on systems where some user or group names are long but cannot be
    changed (e.g. the user is not admin and the account is managed in a
    central directory). In such cases, even with a decently sized terminal
    (90+ characters wide), lines often overflow, making the directory
    listing hard to read.
    
    Without this change, the only mitigation would consist in turning off
    the display of file ownership (via the `blocks` configuration field)
    which is unsatisfactory because ownership information is very useful.
    bbc2 committed Sep 16, 2023
    Configuration menu
    Copy the full SHA
    5ffa319 View commit details
    Browse the repository at this point in the history