diff --git a/keybindings.js b/keybindings.js index 0c37a3c..524b720 100644 --- a/keybindings.js +++ b/keybindings.js @@ -22,6 +22,20 @@ export const keybindings = [ }); }, }, + { + key: "a", + altKey: true, + description: "Jump to next buffer with activity", + execute: (app) => { + // TODO: order by priority, then by age + for (var buf of app.state.buffers.values()) { + if (buf.unread != Unread.NONE) { + app.switchBuffer(buf.name); + break; + } + } + }, + }, ]; export function setup(app) {