Slide show: Display filename without specific chars

Ideas for improvements and requests for new features in XnView MP

Moderators: helmut, XnTriq, xnview

ML_1
Posts: 4
Joined: Mon Sep 28, 2020 4:52 pm

Slide show: Display filename without specific chars

Post by ML_1 »

Ich hätte da einen Vorschlag bzw. Wunsch umgesetzt.

Wenn bei der Diashow der Dateiname ohne Erweiterung eingesetzt wird, ist es möglich bestimmte Zeichen auszublenden ?
Wenn ich folgende Dateinamen habe:

01 Beschriftung 2022 xxx
02 Beschriftung 2022 xxx
03 Beschriftung 2022 xxx

so sollte die Beschriftung so aussehen:

Beschriftung 2022 xxx
Beschriftung 2022 xxx
Beschriftung 2022 xxx

Viele Grüße

Manfred
-----------------------------
I would have implemented a suggestion or wish.

If the file name is used without an extension in the slide show, is it possible to hide certain characters?
If I have the following filenames:

01 Beschriftung 2022 xxx
02 Beschriftung 2022 xxx
03 Beschriftung 2022 xxx

so the caption should look like this:

Beschriftung 2022 xxx
Beschriftung 2022 xxx
Beschriftung 2022 xxx

Many greetings

Manfred
Last edited by ML_1 on Wed May 18, 2022 9:16 am, edited 1 time in total.
User avatar
helmut
Moderator
Posts: 8499
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: Slide show: Display filename without specific chars

Post by helmut »

Thank you for your problem report in English and German, Manfred. Currently, filename in info is identical to the actual filename. And I much doubt that there are plans to change this. What you might do is renaming your files and remove the number prefix 01, 02, .... For renaming you can use "{Filename}" as name template and in section replace you enter "^[0-9]* " (without double quotes, please note the space char at the end) and check "regular expression". Field "With" remains empty.
Sure enough this is a workaround and I'm not sure whether renaming your files for viewing in a slide show is practical at all.
User avatar
xnview
Author of XnView
Posts: 37754
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Slide show: Display filename without specific chars

Post by xnview »

do you have tried place holder part like

Code: Select all

<Filename [3-]>
Pierre.
User avatar
helmut
Moderator
Posts: 8499
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: Slide show: Display filename without specific chars

Post by helmut »

xnview wrote: Mon May 23, 2022 12:20 pm do you have tried place holder part like

Code: Select all

<Filename [3-]>
Wow, I expected these placeholder parts to work in batch rename, only. But in fact these placeholders parts also work when using these in Tools > Settings | View | Info, textbox "Information displayed".
User avatar
XnTriq
Moderator & Librarian
Posts: 6022
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Slide show: Display filename without specific chars

Post by XnTriq »

xnview wrote: Mon May 23, 2022 12:20 pm do you have tried place holder part like

Code: Select all

<Filename [3-]>
Added to XnView MP - User Guide
ML_1
Posts: 4
Joined: Mon Sep 28, 2020 4:52 pm

Re: Slide show: Display filename without specific chars

Post by ML_1 »

Hello,

that works great, thanks!

regards

Manfred