tmoreno / open-log-viewer

A multi-platform log viewer built with Electron and styled with Material Design
GNU General Public License v3.0
308 stars 44 forks source link

Highlighting via regex goes beyond match + cannot copy/paste on macOS #17

Open working-name opened 4 years ago

working-name commented 4 years ago

Hi there,

It looks like regex matching is sort of like a start spot for highlighting to continue indefinitely until a next regex is matched. I personally find it more useful if highlighting limits to the full match instead.

Screen Shot 2020-09-15 at 3 02 09 PM

https://regex101.com/r/C8Zn1H/1/ - that's what the debug regex should help mark as green. https://regex101.com/r/C8Zn1H/2 - that's the error regex

As a secondary issue: I cannot copy/paste from log viewer at all, not even from the regular expression fields on 10.14.4 using latest linked dmg version 1.4.1.

tmoreno commented 3 years ago

Hi Alan,

I've made the highlight feature work in that way because, for me, it's easier to read the logs files. I could add a checkbox to enable or disable this feature.

According to copy/paste, I can't test macOS devices, I usually develop on Windows and I'm using linux virtual machines for some testing, so it's hard for me to test on macOS but I will try.

Thanks for your feedback!

tmoreno commented 3 years ago

Hi Alan,

I've just created a new branch where I've added the copy/paste support for macOS,

https://github.com/tmoreno/open-log-viewer/tree/feature/enable-copy-paste-on-macos

Could you build the app and check if the short cuts works correctly?

Thanks!

styledev commented 3 years ago

@tmoreno I have tested that feature branch on my macOS Big Sur v11.1 and copying still does not work. To note, I am using CMD + C as I did not see a contextual menu or File navigation for copying.

jhult commented 3 years ago

@styledev and @tmoreno,

I git cloned the repo, built and ran. At first, I didn't see the Edit menu either. Nor did copy/paste work. Then, I realized I didn't checkout the proper branch. Once I did git checkout enable-copy-paste-on-macos, and then rebuilt, copy/paste worked (macOS 11.3).

jhult commented 3 years ago

@tmoreno, any chance you could merge this and release a new build?

tmoreno commented 3 years ago

Hi @jhult @styledev @working-name

I've just published a new version with the macOS copy/paste shortcut fixed.

https://github.com/tmoreno/open-log-viewer/releases/tag/1.5.1

Enjoy!!

working-name commented 3 years ago

@tmoreno awesome! Thank you so much, I can copy paste everywhere now. Using 10.15.7.

Sorry to be a nag but would it be possible to make the current match-everything-til-next-regex behavior optional? It's ok if not, it's still a HUGE help going through large logfiles that contain mostly useless things. Thank you, once again.

jhult commented 3 years ago

@tmoreno, thanks! 1.5.1 works great with copy/paste on macOS 11.4 Beta.

tmoreno commented 3 years ago

@tmoreno awesome! Thank you so much, I can copy paste everywhere now. Using 10.15.7.

Sorry to be a nag but would it be possible to make the current match-everything-til-next-regex behavior optional? It's ok if not, it's still a HUGE help going through large logfiles that contain mostly useless things. Thank you, once again.

Hi @working-name!

Currently, I'm working in other side project and I don't have enough free time 😅

I have planned to do this, and other features, as soon as possible.

Thanks for your feedback.