SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2010-01-24 05:55:23

nabilalk
#! Die Hard
From: U.S.A.
Registered: 2009-01-28
Posts: 531

[SOLVED] Add catfish search to Thunar custom actions

I discovered catfish search through this post and ran into a problem when trying to add a catfish search to the Thunar custom actions.

For the custom action command, I tried:

catfish --fileman=thunar --path=

and

catfish

Both commands did in fact execute a search, however, the problem is that the default search folder is set to the catfish folder instead of the desired File System. I would like to set it to search File System by default including hidden files/folders. Any ideas how to modify the command to provide for the desired settings? Notice how the Folder is set to "catfish"


Thanks.

Last edited by nabilalk (2010-01-24 10:41:37)


#! 10 “Statler” r20110207 32-bit & Openbox

Offline

Be excellent to each other!

#2 2010-01-24 07:38:44

ultralytenment
Member
From: Harpers Ferry, West Virginia
Registered: 2010-01-22
Posts: 19

Re: [SOLVED] Add catfish search to Thunar custom actions

The proper search command is: catfish --fileman=thunar --path=/

That searches the file system. You can modify the command further by altering the path. For instance, to search your home directory, try catfish --fileman=thunar --path=/home/yourhome/. Or to search /usr/bin/, catfish --fileman=thunar --path=/usr/bin/. The only reason to add a path apart from "/" would be to limit your search results.

Also, to include hidden files, add --hidden to the command: catfish --fileman=thunar --hidden --path=/. Hidden folders are provided by default.

Hope that helps smile

Offline

#3 2010-01-24 07:43:52

nabilalk
#! Die Hard
From: U.S.A.
Registered: 2009-01-28
Posts: 531

Re: [SOLVED] Add catfish search to Thunar custom actions

ultralytenment wrote:

The proper search command is: catfish --fileman=thunar --path=/

That searches the file system. You can modify the command further by altering the path. For instance, to search your home directory, try catfish --fileman=thunar --path=/home/yourhome/. Or to search /usr/bin/, catfish --fileman=thunar --path=/usr/bin/. The only reason to add a path apart from "/" would be to limit your search results.

Also, to include hidden files, add --hidden to the command: catfish --fileman=thunar --hidden --path=/. Hidden folders are provided by default.

Hope that helps smile

Thanks,  that fixed everything. Question, what's the difference between find and locate in the Search method?


#! 10 “Statler” r20110207 32-bit & Openbox

Offline

#4 2010-01-24 07:52:58

ultralytenment
Member
From: Harpers Ferry, West Virginia
Registered: 2010-01-22
Posts: 19

Re: [SOLVED] Add catfish search to Thunar custom actions

I just noticed that you wanted this to be a custom action in thunar, not from the command line or alt-f2. To make this work in thunar, do this:

1. Under Edit Action --> Basic, add the following.
     Name: Search
     Description: Find files or folders
     Command: catfish --fileman=thunar --path=%f (or catfish --fileman=thunar --hidden --path=%f if you wish to search hidden files by default)
2. Under Edit Action --> Appearance Conditions
    File Pattern:*
    Appears if selection contains: Directories and Text Files
3. Add a custom icon if you wish.

That's it. It will open catfish and by default search the folder that you are currently in. Note, that using the command above in gmrun and adding a keyword will open catfish in the directory specified and run the search automatically. A lot faster than searching from within thunar.

Offline

#5 2010-01-24 08:06:23

nabilalk
#! Die Hard
From: U.S.A.
Registered: 2009-01-28
Posts: 531

Re: [SOLVED] Add catfish search to Thunar custom actions

ultralytenment wrote:

I just noticed that you wanted this to be a custom action in thunar, not from the command line or alt-f2. To make this work in thunar, do this:

1. Under Edit Action --> Basic, add the following.
     Name: Search
     Description: Find files or folders
     Command: catfish --fileman=thunar --path=%f (or catfish --fileman=thunar --hidden --path=%f if you wish to search hidden files by default)
2. Under Edit Action --> Appearance Conditions
    File Pattern:*
    Appears if selection contains: Directories and Text Files
3. Add a custom icon if you wish.

That's it. It will open catfish and by default search the folder that you are currently in. Note, that using the command above in gmrun and adding a keyword will open catfish in the directory specified and run the search automatically. A lot faster than searching from within thunar.

Thanks. I also added a keyboard shortcut to openbox config>rc.xml

Any thoughts on the "locate" versus "find" search methods. What's the difference between the two?


#! 10 “Statler” r20110207 32-bit & Openbox

Offline

#6 2010-01-24 08:27:23

