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

Improve path display #50

Merged
merged 1 commit into from
Oct 19, 2024
Merged

Improve path display #50

merged 1 commit into from
Oct 19, 2024

Conversation

9999years
Copy link
Owner

@9999years 9999years commented Oct 19, 2024

  • Rip out the NormalPath type, add a new PathDisplay trait
    • Also Utf8Absolutize, to help out
  • Display paths relative to $HOME when possible
  • Stop displaying relative paths; they're just not great for this use-case

Closes #47

Before:

• Converting .. to a worktree repository.
  I'll move the following worktrees to new locations:
  • ../tasty-arg -> ../add-validate-tasty-arg
  • ../work -> ../haddock-project-parse-common-flags
  • ../configure-failure -> ../missing-or-private-details-3.10
  Additionally, I'll move the Git directory and convert the repository to a bare repository:
  • .git -> ../.git

After:

• Converting ~/cabal to a worktree repository.
  I'll move the following worktrees to new locations:
  • ~/cabal/tasty-arg -> ~/cabal/add-validate-tasty-arg
  • ~/cabal/work -> ~/cabal/haddock-project-parse-common-flags
  • ~/cabal/configure-failure -> ~/cabal/missing-or-private-details-3.10
  Additionally, I'll move the Git directory and convert the repository to a bare repository:
  • ~/cabal/master/.git -> ~/cabal/.git

- Rip out the `NormalPath` type, add a new `PathDisplay` trait
  - Also `Utf8Absolutize`, to help out
- Display paths relative to `$HOME` when possible
- Stop display relative paths; they're just not great for this use-case

Closes #47

Before:

    • Converting .. to a worktree repository.
      I'll move the following worktrees to new locations:
      • ../tasty-arg -> ../add-validate-tasty-arg
      • ../work -> ../haddock-project-parse-common-flags
      • ../configure-failure -> ../missing-or-private-details-3.10
      Additionally, I'll move the Git directory and convert the repository to a bare repository:
      • .git -> ../.git

After:

    • Converting ~/cabal to a worktree repository.
      I'll move the following worktrees to new locations:
      • ~/cabal/tasty-arg -> ~/cabal/add-validate-tasty-arg
      • ~/cabal/work -> ~/cabal/haddock-project-parse-common-flags
      • ~/cabal/configure-failure -> ~/cabal/missing-or-private-details-3.10
      Additionally, I'll move the Git directory and convert the repository to a bare repository:
      • ~/cabal/master/.git -> ~/cabal/.git
@9999years 9999years marked this pull request as ready for review October 19, 2024 00:48
@9999years 9999years merged commit 4212046 into main Oct 19, 2024
28 checks passed
@9999years 9999years deleted the path-display branch October 19, 2024 00:48
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve path display
1 participant