pFind 6.3

Filemanagers, partitioning tools, etc.
Message
Author
User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#676 Post by zigbert »

don570 wrote:some suggestions:

Image
A great suggestion. Added to todo list

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#677 Post by zigbert »

Sailor Enceladus wrote:Some issues with searching by date have been reported here:
http://www.murga-linux.com/puppy/viewtopic.php?p=899955#899955
pFilesearch 2.2 should address date-searching-issues

tenochslb

#678 Post by tenochslb »

I love this software, it helps me a lot however I have noticed discrepancies in the search results within files. It appears to prefer incomplete words, preferably three letters plus a *

First, I created a "controlled environment", a directory containing 4 Files (xlsx, docx, txt, PDF) and started to search for the word juan:

Image

then juan* and nothing
Image

then, jua:
Image

now lets try, jua*:
Image
PFIND located 2 files containing the string jua

now lets check each file individually to see if that is accurate.
The PDF:
Image
yes it contains jua*

Lets see the xlsx:
Image
yes, correct.

Now, lets look at the files that according to PFIND do not contain the string jua*
the TXT first,
Image
correct there is no jua*

and finally the DOCX:
Image[/code][/b]
incorrect, there are jua* strings.

Hopefully this helps other users, and developers. It is a very cool piece of software.

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#679 Post by zigbert »

tenochslb
Thank you for your investigation. I will look into it...

Sailor Enceladus
Posts: 1543
Joined: Mon 22 Feb 2016, 19:43

#680 Post by Sailor Enceladus »

@tenochslb, it is possible that pdf, docx and xlsx use encryption. I use "Search text in file" a lot, but only for actual acsii files, sh files, html files, etc. that I know are plain text. I think, if you actually opened a docx file as plain text, it would look very ugly.
Attachments
Screenshot.png
(106.13 KiB) Downloaded 405 times

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#681 Post by don570 »

Bulldog finder http://murga-linux.com/puppy/viewtopic.php?t=78592
searches for text in a group of files differently than pfind.

First the files are found ---. for example the extension .txt

Then click the button for search for text inside.

__________________________________________

Sailor Enceladus
Posts: 1543
Joined: Mon 22 Feb 2016, 19:43

#682 Post by Sailor Enceladus »

I also found this, it's working for me in Slacko 6.3:
https://sourceforge.net/projects/docx2txt/files/docx2txt/v1.4/

You just type ./docx2txt.sh yourfile.docx and it converts docx to txt.

No more programs needed to read docx. Now I can read these "saved in unfortunate cryptic format" files in leafpad. :D

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#683 Post by don570 »

I use the perl script and pipe it into leafpad

Code: Select all

./docx2txt.pl yourfile.docx  | leafpad 

phat7
Posts: 179
Joined: Fri 05 Jun 2015, 08:54

#684 Post by phat7 »

How does this help to find text in docx file with pfind?

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#685 Post by don570 »

Nothing. But I thought that Zigbert should know that piping text into
leafpad is possible. For instance the list of files and their paths could be
piped into leafpad. I find that list valuable sometimes.

__________________________________________________

phat7
Posts: 179
Joined: Fri 05 Jun 2015, 08:54

#686 Post by phat7 »

don570 wrote:Nothing. But I thought that Zigbert should know that piping text into
leafpad is possible. For instance the list of files and their paths could be
piped into leafpad. I find that list valuable sometimes.
OK, didn't notice that you opened a different topic. Do you use that in Bulldog finder?

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#687 Post by don570 »

No because I just learned about leafpad abilities :lol:

but it is an interest and useful feature.
Doesn't work properly with arm processor though.

Foreign characters aren't translated properly during the piping.
____________________________________________

phat7
Posts: 179
Joined: Fri 05 Jun 2015, 08:54

#688 Post by phat7 »

don570 wrote:Foreign characters aren't translated properly during the piping.
What is a foreign character? I have no problems with Vietnamese characters.

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#689 Post by don570 »

What is a foreign character?
I mean accented characters like German and French.

When I was using barry K quirky arm distro

Code: Select all

./docx2txt.pl yourfile.docx  | leafpad
didn't pipe the accented characters so I made a temporary file instead
then opened with geany

Code: Select all

./docx2txt.pl yourfile.docx  >  temp.txt
geany  temp.txt
I don't think I had this problem in fatdogarm.
There's no problem in Intel 386 machines.

________________________________________

phat7
Posts: 179
Joined: Fri 05 Jun 2015, 08:54

#690 Post by phat7 »

don570 wrote: When I was using barry K quirky arm distro

Code: Select all

./docx2txt.pl yourfile.docx  | leafpad
didn't pipe the accented characters so I made a temporary file instead
then opened with geany

Code: Select all

./docx2txt.pl yourfile.docx  >  temp.txt
geany  temp.txt
I don't think I had this problem in fatdogarm.
There's no problem in Intel 386 machines.

________________________________________
Funny. Did you try leafpad's --codeset option?

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#691 Post by don570 »

I'll try that and see what happens.

________________________________

B.K. Johnson
Posts: 807
Joined: Mon 12 Oct 2009, 17:11

#692 Post by B.K. Johnson »

Hello Zigbert
I am using tahr-6.0.5 with pFind-6.1 OOTB.

When pFind is invoked via Menu>Filesystem, the searchbox is populated with "Search text", and changes to blank as the cursor gets there. The purpose I presume is to inform the user to enter the target text in the window. I think a combination of a static "Enter Search text" label below an empty window and code change will achieve the same objective but without the undesirable results described below.

For purposes of "copy/paste" text, I usually highlight the text and use the middle button of the mouse to paste. It is faster and uses fewer mouse clicks than right-click+Copy/Paste [Ctl-C/Ctl-V] which I use less often. If I hightlight a search target somewhere and invoke pFind, the highlighted text buffer is clobbered and replaced with "Search text" and the middle mouse button doesn't work. Would you please consider modifying the code to at least avoid the clobbering? You could retain the hiding "Search text" in the window and modify the code to avoid the clobbering or replace the hiding "Search text" with a static "Enter Search text" label as suggested above and code to not clobber the buffer. Your choice of course.

TIA
[color=blue]B.K. Johnson
tahrpup-6.0.5 PAE (upgraded from 6.0 =>6.0.2=>6.0.3=>6.0.5 via quickpet/PPM=Not installed); slacko-5.7 occasionally. Frugal install, pupsave file, multi OS flashdrive, FAT32 , SYSLINUX boot, CPU-Dual E2140, 4GB RAM[/color]

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#693 Post by zigbert »

B.K. Johnson
Thank you for the feedback.
I will consider your suggestion...

Sigmund

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#694 Post by disciple »

I had an idea you'd found a way to display it there but make it disappear when you click there... am I imagining it?
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#695 Post by don570 »

A suggestion:

When there is more that 500 results, then automatically save a text file
of the paths in /root or $HOME folder and warn user .

Going to home is easier than /tmp

________________________________________

Post Reply