# Truncating/right aligning the path column

**URL:** https://community.mp3tag.de/t/truncating-right-aligning-the-path-column/67794
**Category:** Support
**Created:** [March 10, 2025, 8:23pm UTC](https://community.mp3tag.de/t/truncating-right-aligning-the-path-column/67794 "2025-03-10T20:23:25Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![wimpers](https://community.mp3tag.de/user_avatar/community.mp3tag.de/wimpers/32/13777_2.png) [@wimpers](https://community.mp3tag.de/u/wimpers)
#### Post date: [March 10, 2025, 8:23pm UTC](https://community.mp3tag.de/t/truncating-right-aligning-the-path-column/67794/1 "2025-03-10T20:23:25Z")

</div>

I don't know if this is in the works, but it would be nice to either have the path column right outlined so I see the ending path of files, because they contain the Artist and Album in a directory structure but because it's standard left aligned I always see the same (e.g. G:\Muziek\soulseek\downloads\band\album) repeating part.

This is also my default sorting column because for me, it makes the most sense keeping artists, albums, and songs alphabetically and numerically.

I'm not really interested in the 1st part because it's always the same and if I fit the column to contents it takes up a bunch of unnecessary space.

Or having a way to remove the Folder part from the Path would also work.

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [March 10, 2025, 8:29pm UTC](https://community.mp3tag.de/t/truncating-right-aligning-the-path-column/67794/2 "2025-03-10T20:29:56Z")

</div>

I don't really understand which part of the path you want to keep and which to discard, could you give an example?

---

<div class="post-metadata">

### Author: ![MotleyG](https://community.mp3tag.de/user_avatar/community.mp3tag.de/motleyg/32/440_2.png) [@MotleyG](https://community.mp3tag.de/u/MotleyG)
#### Post date: [March 10, 2025, 11:21pm UTC](https://community.mp3tag.de/t/truncating-right-aligning-the-path-column/67794/3 "2025-03-10T23:21:57Z")

</div>

Please confirm. You are not seeking to actually trim or truncate the existing path. This request is simply how the file list column for the path be justified from the right so that the end of the path is most visible and the front/left is hidden if the column is not wide enough?

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [March 11, 2025, 5:57am UTC](https://community.mp3tag.de/t/truncating-right-aligning-the-path-column/67794/4 "2025-03-11T05:57:49Z")

</div>

> [@MotleyG](#):
>
> from the right so that the end of the path

That looks to me like the filename and the \_DIRECTORY or is it more? It should be possible to add a column that shows a dedicated part of the path. But for such an column definition it would be necessary to see which part is required.

---

<div class="post-metadata">

### Author: ![wimpers](https://community.mp3tag.de/user_avatar/community.mp3tag.de/wimpers/32/13777_2.png) [@wimpers](https://community.mp3tag.de/u/wimpers)
#### Post date: [March 11, 2025, 1:26pm UTC](https://community.mp3tag.de/t/truncating-right-aligning-the-path-column/67794/5 "2025-03-11T13:26:20Z")

</div>

@ohrenkino, most people keep all their stuff in a drive or folder collection so the full path always stays the same for each file, so this is unnecessary info, for instance the 'M:\Muziek#soulseek\complete' part:  
M:\Muziek#soulseek\complete\Wreckage, The\Pillaging, A Mutual Benefit\01...  
M:\Muziek#soulseek\complete\Wreckage, The\Pillaging, A Mutual Benefit\02...

@MotleyG This could work, but truncation with left alignment is more readable with different lengths of artists and albums.

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [March 11, 2025, 1:35pm UTC](https://community.mp3tag.de/t/truncating-right-aligning-the-path-column/67794/6 "2025-03-11T13:35:49Z")

</div>

> [@wimpers](#):
>
> M:\Muziek#soulseek\complete\Wreckage, The\Pillaging, A Mutual Benefit\

You could create a column with the following definition as  
Value: $replace(%\_path%,M:\Muziek#soulseek\complete,)

which should show only

> [@wimpers](#):
>
> `Wreckage, The\Pillaging, A Mutual Benefit\01...`

which seems to be the more important part for you.

Alteratively, you could use as  
Value: `$right(%_path%,50)`  
which gives you the rightmost 50 characters

---

<div class="post-metadata">

### Author: ![wimpers](https://community.mp3tag.de/user_avatar/community.mp3tag.de/wimpers/32/13777_2.png) [@wimpers](https://community.mp3tag.de/u/wimpers)
#### Post date: [March 11, 2025, 2:40pm UTC](https://community.mp3tag.de/t/truncating-right-aligning-the-path-column/67794/7 "2025-03-11T14:40:19Z")

</div>

Yes, that's pretty much it, thanks! 😀  
Is it possible to have multiple replaces in a compound statement?  
After downloading I pull them through MusicBrainz and then they are moved to a different location.

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [March 11, 2025, 2:48pm UTC](https://community.mp3tag.de/t/truncating-right-aligning-the-path-column/67794/8 "2025-03-11T14:48:35Z")

</div>

$replace() allows some 30 pairs of search and replace parameters.  
But it could be that a regular expression like  
`$regexp(%_path%,M:\Muziek#.*?\\,)`  
may be the better approach.

---

<div class="post-metadata">

### Author: ![wimpers](https://community.mp3tag.de/user_avatar/community.mp3tag.de/wimpers/32/13777_2.png) [@wimpers](https://community.mp3tag.de/u/wimpers)
#### Post date: [March 11, 2025, 3:38pm UTC](https://community.mp3tag.de/t/truncating-right-aligning-the-path-column/67794/9 "2025-03-11T15:38:48Z")

</div>

Nice, those multiple search/replace pairs did the trick, thanks!

---

<div class="post-metadata">

### Author: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [April 10, 2025, 3:38pm UTC](https://community.mp3tag.de/t/truncating-right-aligning-the-path-column/67794/10 "2025-04-10T15:38:49Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
