klogg icon indicating copy to clipboard operation
klogg copied to clipboard

Add Windows Explorer context menu entry "Open with klogg"

Open sken130 opened this issue 3 years ago • 5 comments

Not all log files have file extension ".log", and in fact, many log files name end with irregular file extensions, such as "xxx_stacktrace.log.2021-07-20", "xxx_stacktrace.log.2021-07-21", etc. So, it's impossible to create file association for every file extension out there.

That's why I would like to suggest to have a Windows Explorer context menu entry "Open with klogg" when we right click any file, regardless of file extension. Of course, this should be made an option, as not everyone likes it.

sken130 avatar Jul 28 '21 02:07 sken130

Thanks for suggestion. This could be done by editing the registry (https://www.c-sharpcorner.com/UploadFile/99bb20/add-opening-methods-to-the-context-menu-for-all-files-in-win/) or by registering shell extension dll. I'll see which way is easier to implement.

variar avatar Jul 28 '21 05:07 variar

Thanks for suggestion. This could be done by editing the registry (https://www.c-sharpcorner.com/UploadFile/99bb20/add-opening-methods-to-the-context-menu-for-all-files-in-win/) or by registering shell extension dll. I'll see which way is easier to implement.

I add klogg in the registry as the link describes, but it seems a little bit slow to open log file. I use "Edit with notepad++", it's very fast. Any suggestions about increasing the speed to open log files with klogg?

speeeeed avatar Aug 25 '21 13:08 speeeeed

@speeeeed you mean that there is some visible delay between clicking on context menu item and file appearing in klogg? Does this happen when opening files by double click in Windows Explorer?

variar avatar Aug 25 '21 15:08 variar

you mean that there is some visible delay between clicking on context menu item and file appearing in klogg? Yes.

Dragging a file to a opened klogg window is really fast.

speeeeed avatar Aug 30 '21 11:08 speeeeed

Dragging a file to a opened klogg window is really fast

Opening file from context menu works by launching separate klogg process that gets the filename, checks if there is already another running klogg instance and passes filename to it. Dragging a file to already opened window does not require all that inter-process communication.

variar avatar Aug 30 '21 11:08 variar