mirror of
https://github.com/vale981/tridactyl
synced 2025-03-04 17:11:40 -05:00
Add sidebartoggle for --mode=browser binds #4640
This commit is contained in:
parent
12fcc25efe
commit
c77bf89d0c
1 changed files with 8 additions and 0 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue