[Done] Custom Columns: <cc_base>?

Features wanted...
Post Reply
Filehero
Posts: 2644
Joined: 27 Feb 2012 18:50
Location: Windows 10 Pro x64

[Done] Custom Columns: <cc_base>?

Post by Filehero »

Hi Don,

can we have another variable <cc_base> (like <curbase>)?


Cheers,
Filehero
Last edited by Filehero on 22 Sep 2014 11:54, edited 1 time in total.

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: Custom Columns: <cc_base>?

Post by TheQwerty »

+1

Saves a call to GetPathComponent.

Filehero
Posts: 2644
Joined: 27 Feb 2012 18:50
Location: Windows 10 Pro x64

Re: Custom Columns: <cc_base>?

Post by Filehero »

Hi Don,

since all that's needed it seems rather simple:

Code: Select all

$cc_base = cc_item - cc_path - cc_ext - ".";
:lol:

Just a friendly bump. :)


Cheers,
Filehero

Filehero
Posts: 2644
Joined: 27 Feb 2012 18:50
Location: Windows 10 Pro x64

Re: Custom Columns: <cc_base>?

Post by Filehero »

Hi Don,

I'd kindly like to bump this wish.

It would help me a lot with my GPX track view I'm currently implementing (also see here).


Cheers,
Filehero

Filehero
Posts: 2644
Joined: 27 Feb 2012 18:50
Location: Windows 10 Pro x64

Re: Custom Columns: <cc_base>?

Post by Filehero »

:whistle:

Filehero
Posts: 2644
Joined: 27 Feb 2012 18:50
Location: Windows 10 Pro x64

Re: Custom Columns: <cc_base>?

Post by Filehero »

:whistle:

admin
Site Admin
Posts: 60529
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Custom Columns: <cc_base>?

Post by admin »

What's so bad about GetPathComponent?

Filehero
Posts: 2644
Joined: 27 Feb 2012 18:50
Location: Windows 10 Pro x64

Re: Custom Columns: <cc_base>?

Post by Filehero »

admin wrote:What's so bad about GetPathComponent?
Nothing in principle.

1. Is it as fast as native <cc_base> would be when applied to every list entry in every column?

2. I see the following gap creating a little (logical) unsymmetry

Code: Select all

<cc_item> = <cc_path> + <cc_name>
<cc_name> = ???? + <cc_ext>

admin
Site Admin
Posts: 60529
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Custom Columns: <cc_base>?

Post by admin »

Well, these are good points. Nice presentation. ;) I'll add it.

Filehero
Posts: 2644
Joined: 27 Feb 2012 18:50
Location: Windows 10 Pro x64

Re: Custom Columns: <cc_base>?

Post by Filehero »

admin wrote: ;) I'll add it.
:D

Post Reply