How do I search ROX file manager for files by name?
Posted: Sat 09 May 2020, 23:09
Pressing ctrl+f doesn't seem to work...
READ-ONLY Archive
https://oldforum.puppylinux.com/
Semme wrote:Hello Valerio. Instead of mouse clks you can just as well create a key-combo shortcut.
Hey guys, thanks for the answers. Those are good methods and will surely come in handy. Anyway, I wanted to drag an icon to the desktop. pFind doesn't allow that. Sure you can access to the directory where the file is but you have to search it among the other files in the same directory! Ctrl+f in Rox manager sort of does that. When searching a file it opens the directory where the file is and highlights it for a second. Well the thing is that you have to type the exact name of the file between apostrophes so it's a bit cumbersomebigpup wrote:Use the Pfind program to do searches.
menu->Filesystem->Pfind file finder
Usually select to search system files is only option needed.
When it finds a file or directory you are looking for.
Right click on it in the listing.
Select show location.
It will open a Rox window for that location.
All kinds of other options on that right click menu.
Also. more search options under advanced.
What I like best.
Put in just a word or group of letters to search for.
Results are anything that has that in it's name.
After using Puppy for so many years and learning how to do things in Puppy.I was wondering why puppy linux is so counter-intuitive
Not sure what this means.....Well the thing is that you have to type the exact name of the file between apostrophes so it's a bit cumbersome
Normally it jumps directly to the file, but sometime it jumps only to the directory. An old ROX-Filer bug. Apparently ROX-Filer can't scan the directory fast enough. If you repeat the action it usually will work as expected.Valerio wrote:pFind doesn't allow that. Sure you can access to the directory where the file is but you have to search it among the other files in the same directory!
He refers to ROX-Filer's Find, where you indeed need single quotes, but his claim that the "exact name" is needed is wrong. It's all explained in the help, accessible right next to the input field. The examples given also explain how the Find dialog can search for much more than just file names.vtpup wrote:Not sure what this means.....Well the thing is that you have to type the exact name of the file between apostrophes so it's a bit cumbersome
I don't have to type an exact name to do a search.
Code: Select all
[~]>which tree
/usr/bin/tree
Code: Select all
[~]>whereis find
find: /usr/bin/find /usr/share/man/mann/find.n.gz
Code: Select all
[~]>tree -fish | grep jpg | grep my-do
[131K] ./my-documents/Captures/mtpaint-font-selector.jpg
[ 29K] ./my-documents/Captures/strange-noises.jpg
Code: Select all
man which
man whereis
man tree
man grep
man more
man man
Code: Select all
grep -E jpg$
Sure, because that's what you ask for. If you want to match it at any place, type '*xxx*'. See explanation by musher0.Valerio wrote:'xxx*' works only if the part of the name of the file you type (xxx) matches the beginning of the file's name.
Are you talking to me? It works but you misinterpreted the help explanation: "IsReg system(grep -q fred "%") (contains the word 'fred')" . It certainly should be clearer. It means that you can search for (usually text files) that contain the string 'fred' in their file content, but not for file names that contain 'fred'.Valerio wrote:In the image's example (https://postimg.cc/K3Pt7cmd), however, it does not work. Some other times it does. Do you know the reason why? Thanks
That's wrong for the same reasons. Needs no -E but still needs a file source. Even then would search for files containing lines ending with 'jpg', irrespective of their file names.musher0 wrote:If you want to find the "jpg" only at the end of the file name, you'd type:Code: Select all
grep -E jpg$
He would.musher0 wrote:The -q parameter in your formula above means "silent" in Linux grep, so I
doubt you would see any results.
Code: Select all
[~]>tree -fish | grep -E jpg$ | grep my-doc
[131K] ./my-documents/Captures/mtpaint-font-selector.jpg
[ 29K] ./my-documents/Captures/strange-noises.jpg
[~]>tree -fish | grep -qE jpg$ | grep my-doc
Thanks, that did the trick!MochiMoppel wrote:If you want to match it at any place, type '*xxx*'. See explanation by musher0.
That's why!MochiMoppel wrote:grep searches for file content, not for file names.