doublep / logview

Emacs mode for viewing log files
GNU General Public License v3.0
153 stars 18 forks source link

Wishlist: allow for tunable display of fields #17

Open hlafarge opened 7 years ago

hlafarge commented 7 years ago

It would be great if one could selectively decide (on a per-field basis) which fields actually get displayed by 'logview' for each log line.

My log lines are typically annoyingly long and it would be great if i could only display the fields i'm actually interested in when viewing each file.

Ideally this would be dynamically tuned, maybe even stored as parameters for a view or something similar.

Maybe this could be implemented as some kind of extension of the already available notion of 'details' for a log entry. Currently, as the documentation explains, 'details' are the message lines after the first line, maybe this could be extended to include the various first line fields.

What do you think ?

Btw, did i tell you how great 'logview' was ? Maybe in a previous issue, so let me repeat here :-)

doublep commented 7 years ago

What about separators between fields?

hlafarge commented 7 years ago

What about them indeed? I guess hiding a field should also imply hiding one separator character. My suggestiion would be that the one after the field should be selected. This, i guess, would also mean that logview would need to record/remember what the actual separator was to hide it properly.