Page 21 of 38

Posted: Thu 08 Mar 2012, 01:40
by don570
Is there a version of Pfind for Thunar file manager?

The reason I ask is Saluki uses Thunar.

___________________________________________

Posted: Thu 08 Mar 2012, 04:04
by disciple
You can configure it to use thunar instead of rox in the Pfind settings (or by editing /usr/local/pfind/pfindrc), can't you?

Posted: Thu 08 Mar 2012, 16:58
by zigbert
disciple wrote:can't you?
Yes you can

Image

Posted: Sun 18 Mar 2012, 11:02
by oliverjames
Running Pfind in XFCE/Saluki

@Zigbert, Yes you can, and I've tried that but to no avail. Tried also changing the commands on the "commands" tab, rox /tmp/searchresult/ changed to thunar /tmp/searchresult/, but Pfind will not open the location of a search result.

Can anyone help identify a fix for this?

Maybe a workaround would be to install Rox.

Cheers

Oliverjames

Posted: Sun 18 Mar 2012, 12:34
by Geoffrey
oliverjames wrote:Running Pfind in XFCE/Saluki

@Zigbert, Yes you can, and I've tried that but to no avail. Tried also changing the commands on the "commands" tab, rox /tmp/searchresult/ changed to thunar /tmp/searchresult/, but Pfind will not open the location of a search result.

Can anyone help identify a fix for this?

Maybe a workaround would be to install Rox.

Cheers

Oliverjames
Saluki has pfind and pfilesearch already installed as standard, pfind is in the main menu named Find... and pfilesearch is in the right click menu of Thunar, it searchs the the directory you are in when it is run, so there is no need to install it.

Posted: Sun 18 Mar 2012, 18:23
by oliverjames
Yes, but it doesn't give the functionality I seek.

Pfilesearch brings up a list of file locations. However if one wishes to open the location it is necessary to execute a lot of keystrokes.

With Pfind in a Puppy distro using Rox one can search, and then highlight a result and select "open location". Very slick and fast.

This is what I wish to replicate in Saluki. Hence my question about the "commands" tab. see attachment

Furthermore, when I try to edit the Pfind > configure > commands > View in FileManager setting I cannot write Thunar with a capital T which maybe the reason why it cannot launch. Changing the case of an executable command is always an error.

Oliverjames.

Posted: Sun 18 Mar 2012, 19:09
by zigbert
oliverjames
Do you know the command to open thunar in a specific directory.
is thunar /tmp valid from terminal?

Sigmund

Posted: Sun 18 Mar 2012, 19:16
by zigbert
I see....

See line 9 in /usr/local/pfind/func_showlocation:

Code: Select all

exec $FILEMANAGER -s "$FILE" 2> /tmp/pfind-error$PROGPID
Rox requires the -s switch to show location of file. Without -s MIME kicks in... What switch does thunar use?


Sigmund

Posted: Sun 18 Mar 2012, 19:19
by zigbert
If Pfind is default in Saluki, the config should be edited as Pburn (and Rox) isn't a part of the iso.


Sigmund

Posted: Sun 18 Mar 2012, 20:06
by oliverjames
Do you know the command to open thunar in a specific directory.
is thunar /tmp valid from terminal?
I'm not quite sure what you mean by the first sentence.
thunar /tmp is not valid but Thunar /tmp is.
Rox requires the -s switch to show location of file. Without -s MIME kicks in... What switch does thunar use?
I'm not sure of the Thunar switch, looking now.

It would nice to have Pburn as standard in the iso, although Pfind is included in Saluki 013. I find both to be very efficient; XFburnn seems to work OK, although I note that one cannot select slow burn speeds.

Posted: Mon 19 Mar 2012, 01:25
by Geoffrey
zigbert wrote:I see....

See line 9 in /usr/local/pfind/func_showlocation:

Code: Select all

exec $FILEMANAGER -s "$FILE" 2> /tmp/pfind-error$PROGPID
Rox requires the -s switch to show location of file. Without -s MIME kicks in... What switch does thunar use?


Sigmund
Hi Sigmund,

I had the same sort of a problem with trios youtube downloader, Thunar doesn't seem to have a switch that will strip the file name/target from the path,
I was just seeing what would work to fix this, I tried this,

Code: Select all

#!/bin/sh
##Thunar open location
#
LOC="${@%/*}/"
exec Thunar "$LOC"
I called it thunar and placed it in /usr/bin , and to see if it worked placed it in your script like so

Code: Select all

exec thunar "$FILE" 2> /tmp/pfind-error$PROGPID
this appears to work at opening the file location in Thunar, I just don't know how to include it without breaking anything.

Edit: this works also, though I don't have rox installed on Saluki to see if rox has a problem with it, but if not then it should be compatible with all file-managers and do away with the -s.

Just a thought , I installed rox and it works with it also so it looks as if it will work with all file managers :wink:

@oliverjames,

Try the code below and see if it works the way you want it too, if it does cool, to easy 8)


Code: Select all

exec $FILEMANAGER "${FILE%/*}/" 2> /tmp/pfind-error$PROGPID
I'm still testing this, Thunar is having a problem opening location's on loaded sfs file's, rox seems fine even with the changed code :?

Posted: Mon 19 Mar 2012, 05:32
by disciple
Just a thought , I installed rox and it works with it also so it looks as if it will work with all file managers
The point with rox -s is that it is supposed to actually show you the file, not just open the directory containing it. The difference is particularly significant if a directory has a lot of files in it.

Posted: Mon 19 Mar 2012, 06:57
by Geoffrey
disciple wrote:
Just a thought , I installed rox and it works with it also so it looks as if it will work with all file managers
The point with rox -s is that it is supposed to actually show you the file, not just open the directory containing it. The difference is particularly significant if a directory has a lot of files in it.
I now see, so it won't be fully compatible with Thunar, I guess rox will have to be used then, pitty, I had to see if it would work though, oh well, food for thought.

Saluki needs it own apps, sometimes trying to add other Puppy apps just to keep it looking familiar doesn't work, someone with a bit more knowledge may get Pfind working with Thunar. :)

Posted: Mon 19 Mar 2012, 07:03
by disciple
There's no reason you can't use another filer as you suggested if it doesn't have an equivalent of `rox -s` - it just won't be quite as good ;)

Are you sure Thunar doesn't have a switch like that? I seemed to think that it did...

Posted: Mon 19 Mar 2012, 08:33
by Geoffrey
disciple wrote:There's no reason you can't use another filer as you suggested if it doesn't have an equivalent of `rox -s` - it just won't be quite as good ;)

Are you sure Thunar doesn't have a switch like that? I seemed to think that it did...
Not that I'm aware of, all of Thunars options are in the GUI such as custom commands on the right click menu, that's where pfilesearch as been added.

Code: Select all

Application Options:
  -B, --bulk-rename        Open the bulk rename dialog
  --daemon                 Run in daemon mode
  -q, --quit               Quit a running Thunar instance
  -V, --version            Print version information and exit
  --display=DISPLAY        X display to use

Posted: Mon 19 Mar 2012, 16:20
by zigbert
I have added this

Code: Select all

	if [ $FILEMANAGER = rox ]; then
		exec rox -s "$FILE" 2> /tmp/pfind-error$PROGPID
	else
		exec $FILEMANAGER "${FILE%/*}/" 2> /tmp/pfind-error$PROGPID
	fi
Thank you guys!!!
Sigmund

Posted: Mon 19 Mar 2012, 16:31
by zigbert
Version 4.25
See main post

Changelog
- Added Thunar as optional filemanager (thanks to oliverjames)
- Bugfix: 'Show location' didn't work for other filemanager than rox. (thansk to Geoffrey)

Posted: Fri 13 Apr 2012, 00:19
by don570
I noticed this bug in several puppies

Here's how to reproduce it:

Right click on folder and choose 'Search inside'.

Make a search inside folder (It can be successful or not)

Now do a search in system files for a file that should be there
like 'mtpaint'

It will give a false report.

Close and relaunch pfind and it will find mtpaint.



__________________________________________

Posted: Sat 14 Apr 2012, 04:32
by zigbert
don570
Yes, I can reproduce it. Added to todo-list.


Thank you
Sigmund

Posted: Thu 31 May 2012, 16:55
by zigbert
Here comes a (working) prototype of next generation of pFind.

It takes advantage of the latest gtkdialog and svg. Be aware of the right-click-menu and the support of multi-selection. The gui is meant to be even simpler than any previous releases.

I am requesting feedback of how you as a user would like it to work.
Please take a look, and tell us your thoughts.

Image

Note!
I have got some bugreports that requires pFilesearch to be updated. This will happen.... For now, let's concentrate on the gui.


Thank you
Sigmund