Xfce Forum

Sub domains
 

You are not logged in.

#1 2016-05-16 12:54:27

JoergMeyer
Member
Registered: 2016-05-16
Posts: 1

Ristretto -- File selection

Hello,

in Ristretto sometimes I want to browse through all files in a folder. And sometimes I only want to browse through a selection, say *.jpg only or dsc03*.* or whatever filename-based selection.

It would really improve usability of Ristretto for me if there was a way to apply a filter pattern to the preview panel (on the left).

I am using Ristretto 0.8.0 on Xubunto 16.04.

Thanks and all the best,
Jörg

Offline

#2 2016-05-16 14:36:31

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Ristretto -- File selection

Hello and welcome.

It would really improve usability of Ristretto for me if there was a way to apply a filter pattern to the preview panel (on the left).

You can if you start Ristretto from the command line like this:

ristretto ~/Pictures/*.jpg

...or:

ristretto ~/Pictures/dsc03*

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2016-05-16 15:24:51

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Ristretto -- File selection

Or, if you want a graphical solution, create a wrapper function using yad and a script like:

#!/bin/bash

cd ~/Pictures
if ANS=$(yad --center --width=350 --height=110 --form --title="Ristretto Wrapper" --field=Path:DIR "$DIR" --field="Search pattern:"); then

    PATT=`echo $ANS | awk -F "|" '{print $1"/"$2}'`

    echo "ANS  = $ANS"
    echo "PATT = $PATT"

    exec ristretto $PATT
fi

You can run the script manually, add it to a keyboard shortcut, or create a .desktop file for it so it shows up in your menu.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.012 seconds, 7 queries executed - Memory usage: 524.5 KiB (Peak: 531.05 KiB) ]