Surfingkeys: Add keybinding to edit current URL

This commit is contained in:
Tom Willemse 2025-02-05 13:37:45 -08:00
parent de4407a85c
commit 0ca90de664

View file

@ -27,6 +27,8 @@ api.unmap(':');
api.mapkey('<Alt-x>', '#7Open commands', function() { api.mapkey('<Alt-x>', '#7Open commands', function() {
api.Front.openOmnibar({type: "Commands"}); api.Front.openOmnibar({type: "Commands"});
}); });
api.mapKey('gO', '#8Edit current URL and open', () =>
api.Front.openOmnibar({type: "URLs", tabbed: false, pref: window.location.url}));
api.mapkey('<Ctrl-c>g', '#14Load new posts', function() { api.mapkey('<Ctrl-c>g', '#14Load new posts', function() {
document.querySelector('button.updates-button').click(); document.querySelector('button.updates-button').click();