Change Ctrl+Shift+h keybind to simply Shift+h in normal mode

This commit is contained in:
speedie 2023-06-19 16:16:16 +02:00
parent 3c59249fbd
commit 0409dbff12
5 changed files with 7 additions and 7 deletions

View file

@ -782,7 +782,7 @@ These are the default keybinds. You can generate these yourself from a
| 0 | Ctrl | u | moveup | 5 | | 0 | Ctrl | u | moveup | 5 |
| 0 | Ctrl | d | movedown | 5 | | 0 | Ctrl | d | movedown | 5 |
| 0 | 0 | u | togglehighlight | 0 | | 0 | 0 | u | togglehighlight | 0 |
| 0 | Ctrl+Shift | h | viewhist | 0 | | 0 | Shift | h | viewhist | 0 |
| 0 | 0 | d | clear | 0 | | 0 | 0 | d | clear | 0 |
| 0 | Shift | d | clearins | 0 | | 0 | Shift | d | clearins | 0 |
| 0 | 0 | Escape | quit | 0 | | 0 | 0 | Escape | quit | 0 |

View file

@ -322,7 +322,7 @@ spmenu = {
{ mode = 0; modifier = "Ctrl"; key = "u"; function = "moveup"; argument = "5"; }, // Ctrl+u: Move up 5 items { mode = 0; modifier = "Ctrl"; key = "u"; function = "moveup"; argument = "5"; }, // Ctrl+u: Move up 5 items
{ mode = 0; modifier = "Ctrl"; key = "d"; function = "movedown"; argument = "5"; }, // Ctrl+d: Move down 5 items { mode = 0; modifier = "Ctrl"; key = "d"; function = "movedown"; argument = "5"; }, // Ctrl+d: Move down 5 items
{ mode = 0; modifier = "None"; key = "u"; function = "togglehighlight"; argument = "0"; }, // Ctrl+u: Toggle highlighting { mode = 0; modifier = "None"; key = "u"; function = "togglehighlight"; argument = "0"; }, // Ctrl+u: Toggle highlighting
{ mode = 0; modifier = "Ctrl+Shift"; key = "h"; function = "viewhist"; argument = "0"; }, // Ctrl+h: Toggle viewing history buffer { mode = 0; modifier = "Shift"; key = "h"; function = "viewhist"; argument = "0"; }, // Shift+h: Toggle viewing history buffer
{ mode = 0; modifier = "None"; key = "d"; function = "clear"; argument = "0"; }, // d: Clear the input { mode = 0; modifier = "None"; key = "d"; function = "clear"; argument = "0"; }, // d: Clear the input
{ mode = 0; modifier = "Shift"; key = "d"; function = "clearins"; argument = "0"; }, // Shift+d: Clear the input and enter insert mode { mode = 0; modifier = "Shift"; key = "d"; function = "clearins"; argument = "0"; }, // Shift+d: Clear the input and enter insert mode
{ mode = 0; modifier = "None"; key = "Esc"; function = "quit"; argument = "0"; }, // Esc: Exit { mode = 0; modifier = "None"; key = "Esc"; function = "quit"; argument = "0"; }, // Esc: Exit

View file

@ -60,7 +60,7 @@ static Key keys[] = {
{ 0, Ctrl, XK_u, moveup, {.i = 5 } }, { 0, Ctrl, XK_u, moveup, {.i = 5 } },
{ 0, Ctrl, XK_d, movedown, {.i = 5 } }, { 0, Ctrl, XK_d, movedown, {.i = 5 } },
{ 0, 0, XK_u, togglehighlight, {0} }, { 0, 0, XK_u, togglehighlight, {0} },
{ 0, Ctrl|Shift, XK_h, viewhist, {0} }, { 0, Ctrl, XK_h, viewhist, {0} },
{ 0, 0, XK_d, clear, {0} }, { 0, 0, XK_d, clear, {0} },
{ 0, Shift, XK_d, clearins, {0} }, { 0, Shift, XK_d, clearins, {0} },
{ 0, 0, XK_Escape, quit, {0} }, { 0, 0, XK_Escape, quit, {0} },
@ -136,7 +136,7 @@ static WlKey wl_keys[] = {
{ 0, WL_Ctrl, XKB_KEY_u, moveup, {.i = 5 } }, { 0, WL_Ctrl, XKB_KEY_u, moveup, {.i = 5 } },
{ 0, WL_Ctrl, XKB_KEY_d, movedown, {.i = 5 } }, { 0, WL_Ctrl, XKB_KEY_d, movedown, {.i = 5 } },
{ 0, WL_None, XKB_KEY_u, togglehighlight, {0} }, { 0, WL_None, XKB_KEY_u, togglehighlight, {0} },
{ 0, WL_CtrlShift, XKB_KEY_h, viewhist, {0} }, { 0, WL_Ctrl, XKB_KEY_h, viewhist, {0} },
{ 0, WL_None, XKB_KEY_d, clear, {0} }, { 0, WL_None, XKB_KEY_d, clear, {0} },
{ 0, WL_Shift, XKB_KEY_d, clearins, {0} }, { 0, WL_Shift, XKB_KEY_d, clearins, {0} },
{ 0, WL_None, XKB_KEY_Escape, quit, {0} }, { 0, WL_None, XKB_KEY_Escape, quit, {0} },

View file

@ -1,5 +1,5 @@
'\" t '\" t
.\" Automatically generated by Pandoc 3.1.2 .\" Automatically generated by Pandoc 3.1.1
.\" .\"
.\" Define V font for inline verbatim, using C font in formats .\" Define V font for inline verbatim, using C font in formats
.\" that render this, and otherwise B font. .\" that render this, and otherwise B font.
@ -1339,7 +1339,7 @@ T}
T{ T{
0 0
T}@T{ T}@T{
Ctrl+Shift Shift
T}@T{ T}@T{
h h
T}@T{ T}@T{

View file

@ -1,4 +1,4 @@
.\" Automatically generated by Pandoc 3.1.2 .\" Automatically generated by Pandoc 3.1.1
.\" .\"
.\" Define V font for inline verbatim, using C font in formats .\" Define V font for inline verbatim, using C font in formats
.\" that render this, and otherwise B font. .\" that render this, and otherwise B font.