Find button in EmelFM


Forum: Other Help Topics
Topic: Find button in EmelFM
started by: SaidinUnleashed

Posted by SaidinUnleashed on Mar. 12 2005,02:20
You may have noticed that the internal "FIND" function in EmelFM doesn't work in DSL.

I don't know why, but it really doesn't matter anyway.

It sucks anyway.

Here's how to get a "Find" in EmelFM with what DSL's got.

Step 1. open up a root Xterm and run "updatedb"

It may take a few minutes, depending on your system's speed.

You might add this to /opt/bootlocal.sh to run at every boot, because it takes lees time to update the database than to create it.

Step 2. Open up EmelFM.

Step 3. Click the "Configure" button in EmelFM.

If you can't find it, look harder.

Step 4. Click where it says "Buttons" in the column on the left.

Step 5. Click the "Add" button. Enter "Find" in the name box and "locate %{Enter the filename or partial path:}" in the command box.

Hit OK and use the arrow buttons to put it wherever you want it to be.

Hit OK on the config winow, and you have a nice new Find button, just begging to do your bidding.

Enjoy.

-J.P.

Posted by WoofyDugfock on Mar. 16 2005,13:50
Apologies Saidin, didn't see this post and in my crazed megalomania I posted a similar thing earlier today, except using 'find' instead of 'locate'.
< http://damnsmalllinux.org/cgi-bin....;t=5029 >

I gather that 'locate' will run faster but will only be as current as the last time updatedb was run, whereas 'find' will find a file as soon as it is on the system.

Also these are not the same: 'locate' finds everything with the argument pattern in the path, whereas 'find / -name' only returns filenames with the argument pattern in the basename (ie on the end).

EDIT: obviously the 'locate' method is much more powerful - it will return everything find -name does, plus it allows searches containing paths eg locate /mnt/hdb1/*.sh finds all bash scripts on hdb1.

Posted by adssse on Mar. 16 2005,15:58
thanks I was wondering about this the other day. I am new to all this so excuse my ignorance but how do I "add this to /opt/bootlocal.sh", and how much longer will this make the boot time?
Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.