Add sidebartoggle for --mode=browser binds #4640

This commit is contained in:
Oliver Blanthorn 2023-03-22 14:37:09 +01:00
parent 12fcc25efe
commit c77bf89d0c
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3

View file

@ -36,6 +36,14 @@ function escapehatch() {
})()
}
/**
* Toggle the sidebar. Bind with e.g. `:bind --mode=browser <C-.> sidebartoggle`
*/
function sidebartoggle() {
return browser.sidebarAction.toggle()
}
export const useractions: Record<string, () => void> = {
escapehatch,
sidebartoggle,
}