You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-16 00:14:34 +02:00
All: Use Lerna to manage monorepo
This commit is contained in:
@ -0,0 +1,15 @@
|
||||
import { CommandRuntime, CommandDeclaration } from '@joplinapp/lib/services/CommandService';
|
||||
import { _ } from '@joplinapp/lib/locale';
|
||||
|
||||
export const declaration:CommandDeclaration = {
|
||||
name: 'focusSearch',
|
||||
label: () => _('Search in all the notes'),
|
||||
};
|
||||
|
||||
export const runtime = (searchBarRef:any):CommandRuntime => {
|
||||
return {
|
||||
execute: async () => {
|
||||
if (searchBarRef.current) searchBarRef.current.focus();
|
||||
},
|
||||
};
|
||||
};
|
Reference in New Issue
Block a user