INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Making a pane display/sort by last subfolder in path.  (Read 1440 times)

lalittle

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3964
Making a pane display/sort by last subfolder in path.
« on: May 08, 2007, 05:48:34 pm »

There was some talk on this subject a while back, but I never heard of a solution.

Is there any way to make a pane that will display/sort by the name of the last subfolder in a path?  I tried to figure out a way to do this with an expression, but I'm not that familiar with editing expressions, so I could use some help on this.

Thanks,

Larry
Logged

darichman

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1362
Re: Making a pane display/sort by last subfolder in path.
« Reply #1 on: May 08, 2007, 11:51:45 pm »

I have lots of situations where this would be useful to me!
Logged

datdude

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2222
Re: Making a pane display/sort by last subfolder in path.
« Reply #2 on: May 09, 2007, 12:12:47 am »

Hmm, I did not know you could sort a pane other than in the options.  Can you sort by number of files?
Logged
"You are not a beautiful or unique snowflake." -  Just a very big snowball

gummbah

  • World Citizen
  • ***
  • Posts: 240
Re: Making a pane display/sort by last subfolder in path.
« Reply #3 on: May 09, 2007, 12:19:02 am »

I would be very interested in this as well.
Probably it is doable if we know a way to find the number of letters the last directory name contains, because then we can use the 'RemoveLeft' or 'RemoveRight' expression.

Any help?
Cheers
Logged

lalittle

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3964
Re: Making a pane display/sort by last subfolder in path.
« Reply #4 on: May 09, 2007, 02:43:06 am »

There was a suggestion before to get an expression to find the last folder by looking for the last backslashes in the path.  Unfortunately, I don't know enough about expressions to know whether or not this is possible.

Thanks for the feedback,

Larry
Logged

hit_ny

  • Citizen of the Universe
  • *****
  • Posts: 3310
  • nothing more to say...
Re: Making a pane display/sort by last subfolder in path.
« Reply #5 on: May 14, 2007, 01:42:35 am »

There is no *automated* way to do this atm, you can specifiy how many chars to look at , but this won't work for all cases.
Logged

lalittle

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3964
Re: Making a pane display/sort by last subfolder in path.
« Reply #6 on: May 14, 2007, 05:31:40 pm »

There is no *automated* way to do this atm, you can specifiy how many chars to look at , but this won't work for all cases.

So there is no way to get it to search backwards from the end of the path for the second "\"?

Thanks again,

Larry
Logged

hit_ny

  • Citizen of the Universe
  • *****
  • Posts: 3310
  • nothing more to say...
Re: Making a pane display/sort by last subfolder in path.
« Reply #7 on: May 15, 2007, 06:40:53 am »

You can get it search backwards, but only by a certain number of chars...you can't say stop if it hits a "\"
Logged

zirum

  • Galactic Citizen
  • ****
  • Posts: 403
  • still learning.
Re: Making a pane display/sort by last subfolder in path.
« Reply #8 on: May 15, 2007, 11:16:02 pm »

I hoped to get a way to solve this by this post:
http://yabb.jriver.com/interact/index.php?topic=40555.0

but not very much response there either...
Logged
Note to myself: Read, think, write - Read, think, write - think, read, write - think, write, read - think, write, read... Aahhw, i always mess that up...
Pages: [1]   Go Up