tigrawap / slit

slit - a modern PAGER for viewing logs, get more than most in less time
Other
469 stars 18 forks source link

For WebSlit - dump active filters to a file via SIGUSR1/2 #77

Open koreno opened 4 years ago

koreno commented 4 years ago

we want to be able to share filtered views between webslit sessions. if we can signal webslit to dump its filters to some known location, WebSlit could read the file, make a url query-string out of it, and do the reverse on the target session, starting slit with the provided filters

tigrawap commented 4 years ago

Not a fan of using signals, number of signals limited...and eventually will come to the point that there are "much more important features", that can be done only with signals, but all signals are taken.

How about: "--sync-filters=file_location"

Every time filters changed - file_location is updated?

koreno commented 4 years ago

yep, that's great too. and add to that also the current line-number, -K value, and even current column position. in other words what we want is to save the current state, so it can be recreated in a separate session.

koreno commented 1 year ago

hey @tigrawap , it's been 3 years now, what's holding you back?... ;)