mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 09:31:41 -05:00
Add key commands for history
This commit is contained in:
parent
0945b4adeb
commit
f777e9d396
2 changed files with 6 additions and 0 deletions
|
@ -72,6 +72,10 @@ namespace ExCmds {
|
|||
}
|
||||
export function tabprev(increment = 1) { tabnext(increment*-1) }
|
||||
|
||||
// History functions
|
||||
export function history(n = 1) {messageActiveTab("history",[n])}
|
||||
export function historyback(n = 1) {history(n*-1)}
|
||||
export function historyforward(n = 1) {history(n)}
|
||||
|
||||
// Misc functions
|
||||
export function focuscmdline() { messageActiveTab("focuscmdline") }
|
||||
|
|
|
@ -12,6 +12,8 @@ namespace Parsing {
|
|||
const nmaps = new Map<string, string>([
|
||||
["t", "tabopen"],
|
||||
["j", "scrolldownline"],
|
||||
["H", "historyback"],
|
||||
["L", "historyforward"],
|
||||
["k", "scrollupline"],
|
||||
["gt", "tabnext"],
|
||||
["gT", "tabprev"],
|
||||
|
|
Loading…
Add table
Reference in a new issue