Improve process following

- stay in follow mode on sort inversion (I)
- stay in follow mode after viewing help screen (h)
- select parent process (where available) when having followed a thread
  and hiding these (H)

Closes: #560
This commit is contained in:
Christian Göttsche
2021-03-12 18:02:39 +01:00
committed by BenBE
parent 1275139795
commit a4173f5209
2 changed files with 17 additions and 7 deletions

View File

@ -267,7 +267,7 @@ static Htop_Reaction actionInvertSortOrder(State* st) {
Settings_invertSortOrder(st->settings);
if (st->pauseProcessUpdate)
ProcessList_sort(st->pl);
return HTOP_REFRESH | HTOP_SAVE_SETTINGS;
return HTOP_REFRESH | HTOP_SAVE_SETTINGS | HTOP_KEEP_FOLLOWING;
}
static Htop_Reaction actionExpandOrCollapse(State* st) {
@ -582,7 +582,7 @@ static Htop_Reaction actionHelp(State* st) {
CRT_readKey();
clear();
return HTOP_RECALCULATE | HTOP_REDRAW_BAR;
return HTOP_RECALCULATE | HTOP_REDRAW_BAR | HTOP_KEEP_FOLLOWING;
}
static Htop_Reaction actionUntagAll(State* st) {