1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-15 09:04:04 +02:00
joplin/packages/app-desktop/gui/MainScreen/commands/search.ts

19 lines
555 B
TypeScript
Raw Normal View History

import { CommandRuntime, CommandDeclaration } from '@joplin/lib/services/CommandService';
export const declaration: CommandDeclaration = {
name: 'search',
2020-09-15 15:01:07 +02:00
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.
},
};
};