import { JupyterFrontEndPlugin } from '@jupyterlab/application'; /** * Bind Accel+Shift+F (Cmd+Shift+F on macOS, Ctrl+Shift+F elsewhere) to the * project-wide Search and Replace panel, matching the equivalent shortcut in * editors like VS Code. * * Two pieces are needed because that chord is already taken: JupyterLab core * binds Accel+Shift+F to `filebrowser:toggle-main`. * * 1. The chord is freed declaratively. `SettingRegistry.reconcileShortcuts` * keys collisions and disables on (keys, selector) — not on command — so the * `@jupyterlab/shortcuts-extension:shortcuts` override in * `default_setting_overrides.d/00-xtralab.json` disables the file-browser * binding. The file browser stays reachable from its sidebar tab and the * View menu; only the keyboard shortcut moves. * * 2. The new binding is added imperatively below rather than as another shipped * default. A `disabled` default and a re-binding default land on the same * (keys, selector) slot, and the disable suppresses every default on that * slot — including the re-binding. `commands.addKeyBinding` runs outside the * reconcile pass, so it is unaffected and wins cleanly once the file-browser * binding is gone. */ declare const plugin: JupyterFrontEndPlugin; export default plugin;