Canop / broot

A new way to see and navigate directory trees : https://dystroy.org/broot
MIT License
10.39k stars 226 forks source link

Add file-git-relative verb argument fix#838 #841

Closed VasilisManol closed 5 months ago

VasilisManol commented 5 months ago

implements #838

Canop commented 5 months ago

When the current root of the displayed tree is a git repository and you select it, the current value is an empty string. Wouldn't it be more useful to have . instead ?

Similar question when the current root is the parent of a git repository and you select it: the current value is the path to that directory. I think a value of . would be better too.

VasilisManol commented 5 months ago

For my use case I would like it to work as {file} does, unless into a git repo where I want the relative path. I define it in a shortcut to be able to get references to a file:line and then send it to colleagues. Therefore, it is convenient to be relative to git root. For all the other cases I want it to be like {file}. What would be the use case, where I would like to get a .? I can't think of any. So my preferences for your questions would be the same, get the full path to the directory. ( same as {file} ).

Canop commented 5 months ago

This will be included in the next release, hopefully this week-end