mirror of
https://git.sr.ht/~emersion/gamja
synced 2024-12-02 04:17:09 -05:00
Add keybinding to jump to next unread buffer
This commit is contained in:
parent
2951c7810f
commit
78140240cc
1 changed files with 14 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue