From 32a2caa692ee2e2b26d77d00b60166fba87667fb Mon Sep 17 00:00:00 2001 From: ryenus Date: Thu, 8 Oct 2020 00:36:20 +0800 Subject: use 'w' for command wrapping as 'M' is already used since 'M' is already used for sort-by-memory, as with: keys['M'] = actionSortByMemory; reorder help info about shortcut keys --- Action.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Action.c') diff --git a/Action.c b/Action.c index 106fbb03..4ea6fdfb 100644 --- a/Action.c +++ b/Action.c @@ -423,8 +423,8 @@ static const struct { const char* key; const char* info; } helpRight[] = { { .key = " e: ", .info = "show process environment" }, { .key = " i: ", .info = "set IO priority" }, { .key = " l: ", .info = "list open files with lsof" }, - { .key = " M: ", .info = "show process command in multiple lines" }, { .key = " s: ", .info = "trace syscalls with strace" }, + { .key = " w: ", .info = "wrap process command in multiple lines" }, { .key = " F2 C S: ", .info = "setup" }, { .key = " F1 h: ", .info = "show this help screen" }, { .key = " F10 q: ", .info = "quit" }, @@ -595,5 +595,5 @@ void Action_setBindings(Htop_Action* keys) { keys['U'] = actionUntagAll; keys['c'] = actionTagAllChildren; keys['e'] = actionShowEnvScreen; - keys['M'] = actionShowCommandScreen; + keys['w'] = actionShowCommandScreen; } -- cgit v1.2.3