[feature request] Narrow Mode
I'd like to suggest the idea of a narrow mode, ideally it would automatically activate if the terminal width is below a configurable threshold, but being switchable with a keybind would be acceptable too.
Part of this would be related to #1227 where the header would become a single column, though with a separately configurable layout, but it would also be good to be able to configure some of the process columns to be hidden in narrow mode.
By way of explanation, let's assume you had this layout.
With htop as it currently is, shrinking the terminal to half that size results in this which isn't the easiest to read.
My suggestion is for it to, instead, become this.
Perhaps this could be more generalized, e. g. having htop adjust to different user's needs, e. g. small screen device versus large screen device. And a commandline option such as:
--height=small # or any other appropriate name, such as "htop --small-device"; and within the application some command to toggle width/height/size
Or, if --height does not make sense, then perhaps some option like "--top-stacked" or --vertical or anything like that. I guess we can easily change the name lateron too, so the first thing to do is determine whether this would be useful (I think it may be useful).
How about this: Just give a narrow variant of a default set of meters when htop first starts up. The meters are all customizable, so adding a command line option won't make sense.
And I think it would be easier to implement the feature this way. You can start experimenting on Settings_defaultMeters() code, adding a terminal width check and a vertical arrangements of the meters.
Edit: Sorry, but I saw you proposed to change the default set of columns (or "process fields") as well.
I think it would be better if it could be done on the fly rather than only when first started.