Path smart display

If paths are long it would be handy to see the first AND LAST bit.

public_html/assets/ima....some-image.png

See GitTower how they handle this.

7 answers

Which view(s) in particular were you thinking of here? We don't often display full paths, the only place I can think of is the diff pane, but that scrolls.

All three views (left top) have Path as a column...

Filename, Path

Right, it's just your quote above included the filename at the end, implying that you couldn't see it, but of course in SourceTree the path and filename are separate, so the file name is never cut off.

I see, then I mean:

FilenamePath

Container.jspublic_html/asse...w/component/Container.js

The point I'm trying to make is that the end of path is as important as the beginning. This is to long to see:

public_html/assets/vendor/sencha/touch/2b3/js/src/dataview/component/Container.js

Now I have to drag the right of path column to the right, almost fullscreen or hover each path to see the end. I had 2300 new files last time and wanted to put them in bundeled separate commits. I ended up committing this time with GitTower and went back to SourceTree when the new files were not that much again.

Another nice method is how Sequel Pro handles long database values:

1) First the font width is made smaller to fit the column

2) Still to long? Then the font size is made smaller (but not to small) to fit the column

3) Still to long? The the value is done like I said above: public_html/asse...w/component/Container.js

OK, I sort of see your point here (but to clarify, the file name isn't on the end of the path as you describe there, it's simply the folder).

And if you were grouping things by path, you could have more easily done this by switching to the tree view or column view, which doesn't have a path column at all, it's a hierarchical view.

But regardless, fair point that compressing in the middle is an overall nicer approach, it's just not what the standard Cocoa controls do. I guess others must use custom controls for this, I'll take a look for a future version.

I could go either way on this idea, but to save you time, if you're using a cell such as the standard Text Field Cell in an NSTableView column, the IB Line Break setting "Truncate middle" should do this for you.

I've never seen that option before, thanks!

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

790 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you