overleaf/services/web/frontend/js/features/source-editor/extensions/folding-keymap.ts
Alf Eaton 60370d5227 [cm6] Consolidate loose extensions (#13086)
GitOrigin-RevId: ff937418be5092b2b5197435e9cd60bc61f41b2c
2023-05-17 08:04:40 +00:00

16 lines
253 B
TypeScript

import { foldAll, toggleFold, unfoldAll } from '@codemirror/language'
export const foldingKeymap = [
{
key: 'F2',
run: toggleFold,
},
{
key: 'Alt-Shift-1',
run: foldAll,
},
{
key: 'Alt-Shift-0',
run: unfoldAll,
},
]