Pretty cool. I have been using Vimium[1] on Chrome which works ok. 1. https://chromewebstore.google.com/detail/vimium/dbepggeogbai...
Does it work on chrome:// pages? That always bugged me about the Vimium Firefox port.
Show HN: Glide, an extensible, keyboard-focused web browser
21–30 of 55 posts
Re: Show HN: Glide, an extensible, keyboard-focused web browser
#22Earlier quoted context omitted.
Is it possible to automatically install extensions and set native Firefox configuration through the config? All my other programs are setup by just cloning my dotfiles and I really wish Firefox had that option.
You can't configure extensions yet but you can set prefs! https://glide-browser.app/api#glide.prefs.set
0: https://ba.ln.ea.cx/src/marsironpi/dotfiles/tree/common/.vim...
Re: Show HN: Glide, an extensible, keyboard-focused web browser
#23Re: Show HN: Glide, an extensible, keyboard-focused web browser
#24Author here - happy to answer any questions :)
I like the hints API, especially that it can hint on browser elements. However, power users may find it desirable to be able to use the hints system to select arbitrary kinds of elements. Perhaps you could extend the hint functionality to allow callers to pass a CSS selector that determines what elements get hinted? One use case is to write a command that lets the user choose an element and copy its text.
I've used it to add keymappings so that hints only apply to certain kinds of buttons on a page, e.g. https://github.com/RobertCraigie/dotfiles/blob/ecfd6f66e8a77...
Re: Show HN: Glide, an extensible, keyboard-focused web browser
#25Earlier quoted context omitted.
You can't configure extensions yet but you can set prefs! https://glide-browser.app/api#glide.prefs.set
I've never managed to figure out how to configure extensions through the Firefox JS APIs, but installing an add-on using the internal APIs isn't too hard. I do it in my VimFX config.js[0]. Hope this is useful. 0: https://ba.ln.ea.cx/src/marsironpi/dotfiles/tree/common/.vim...
Re: Show HN: Glide, an extensible, keyboard-focused web browser
#26Earlier quoted context omitted.
I've never managed to figure out how to configure extensions through the Firefox JS APIs, but installing an add-on using the internal APIs isn't too hard. I do it in my VimFX config.js[0]. Hope this is useful. 0: https://ba.ln.ea.cx/src/marsironpi/dotfiles/tree/common/.vim...
oh that is very helpful, thanks for sharing :)
Re: Show HN: Glide, an extensible, keyboard-focused web browser
#27Earlier quoted context omitted.
I like the hints API, especially that it can hint on browser elements. However, power users may find it desirable to be able to use the hints system to select arbitrary kinds of elements. Perhaps you could extend the hint functionality to allow callers to pass a CSS selector that determines what elements get hinted? One use case is to write a command that lets the user choose an element and copy its text.
You can use CSS selectors already! https://glide-browser.app/hints#excmds I've used it to add keymappings so that hints only apply to certain kinds of buttons on a page, e.g. https://github.com/RobertCraigie/dotfiles/blob/ecfd6f66e8a77...
Re: Show HN: Glide, an extensible, keyboard-focused web browser
#28Earlier quoted context omitted.
You can use CSS selectors already! https://glide-browser.app/hints#excmds I've used it to add keymappings so that hints only apply to certain kinds of buttons on a page, e.g. https://github.com/RobertCraigie/dotfiles/blob/ecfd6f66e8a77...
Ah, I missed that option, sorry. I was looking at `glide.hints.show'. Are CSS selectors usable with that function? The documentation doesn't say so. Also, would you consider making it return a promise instead of taking a callback? I think that would be more ergonomic.
I'd recommend just looking at the glide.d.ts[0], it should be pretty readable (I hope).
Yes the TS API supports it as well with the `selector` property:
``` glide.hints.show({ selector: "..." }); ```
> Also, would you consider making it return a promise instead of taking a callback? I think that would be more ergonomic.
The reason it doesn't return a Promise directly is because the hints that are generated are not static, try scrolling while hints are active and you'll see them refresh.
So the return type would have to be something else to work well with this functionality imo.
[0]: https://github.com/glide-browser/glide/blob/8171c5c2af000b71...
Re: Show HN: Glide, an extensible, keyboard-focused web browser
#29found this on your ʕ•ᴥ•ʔ Bear Blog. having fun with it. set it up like my zen browser (with the sidebar + pinned tabs) and testing it out for my productivity stack at work. I themed out the glide-hint css via userChrome.css to better match my aesthetics. keep up the great work, i will be keenly following along. 1. https://freeimage.host/i/KMQu3EQ 2. https://freeimage.host/i/KMQAJ9t
How many tabs do you have open on average? Do you ever have trouble finding tabs with just being able to see the favicon?
with glide you can also make keymaps:
glide.keymaps.set("normal", "gd", () => openOrFocus("docs.google.com/document", "https://docs.google.com"), { description: "Go Docs" });
so i can close a tab quickly in normal mode using: tx. then hit gd to open google docs as an example.
i do have a hidden bookmarks bar with a ton of junk and sites i rarely open, but it is there if i need to find something.