mirror of
https://codeberg.org/emersion/gamja.git
synced 2024-11-14 19:05:01 -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) {
|
export function setup(app) {
|
||||||
|
|
Loading…
Reference in a new issue