aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--glide/.config/glide/glide.ts14
1 files changed, 12 insertions, 2 deletions
diff --git a/glide/.config/glide/glide.ts b/glide/.config/glide/glide.ts
index a155010..80e3851 100644
--- a/glide/.config/glide/glide.ts
+++ b/glide/.config/glide/glide.ts
@@ -270,7 +270,12 @@ glide.keymaps.set("normal", "gh", async () => {
});
}, { description: "Jump to heading in current page" });
-glide.keymaps.set('normal', 'ab', async () => {
+// Bookmarks
+
+const add_bookmark = glide.excmds.create({
+ name: 'add_bookmark',
+ description: 'Create a bookmark for the current page, asking for the title.',
+}, async () => {
const currentTab = await glide.tabs.get_first({ active: true });
glide.commandline.show({
@@ -287,7 +292,10 @@ glide.keymaps.set('normal', 'ab', async () => {
});
});
-glide.keymaps.set('normal', 'kb', async () => {
+const remove_bookmark = glide.excmds.create({
+ name: 'remove_bookmark',
+ description: 'Remove a bookmark for the current page.',
+}, async () => {
const bookmarks = await browser.bookmarks.search({});
glide.commandline.show({
@@ -301,6 +309,8 @@ glide.keymaps.set('normal', 'kb', async () => {
});
});
+glide.keymaps.set('normal', 'ab', 'add_bookmark');
+glide.keymaps.set('normal', 'kb', 'remove_bookmark');
// Split windows