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

Allow variables as input for the max_width property for the path segment. #5097

Closed
1 task done
awerebea opened this issue Jun 16, 2024 · 0 comments
Closed
1 task done
Assignees
Labels
🤩 enhancement Improvement of a feature

Comments

@awerebea
Copy link

awerebea commented Jun 16, 2024

Code of Conduct

  • I agree to follow this project's Code of Conduct

What would you like to see changed?

I'm using the powerlevel style for the path segment because I want it to shorten long paths so they fit on one line in my current terminal window.

It would be great if I could set the value of the path segment's max_width property dynamically based on the width of my current terminal window, so as not to shorten paths that already fit into the current screen width.

- type: prompt
  alignment: left
  segments:
  - type: path
    style: plain
    properties:
      style: powerlevel
      max_width: "{{ .Env.POSH_MAX_PATH_WIDTH }}"
    template: "{{ .Path }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤩 enhancement Improvement of a feature
Projects
None yet
Development

No branches or pull requests

2 participants