Is it possible to display file content in an addition column?

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
TheOtherLad
Posts: 13
Joined: Fri Mar 05, 2021 9:48 pm

Is it possible to display file content in an addition column?

Post by TheOtherLad »

Hello,

Is it possible to display file content in an additional column?

I have list of files that contains phone numbers and I want to have their content displayed on Everything without having to open the file on Notepad++, like this:

Image

If this feature isn't available I hope you add it to your suggestions.

Thank you!
vsub
Posts: 474
Joined: Sat Nov 12, 2011 11:51 am

Re: Is it possible to display file content in an addition column?

Post by vsub »

The preview sidebar can do that
View=>Preview
TheOtherLad
Posts: 13
Joined: Fri Mar 05, 2021 9:48 pm

Re: Is it possible to display file content in an addition column?

Post by TheOtherLad »

Alright, that will do.

1. Is it possible to somehow right click on the file >> context menu >> copy file content to clipboard?

2. Is it possible to save the zoom level in the preview panel? the font is too small and can be fixed by zooming using Ctrl+scroll however it resets itself back each time
vsub
Posts: 474
Joined: Sat Nov 12, 2011 11:51 am

Re: Is it possible to display file content in an addition column?

Post by vsub »

1.Mark the text and press Ctrl+C(I may be wrong but I think I was able to see the default context menu before...long time ago but I may be wrong)
2.Hold Ctrl and scroll the mouse wheel(I don't know if there is a way to remember the zoom level)
TheOtherLad
Posts: 13
Joined: Fri Mar 05, 2021 9:48 pm

Re: Is it possible to display file content in an addition column?

Post by TheOtherLad »

Thank you for your input.

I already know I can copy it by selecting the text then Ctrl + C I just thought it'd be cool to right click on the file and copy its content from context menu, saving few clicks lol

for the second one, I haven't found a way just yet

I'll wait for more replies
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Is it possible to display file content in an addition column?

Post by NotNull »

2. Is it possible to save the zoom level in the preview panel? the font is too small and can be fixed by zooming using Ctrl+scroll however it resets itself back each time
The system is responsible for showing the preview.
If this is a plain text file, like .txt, change the font size in Notepad ( Menu:Edit => Font ). That same fontsize will be used for previews.

TheOtherLad wrote: Sun Dec 17, 2023 4:06 pm 1. Is it possible to somehow right click on the file >> context menu >> copy file content to clipboard?
Not without using external tools. Alternative:
Add the following to your search query:
regex:dotall:fromdisk:content:(.*) addcol:A A-label:="Content" A:=regmatch1:

So your search would look something like

Code: Select all

"c:\phone numbers\"   ext:txt   size:<10kb   regex:dotall:fromdisk:content:(.*)   addcol:A   A-label:="Content"   A:=regmatch1:
An extra column will be shown, named Content.
Hovering the mouse above a Content entry -- for example 1548 -- will show the entire file (as far as it fits on your screen; no scroll option)
Right-clicking this entry will give a context menu entry Copy Column A. Selecting this will put the content on the clipboard.


This search can be saved as a Filter or Bookmark to make it easy accessible without re-typing the entire search query.


2023-12-20 00_08_59-c_ ext_m3u   regex_dotall_fromdisk_content_(._)   addcol_A   A-label__Content_  .png
2023-12-20 00_08_59-c_ ext_m3u regex_dotall_fromdisk_content_(._) addcol_A A-label__Content_ .png (46.7 KiB) Viewed 4092 times
TheOtherLad
Posts: 13
Joined: Fri Mar 05, 2021 9:48 pm

Re: Is it possible to display file content in an addition column?

Post by TheOtherLad »

Thank you so much for the detailed answer

I love the idea of the alternative way but unfortunately I'm not able to get it to work, I tried pasting
regex:dotall:fromdisk:content:(.*) addcol:A A-label:="Content" A:=regmatch1:
But it shows nothing, 0 objects and no column is added

Is there something prerequisite to use that or am I missing something?
void
Developer
Posts: 16773
Joined: Fri Oct 16, 2009 11:31 pm

Re: Is it possible to display file content in an addition column?

Post by void »

What version of Everything are you using? (Help -> About)

Latest version
hamid56
Posts: 26
Joined: Sun Jul 20, 2014 9:38 am

Re: Is it possible to display file content in an addition column?

Post by hamid56 »

dear notnull
as complementary hint we should combine your command with content-max-size:20 or content-max-size:100
for controlling usage of ram.because without this limit everything eat all of your ram.
"c:\phone numbers" ext:txt content-max-size:20 regex:dotall:fromdisk:content:(.*) addcol:A A-label:="Content" A:=regmatch1
TheOtherLad
Posts: 13
Joined: Fri Mar 05, 2021 9:48 pm

Re: Is it possible to display file content in an addition column?

Post by TheOtherLad »

1.4.1.1024
should I move to alpha build for it to work?

Edit: I've moved to the alpha build and everything is working as should.

I have one more question and suggestion:
q. is it possible to hide certain column or display only some using a search query? (let's say I want only to display the column Name and Content)
suggestion: the ability to change the text in the context menu using search query, so instead of "Copy Column A" maybe something like "context-label: File Context" which would give us "Copy File Content"
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Is it possible to display file content in an addition column?

Post by NotNull »

q
Next to the add-column: and its alias add-columns: search function there are also columns: and remove-columns: search functions.

Filters and bookmarks also have options to configure the columns to be shown.

suggestion
Configurable context menu items is on the To-Do list.



add-column:
remove-columns:
columns:
TheOtherLad
Posts: 13
Joined: Fri Mar 05, 2021 9:48 pm

Re: Is it possible to display file content in an addition column?

Post by TheOtherLad »

Alright, Thanks!
PeterPan8
Posts: 23
Joined: Mon May 01, 2023 7:00 pm

Re: Is it possible to display file content in an addition column?

Post by PeterPan8 »

I am using the latest version 1.5.0.1363a

I have enabled the "Index file content" option for specific folders.
I have enabled the View-Preview function, to be able to see the document.

The content search is working fine, and I can see the preview of the file. However, I would like to go directly to the search string as identified in the search field? E.g., content:"This is a test" which is sometimes located on page 85, but the preview always shows page 1.

The problem is some of my documents have more than 100 pages, and the search-preview function only shows me the first page. I would like to see (preview) the searched string directly where it is in my document, maybe by highlighting it in yellow (or other colours.)

How can I do that... if possible?

Happy New Year... and thanks for one of the most useful app on the Web! :D
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Is it possible to display file content in an addition column?

Post by NotNull »

The system is responsible for showing these previews.
You will need a third party preview handler for extra functionality.

For plain text files, take a look at this discussion


A custom textfile preview handler that supports searching and highlighting is on the to-do list for Everything.
PeterPan8
Posts: 23
Joined: Mon May 01, 2023 7:00 pm

Re: Is it possible to display file content in an addition column?

Post by PeterPan8 »

Thanks NotNull, I guess I'll have to wait for the next update! :geek:
horst.epp
Posts: 1448
Joined: Fri Apr 04, 2014 3:24 pm

Re: Is it possible to display file content in an addition column?

Post by horst.epp »

I solve this problem by using Total Commander as file manager.
It uses Everything for fast searching and has preview plugins for almost any format.
In this preview plugins, I can search for strings and the preview will be scrolled to the found places.
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Is it possible to display file content in an addition column?

Post by NotNull »

Are those previewers or viewers? (big difference, technically speaking. Mostly about security and system stability)
PeterPan8
Posts: 23
Joined: Mon May 01, 2023 7:00 pm

Re: Is it possible to display file content in an addition column?

Post by PeterPan8 »

That's interesting! I'll take a look, yet I prefer something else than Total Commander, as it was a bit buggy the last I used it (some years ago).

Though I still hope Everything will include it in their next release.
horst.epp
Posts: 1448
Joined: Fri Apr 04, 2014 3:24 pm

Re: Is it possible to display file content in an addition column?

Post by horst.epp »

NotNull wrote: Thu Dec 28, 2023 5:05 pm Are those previewers or viewers? (big difference, technically speaking. Mostly about security and system stability)
I don't see any difference in security or stability, all is code which can be good or bad.
The TC plugins are previewers and can be used in a TC preview window or invoked as separate Viewer windows.
TC can also use all OS available previewers as Everything, but the TC plugins are much better in any aspect.
For example, there is no problem to preview doc/docx formats without any Office installation.
Everything can't preview files in any such format, independent of any installed 3rd party office tools
because unfortunately, none of them delivers Windows preview modules.
PeterPan8
Posts: 23
Joined: Mon May 01, 2023 7:00 pm

Re: Is it possible to display file content in an addition column?

Post by PeterPan8 »

I don't see the Viewer for doc, docx, or others in Total Commander. The closest one seems to be OfficeView 1.1.

Is that the one you are using?
If not, what else?
PeterPan8
Posts: 23
Joined: Mon May 01, 2023 7:00 pm

Re: Is it possible to display file content in an addition column?

Post by PeterPan8 »

First, I installed the 64-bit version of TotalCommander, and found out the plugin can only work with 32-bit apps. I uninstalled TC 64-bit and installed TC 32-bit. I then downloaded the "office.wlx" plugin, restarted TC. And tried it on a basic Word file.

I could only see hex codes, no preview. Then, went to the readme.txt, which led me to office.ini file.

The first line reads:
[converters]
0=doc,D0CF11E0A1B11AE1,mswrd832.cnv
...

First, I don't have the mswrd832.cnv file on my system, and don't know where to find it.
Then, the extension "0=doc" is for older Word 32-bit version with *.doc extension. All my Word files have been on *.docx for ages, and I don't plan to go back!

All in all, the intention was good, but the end-result was not working.

Uninstalled TC 32-bit, and will wait for Everything to install a more "modern" viewer! 😊
horst.epp
Posts: 1448
Joined: Fri Apr 04, 2014 3:24 pm

Re: Is it possible to display file content in an addition column?

Post by horst.epp »

As I said, the plugins are the modules which display files in its native formats.
You didn't install any plugins, so you get no preview.
For office formats there is the ULister plugins which uses the Oracle Viewer technology,
Almost the best on the market.
A simple ask for help in the TC forum is the secret.
It's like Everything, if you don't ask or read the forums, you don't know most of its functions.
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Is it possible to display file content in an addition column?

Post by NotNull »

PeterPan8 wrote: Thu Dec 28, 2023 5:07 pm yet I prefer something else than Total Commander, as it was a bit buggy the last I used it (some years ago).
Directory Opus might be of interest. Viewers for - among others - Office are included.
PeterPan8
Posts: 23
Joined: Mon May 01, 2023 7:00 pm

Re: Is it possible to display file content in an addition column?

Post by PeterPan8 »

Thanks for the info, I'll check it out... though I mostly prefer freeware versions. ;)
horst.epp
Posts: 1448
Joined: Fri Apr 04, 2014 3:24 pm

Re: Is it possible to display file content in an addition column?

Post by horst.epp »

PeterPan8 wrote: Thu Dec 28, 2023 7:35 pm Thanks for the info, I'll check it out... though I mostly prefer freeware versions. ;)
Free Commander can use all Total Commander plugins
and you get the same high quality previews.
To use the actual x64 version, you have to spend some money.
PeterPan8
Posts: 23
Joined: Mon May 01, 2023 7:00 pm

Re: Is it possible to display file content in an addition column?

Post by PeterPan8 »

I really like Search Everything (I recommended it to all my friends!)

For my own usage, I'm satisfied with the Preview panel (for now.) And I'm quite happy to have found the content:"..." tool. I can do a search for any text string, and then open the original document to search for it.

Ideally, I'd like Everything to highlight the search string directly, but I'll have to wait for that tool a bit more!

Thanks all, and Happy New Year! :mrgreen:
Post Reply