Repository navigation
0.1.59a #252
RobertCraigie
announced in
Announcements
0.1.59a
#252
Replies: 1 comment 4 replies
I'm on v0.1.59a and |
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Breaking change: diacritic keymaps on macOS
Previously on macOS if you wanted to define a keymap with the Option key, then you would have to use the diacritic version of the key as macOS uses Option to enable diacritics.
By default Glide will now use the physical key pressed instead of the diacritic, for example:
For more information see the Key codes docs.
Findbar API
This release includes support for programmatically operating the Firefox findbar. You can now open / close the findbar, and traverse through findbar matches directly from the config.
For example, a keymap that opens the findbar to search for the text that is currently selected:
The full API includes:
glide.findbar.open()glide.findbar.next_match()glide.findbar.previous_match()glide.findbar.close()glide.findbar.is_open()glide.findbar.is_focused()Previous / next link following
This release adds the
[[and]]default keymappings innormalmode that will automatically follow "previous" and "next" links respectively.For example, entering
]]while on https://lobste.rs/active will take you to https://lobste.rs/page/2, then[[will take you to https://lobste.rs/page/1.This works by searching for link elements (e.g.
html:<a>,html:<div role="link">) that contain specific text (e.g."next","more"). If multiple elements are found, then the element at the bottom of the page is selected.You can customise the text strings to search for with
glide.o.go_next_patternsandglide.o.go_previous_patterns.Or use different keymappings by mapping
:go_nextand:go_previous.Customisable keyboard layouts
Added support for resolving keymaps from the physical key pressed instead of whatever key string your software layout resolved it to.
This is particularly important for users with multiple keyboard layouts, as you no longer have to define keymaps multiple times for each layout, e.g.
You can now tell Glide to use the physical key
codeinstead:Note
Glide still needs a way to map the key code to the corresponding key string in mappings. For example, what should pressing
Shift+Digit2be matched against?The answer can change depending on your specific keyboard. On a US keyboard with a qwerty layout you would expect it to match against keymaps using
@, but on a German keyboard it should be".The default keyboard layout is US qwerty. If you use a different layout, see the
glide.o.keyboard_layoutsoption.Half page scrolling
The
<C-d>and<C-u>keymaps now scroll half pages instead of full pages like they did before. This was changed to match Vim behaviour more closely.Changes
glide.tabs.unload()glide.prefs.scoped()for temporarily settings prefs with the newusingkeywordDOM.listeners.has()for checking if an element has a specific event listener type registeredglide.addons.install('...', { private_browsing_allowed: true })--glide-current-mode-colorCSS variable for easier mode-specific UI customisation:tab_reopento open the most recently closed tab^motion in normal modeImotion crossing multiple linesglide.keys.next()promises could hang around after config reloadsThis discussion was created from the release 0.1.59a.
All reactions