Switch to Ctrl modifier from Alt modifier for navhistory keys

This commit is contained in:
speedie 2023-06-19 16:26:03 +02:00
parent 0409dbff12
commit 453b0028aa
4 changed files with 10 additions and 10 deletions

View file

@ -792,8 +792,8 @@ These are the default keybinds. You can generate these yourself from a
| 0 | Shift | g | moveend | 0 |
| 0 | 0 | Next | movenext | 0 |
| 0 | 0 | Prior | moveprev | 0 |
| 0 | Alt | p | navhistory | -1 |
| 0 | Alt | n | navhistory | +1 |
| 0 | Ctrl | p | navhistory | -1 |
| 0 | Ctrl | n | navhistory | +1 |
| 1 | 0 | Escape | switchmode | 0 |
## .Xresources

View file

@ -332,8 +332,8 @@ spmenu = {
{ mode = 0; modifier = "Shift"; key = "g"; function = "moveend"; argument = "0"; }, // Shift+g: Move to the end
{ mode = 0; modifier = "None"; key = "Next"; function = "movenext"; argument = "0"; }, // Next: Move to the next entry (redo)
{ mode = 0; modifier = "None"; key = "Prior"; function = "moveprev"; argument = "0"; }, // Prior: Move to the previous entry (undo)
{ mode = 0; modifier = "Alt"; key = "p"; function = "navhistory"; argument = "-1"; }, // Alt+p: Navigate to the previous entry in the history buffer
{ mode = 0; modifier = "Alt"; key = "n"; function = "navhistory"; argument = "+1"; }, // Alt+n: Navigate to the next entry in the history buffer
{ mode = 0; modifier = "Ctrl"; key = "p"; function = "navhistory"; argument = "-1"; }, // Alt+p: Navigate to the previous entry in the history buffer
{ mode = 0; modifier = "Ctrl"; key = "n"; function = "navhistory"; argument = "+1"; }, // Alt+n: Navigate to the next entry in the history buffer
{ ignoreglobalkeys = 1; } ), // Ignore hardcoded keybinds (0/1)
};

View file

@ -70,8 +70,8 @@ static Key keys[] = {
{ 0, Shift, XK_g, moveend, {0} },
{ 0, 0, XK_Next, movenext, {0} },
{ 0, 0, XK_Prior, moveprev, {0} },
{ 0, Alt, XK_p, navhistory, {.i = -1 } },
{ 0, Alt, XK_n, navhistory, {.i = +1 } },
{ 0, Ctrl, XK_p, navhistory, {.i = -1 } },
{ 0, Ctrl, XK_n, navhistory, {.i = +1 } },
/* insert mode */
{ 1, 0, XK_Escape, switchmode, {0} },
@ -146,8 +146,8 @@ static WlKey wl_keys[] = {
{ 0, WL_Shift, XKB_KEY_g, moveend, {0} },
{ 0, WL_None, XKB_KEY_Next, movenext, {0} },
{ 0, WL_None, XKB_KEY_Prior, moveprev, {0} },
{ 0, WL_Alt, XKB_KEY_p, navhistory, {.i = -1 } },
{ 0, WL_Alt, XKB_KEY_n, navhistory, {.i = +1 } },
{ 0, WL_Ctrl, XKB_KEY_p, navhistory, {.i = -1 } },
{ 0, WL_Ctrl, XKB_KEY_n, navhistory, {.i = +1 } },
/* insert mode */
{ 1, WL_None, XKB_KEY_Escape, switchmode, {0} },

View file

@ -1449,7 +1449,7 @@ T}
T{
0
T}@T{
Alt
Ctrl
T}@T{
p
T}@T{
@ -1460,7 +1460,7 @@ T}
T{
0
T}@T{
Alt
Ctrl
T}@T{
n
T}@T{