Added support for sublime

This commit is contained in:
Andrea Alberti 2024-10-14 00:47:57 +02:00
parent a513fef35a
commit c91623c52f
2 changed files with 32 additions and 0 deletions

3
.gitignore vendored
View file

@ -18,3 +18,6 @@ data.json
# Exclude macOS Finder (System Explorer) View States
.DS_Store
# Sublime
obsidian-import-attachments-plus.sublime-workspace

View file

@ -0,0 +1,29 @@
{
"folders": [
{
"path": ".",
"folder_exclude_patterns": [".git", "node_modules", "dist"]
}
],
"settings": {
"tab_size": 4,
"translate_tabs_to_spaces": true,
"typescript_tsdk": "./node_modules/typescript/lib"
},
"build_systems": [
{
"name": "TypeScript Build",
"shell_cmd": "npm run build",
"working_dir": "${folder}", // Use ${folder} to point to the project root
"file_regex": "^\\s*(.+?\\.ts)\\((\\d+),(\\d+)\\):\\s*(.*)$",
"selector": "source.ts"
},
{
"name": "TypeScript Dev",
"shell_cmd": "npm run dev",
"working_dir": "${folder}", // Use ${folder} to point to the project root
"file_regex": "^\\s*(.+?\\.ts):(\\d+):(\\d+):\\s*(.*)$",
"selector": "source.ts"
}
]
}