ultralytenment
Member
From: Harpers Ferry, West Virginia
Registered: 2010-01-22
Posts: 19

Re: [SOLVED] Add catfish search to Thunar custom actions

This is interesting in terms of examining the difference between find and locate: http://www.issociate.de/board/post/1410 … _Find.html

Also, I just wrote a shortcut for gmrun, and in my humble opinion, this is a far, far better way to search. Just edit ~/.gmrunrc and add this:

URL_s = catfish --hidden --path=/ '%s'
URL_sh = catfish --hidden --path=/home/yourhome/ '%s'

Then, to invoke the search, use alt-f2 (to open gmrun), then type s:yoursearchterm to search for yoursearchterm in / or sh:anothersearchterm to search your home directory for anothersearchterm. You can alter the URLs and paths to suit your needs. For me, s ans sh was shorter than using search or searchhome. Enjoy!

Offline

#7 2010-01-24 08:32:54

nabilalk
#! Die Hard
From: U.S.A.
Registered: 2009-01-28
Posts: 531

Re: [SOLVED] Add catfish search to Thunar custom actions

ultralytenment wrote:

This is interesting in terms of examining the difference between find and locate: http://www.issociate.de/board/post/1410 … _Find.html

Also, I just wrote a shortcut for gmrun, and in my humble opinion, this is a far, far better way to search. Just edit ~/.gmrunrc and add this:

URL_s = catfish --hidden --path=/ '%s'
URL_sh = catfish --hidden --path=/home/yourhome/ '%s'

Then, to invoke the search, use alt-f2 (to open gmrun), then type s:yoursearchterm to search for yoursearchterm in / or sh:anothersearchterm to search your home directory for anothersearchterm. You can alter the URLs and paths to suit your needs. For me, s ans sh was shorter than using search or searchhome. Enjoy!

Far better way to search, thanks.


#! 10 “Statler” r20110207 32-bit & Openbox

Offline

#8 2010-01-24 09:11:08

ultralytenment
Member
From: Harpers Ferry, West Virginia
Registered: 2010-01-22
Posts: 19

Re: [SOLVED] Add catfish search to Thunar custom actions

nabilalk wrote:
ultralytenment wrote:

This is interesting in terms of examining the difference between find and locate: http://www.issociate.de/board/post/1410 … _Find.html

Also, I just wrote a shortcut for gmrun, and in my humble opinion, this is a far, far better way to search. Just edit ~/.gmrunrc and add this:

URL_s = catfish --hidden --path=/ '%s'
URL_sh = catfish --hidden --path=/home/yourhome/ '%s'

Then, to invoke the search, use alt-f2 (to open gmrun), then type s:yoursearchterm to search for yoursearchterm in / or sh:anothersearchterm to search your home directory for anothersearchterm. You can alter the URLs and paths to suit your needs. For me, s ans sh was shorter than using search or searchhome. Enjoy!

Far better way to search, thanks.

No problem. I'm actually glad that I found this topic, because honestly, I never used anything other than the thunar custom action in the past. After I started thinking about the problem, I remembered that I've made useful shortcuts for gmrun previously, and began to wonder if it would be possible to incorporate a search into the launcher. What do you know, it worked!

Anyway, I added this to the wiki just now. Not much different from what I've posted, but it's not in a conversation format, and it's also accessible without having to sift through a number of posts. Here's the link: http://crunchbanglinux.org/wiki/howto/s … andcatfish

Again, glad I could help smile

Offline

#9 2010-01-24 09:13:49

nabilalk
#! Die Hard
From: U.S.A.
Registered: 2009-01-28
Posts: 531

Re: [SOLVED] Add catfish search to Thunar custom actions

ultralytenment wrote:

No problem. I'm actually glad that I found this topic, because honestly, I never used anything other than the thunar custom action in the past. After I started thinking about the problem, I remembered that I've made useful shortcuts for gmrun previously, and began to wonder if it would be possible to incorporate a search into the launcher. What do you know, it worked!

Anyway, I added this to the wiki just now. Not much different from what I've posted, but it's not in a conversation format, and it's also accessible without having to sift through a number of posts. Here's the link: http://crunchbanglinux.org/wiki/howto/s … andcatfish

Again, glad I could help smile

I'm happy to hear that my question prompted you to find a benefit for yourself ;-) Since you like to dabble in gmrunrc tweaks, have a look at this post if you get the chance.

Also, you might consider adding part of this thread to the Tips & Tricks section of the forum.

Last edited by nabilalk (2010-01-24 09:17:00)


#! 10 “Statler” r20110207 32-bit & Openbox

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo