fix some auto info boxes text
This commit is contained in:
parent
8281d8c626
commit
c3359f7edc
|
@ -166,8 +166,10 @@ void view_commands(Context& context)
|
||||||
"│ v,c: center cursor │\n"
|
"│ v,c: center cursor │\n"
|
||||||
"│ t: cursor on top │\n"
|
"│ t: cursor on top │\n"
|
||||||
"│ b: cursor on bottom │\n"
|
"│ b: cursor on bottom │\n"
|
||||||
|
"│ h: scroll left │\n"
|
||||||
"│ j: scroll down │\n"
|
"│ j: scroll down │\n"
|
||||||
"│ k: scroll up │\n"
|
"│ k: scroll up │\n"
|
||||||
|
"│ l: scroll right │\n"
|
||||||
"╰────────────────────────╯\n", context);
|
"╰────────────────────────╯\n", context);
|
||||||
context.input_handler().on_next_key([hide](Key key, Context& context) {
|
context.input_handler().on_next_key([hide](Key key, Context& context) {
|
||||||
if (hide)
|
if (hide)
|
||||||
|
@ -188,6 +190,9 @@ void view_commands(Context& context)
|
||||||
case 'b':
|
case 'b':
|
||||||
context.window().display_selection_at(window.dimensions().line-1);
|
context.window().display_selection_at(window.dimensions().line-1);
|
||||||
break;
|
break;
|
||||||
|
case 'h':
|
||||||
|
context.window().scroll(-std::max<CharCount>(1, context.numeric_param()));
|
||||||
|
break;
|
||||||
case 'j':
|
case 'j':
|
||||||
context.window().scroll( std::max<LineCount>(1, context.numeric_param()));
|
context.window().scroll( std::max<LineCount>(1, context.numeric_param()));
|
||||||
break;
|
break;
|
||||||
|
@ -197,9 +202,6 @@ void view_commands(Context& context)
|
||||||
case 'l':
|
case 'l':
|
||||||
context.window().scroll( std::max<CharCount>(1, context.numeric_param()));
|
context.window().scroll( std::max<CharCount>(1, context.numeric_param()));
|
||||||
break;
|
break;
|
||||||
case 'h':
|
|
||||||
context.window().scroll(-std::max<CharCount>(1, context.numeric_param()));
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -563,7 +565,7 @@ void select_object(Context& context)
|
||||||
const bool hide = show_auto_info_ifn("╭──────┤select object├───────╮\n"
|
const bool hide = show_auto_info_ifn("╭──────┤select object├───────╮\n"
|
||||||
"│ b,(,): parenthesis block │\n"
|
"│ b,(,): parenthesis block │\n"
|
||||||
"│ B,{,}: braces block │\n"
|
"│ B,{,}: braces block │\n"
|
||||||
"│ [,]: brackets block │\n"
|
"│ r,[,]: brackets block │\n"
|
||||||
"│ <,>: angle block │\n"
|
"│ <,>: angle block │\n"
|
||||||
"│ \": double quote string │\n"
|
"│ \": double quote string │\n"
|
||||||
"│ ': single quote string │\n"
|
"│ ': single quote string │\n"
|
||||||
|
@ -571,6 +573,7 @@ void select_object(Context& context)
|
||||||
"│ W: WORD │\n"
|
"│ W: WORD │\n"
|
||||||
"│ s: sentence │\n"
|
"│ s: sentence │\n"
|
||||||
"│ p: paragraph │\n"
|
"│ p: paragraph │\n"
|
||||||
|
"│ i: indent │\n"
|
||||||
"╰────────────────────────────╯\n", context);
|
"╰────────────────────────────╯\n", context);
|
||||||
context.input_handler().on_next_key(
|
context.input_handler().on_next_key(
|
||||||
[=](Key key, Context& context) {
|
[=](Key key, Context& context) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user