Sloth icon indicating copy to clipboard operation
Sloth copied to clipboard

Keep focus after refreshing process list

Open SoCuul opened this issue 10 months ago • 2 comments

Currently, when you have an item selected in the process list, it gets deselected when the process list gets refreshed. This can be difficult if you're trying to keep track of a certain file and it's surroundings in a frequently refreshing environment.

It would be very nice for the selection to be kept after refreshing, provided it is still returned from the lsof command.

Additionally, it would be nice to have "realtime" updates, without having to wait 3 seconds for the process list to refresh. Sort of like activity monitor.

SoCuul avatar Feb 28 '25 16:02 SoCuul

Good idea, I'll implement selection preservation in the next release.

Alas, real-time updates are not realistic given the nature of Sloth's architecture (a frontend for the lsof command line tool).

sveinbjornt avatar Mar 02 '25 19:03 sveinbjornt

I definitely see where you're coming from for the real-time updates part, so maybe the next best thing would be an input box to enter a number of seconds for the refresh interval. Would be more versatile than the current implementation.

SoCuul avatar Mar 03 '25 14:03 SoCuul