1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-18 09:35:20 +02:00
joplin/packages/app-desktop/gui/WindowCommandsAndDialogs/commands/search.ts
Henry Heino 4a88d6ff7a
Desktop: Multiple window support (#11181)
Co-authored-by: Laurent Cozic <laurent22@users.noreply.github.com>
2024-11-08 15:32:05 +00:00

19 lines
555 B
TypeScript

import { CommandRuntime, CommandDeclaration } from '@joplin/lib/services/CommandService';
export const declaration: CommandDeclaration = {
name: 'search',
iconName: 'icon-search',
};
export const runtime = (): CommandRuntime => {
return {
execute: async () => {
// Doesn't do anything for now but could be used to
// automatically focus the search field (using the
// `focusSearch` command) and then set an initial search.
// However not straightforward to implement since the SearchBar
// is not a controlled component.
},
};
};