Add key commands for history

This commit is contained in:
Oliver Blanthorn 2017-09-30 17:18:05 +01:00
parent 0945b4adeb
commit f777e9d396
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3
2 changed files with 6 additions and 0 deletions

View file

@ -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") }

View file

@ -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"],