Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Anchor git repositories' root in Path segment. #5174

Closed
1 task done
ftpd opened this issue Jun 27, 2024 · 2 comments
Closed
1 task done

Anchor git repositories' root in Path segment. #5174

ftpd opened this issue Jun 27, 2024 · 2 comments
Assignees
Labels
🤩 enhancement Improvement of a feature

Comments

@ftpd
Copy link

ftpd commented Jun 27, 2024

Code of Conduct

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

What would you like to see changed?

Currently when I go into my git repository located somewhere on disk, the path looks like ~/git/projects/private/my-awesome-repository. I would like to be able to see it as my-awesome-repository, because when I'm working inside the git repo, I don't really care about my global pwd, just the relation to repo's root.

Edit: I've just checked the default configuration and it seems it works that way, but I can't find related configuration option(s) in both Path and Git segment documentation. I'm sorry for creating an issue for this, I will close it as soon as I find the missing settings.

Edit2: ok, it seems that the default configuration uses style Folder and that's why I thought it covers my need - it doesn't. I want to see the full path everywhere except git repositories.

@ftpd ftpd added the 🤩 enhancement Improvement of a feature label Jun 27, 2024
@boldandbrad
Copy link

I'm looking for something similar.

I'd like a variation of the Folder style called GitFolder or GitRepo that displays the current Folder but when inside a git repo, anchors the git repo root dir.

So if I'm in the root of my repo, lets say path/to/dotfiles it would should dotfiles, but if I cd into a sub folder within the repo, say config/ then I'd like it to display dotfiles/config etc.

I can't find a way to force this behavior with omp today. Also happy to open a separate issue if what I'm asking for doesn't overlap with ftpd's request.

@JanDeDobbeleer
Copy link
Owner

that's all possible with templates. I'll build one that does exactly that as I have the same behaviour.

Repository owner locked and limited conversation to collaborators Jun 29, 2024
@JanDeDobbeleer JanDeDobbeleer converted this issue into discussion #5186 Jun 29, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
🤩 enhancement Improvement of a feature
Projects
None yet
Development

No branches or pull requests

3 participants