UNPKG

@liangshen/alfred-datagrip

Version:

*Alfred工作流,快速启动DataGrip软件中打开过的项目* *Alfred workflow for DataGrip*

13 lines (12 loc) 381 B
import alfred from "@liangshen/alfred"; import { getRecentProjects } from "@liangshen/jetbrains"; const recentProjects = await getRecentProjects('DataGrip'); const items = [ { arg: '', title: 'Open', subtitle: '' }, ...recentProjects.reverse().map(i => ({ arg: i.path, title: i.name, subtitle: i.path })) ]; alfred.output({ items }, ['title']);