Xfce Forum

Sub domains
 

You are not logged in.

#1 2018-12-22 11:21:44

FateRover
Member
Registered: 2018-08-26
Posts: 30

is there any way to hilight the file which selected by "open in fold"

For example ,if u download a zip with filefox,and select the file "open in folder"  ,thunar will open but wont hilight the zip, i shold scan all files to find the zip

Last edited by FateRover (2018-12-22 11:22:35)

Offline

#2 2018-12-22 12:13:40

Laurentius
Member
Registered: 2016-09-04
Posts: 38

Re: is there any way to hilight the file which selected by "open in fold"

Hello, FateRover.

I did same question some time ago: https://forum.xfce.org/viewtopic.php?id=12421

It seems there is no way with thunar.
Nautilus does it, as I could try it on a gnome desktop, at least with firefox, but not thunar, AFAIK.

What helps me with this issue is to use the detailed list view and sort files by the "Date modified" column. That way the last downloaded file would be placed first (or last) in the list, so it is easier to find it.

Regards.

Offline

#3 2018-12-22 13:24:21

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 5,049

Re: is there any way to hilight the file which selected by "open in fold"

In addition to Laurentius' reply, here is a bug report and here is another thread about this with a bash script workaround.

I've re-worked this script to work more seamlessly with all types of files. To test it, create the file /usr/local/bin/thunar with the following content:

#!/bin/bash

if [ ! "$1" = "--select" ]; then
        /usr/bin/thunar "$@"
else
        if [ ! -z "$2" ]; then
                BASE=$(basename "$2")
                DIR=$(dirname "$2")
                /usr/bin/thunar "$DIR" &
                sleep 0.5
                xdotool - <<EOF
key ctrl+f
type "$BASE"
EOF
                xdotool key Escape
        else 
                /usr/bin/thunar 
        fi
fi

...and make the file executable.

This is a wrapper script to thunar and will only process an incoming request in the format of thunar --select FILE where FILE is the full path to a filename. All other parameter calls will simply be passed on to the regular thunar.

If you call thunar with "--select FILE" it will open thunar in the directory location of the file and highlight the file using xdotool.

Offline

#4 2018-12-22 15:12:50

FateRover
Member
Registered: 2018-08-26
Posts: 30

Re: is there any way to hilight the file which selected by "open in fold"

Try the script,works but not convinient for  should add extra parameter ,I do not often use cl and someother soft can not custom "open in folder " with parameter ,qbittorent ,as example.

I install nautilus,thats works,but still wait the new feature in  thunar

Offline

#5 2019-01-04 10:39:26

FateRover
Member
Registered: 2018-08-26
Posts: 30

Re: is there any way to hilight the file which selected by "open in fold"

https://bugzilla.xfce.org/show_bug.cgi?id=12414   
JUST wait the new release or use the .py file  in the link

Last edited by FateRover (2019-01-04 11:11:47)

Offline

#6 2019-01-06 21:53:25

Laurentius
Member
Registered: 2016-09-04
Posts: 38

Re: is there any way to hilight the file which selected by "open in fold"

Good.
Sorry, which is the .py file? I couldn't find it.

Offline

Board footer

Powered by FluxBB