Getting an accurate list of approved images

picu has a convenient method of providing you with a list of filenames of all of the approved images.

Copy filenames by the click of a button
Copy filenames by the click of a button

By copying and pasting this string of filenames into Lightroom’s library filter search field you should get exactly those images. (Make sure to select „Filename“ and „Contains“.)

Lightroom’s library filter
Lightroom’s library filter

By default picu gives you the filenames separated by a space.

This however doesn’t work for some photographers, who name their files ending in sequence numbers, eg. flower–1.jpg, flower–2.jpg, …, flower–10.jpg.

Entering flower–1 in Lightroom’s search field it will show them flower–1.jpg as well as flower–10.jpg (and 11, 12, …).

(Aside: This problem won’t occur if you use leading zeros in your filenames, like flower-0001.jpg and flower-0010.jpg.)

To accommodate photographers that use this kind of file naming we introduced a way of customizing the separator in version 0.9.2:

Define a constant

Just add the following line to your wp-config.php file:

define( ‘PICU_FILENAME_SEPARATOR’, ‘. ’ );

Add your custom separator between the last two quotes.

In the code example above the separator consists of a point and a space, which would result in „flower–1. flower–2. flower–3. …“.

Instead of a point you could also write .jpg. But as many photographers only keep raw files in their library (with different file extensions) a point is actually all that’s needed for Lightroom to determine the end of a filename.


There is actually a second way to do the same thing. It is targeted more towards developers:

Use our picu_filename_separator filter, eg. by adding the following code snippet to your theme’s functions.php.

add_filter( ‘picu_filename_separator’, ‘my_custom_filename_separator’, 10, 2 );

function my_custom_filename_separator( $divider ) {
    return ‘. ’;
}

Either way, we hope this improvement is useful in your personal workflow and allows you to stick to your specific convention of naming image files.

If you have any questions, we’re here to help.


Subscribe to our mailing list and/or follow us on Twitter to receive the latest in the on-going development of picu.

Posted in:

Related Posts

These posts could interest you as well, read on to get the full picture.

  • Update – July 2025

    Welcome to another quick update post. It’s a short one this month, but we still wanted to share some of the things we’ve been working on. Payment Providers & Paypal Integration We launched picu e-commerce in June with support for Stripe to accept payments directly, and with the goal of adding support for more providers…

    Read more

  • Update – June 2025

    It’s been a while since our last update post and a lot has happened in the meantime. Let’s dive straight in to what we’ve been up to. E-commerce: Sell Images with picu We released picu e-commerce which lets you sell images right from your proofing galleries. This initial release includes the possibility to accept payments…

    Read more