diff options
| author | 2026-05-06 12:33:44 -0700 | |
|---|---|---|
| committer | 2026-05-06 12:33:44 -0700 | |
| commit | 115fa0ba6181e80225d7caa2bb7d99e3c712f938 (patch) | |
| tree | c8f8bf23c8e7343623afbde62257b8e2e654caee | |
| parent | 455056cbce6d5944b92202a7551c0e16bc75f834 (diff) | |
| download | new-dotfiles-115fa0ba6181e80225d7caa2bb7d99e3c712f938.tar.gz new-dotfiles-115fa0ba6181e80225d7caa2bb7d99e3c712f938.zip | |
glide: Clean up bookmark functions
| -rw-r--r-- | glide/.config/glide/glide.ts | 14 |
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 |
