Skip to content

Instantly share code, notes, and snippets.

@foolgry
Last active November 13, 2023 00:50
Show Gist options
  • Save foolgry/92d4cb81505ff5c92e64d24930e3d8dd to your computer and use it in GitHub Desktop.
Save foolgry/92d4cb81505ff5c92e64d24930e3d8dd to your computer and use it in GitHub Desktop.
open file die with webstorm ide
窗口匹配 finder
文件匹配 文件夹
const openToIdea = (folderPath) => {
require('child_process').spawn('open -a WebStorm ', [`"${folderPath}"`], {detached: true, shell: true})
}
if(ENTER.type === 'files') return openToIdea(ENTER.payload[0].path)
utools.readCurrentFolderPath().then(openToIdea)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment