mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Add .cs file to assets search index https://github.com/siyuan-note/siyuan/issues/14983
This commit is contained in:
parent
81d245877a
commit
084ddfd389
2 changed files with 2 additions and 1 deletions
|
|
@ -701,7 +701,7 @@ export abstract class Constants {
|
|||
public static readonly SIYUAN_ASSETS_EXTS: string[] = [".pdf"].concat(Constants.SIYUAN_ASSETS_IMAGE).concat(Constants.SIYUAN_ASSETS_AUDIO).concat(Constants.SIYUAN_ASSETS_VIDEO);
|
||||
public static readonly SIYUAN_ASSETS_SEARCH: string[] = [".txt", ".md", ".markdown", ".docx", ".xlsx", ".pptx", ".pdf", ".json", ".log", ".sql", ".html", ".xml", ".java", ".h", ".c",
|
||||
".cpp", ".go", ".rs", ".swift", ".kt", ".py", ".php", ".js", ".css", ".ts", ".sh", ".bat", ".cmd", ".ini", ".yaml",
|
||||
".rst", ".adoc", ".textile", ".opml", ".org", ".wiki", ".epub"];
|
||||
".rst", ".adoc", ".textile", ".opml", ".org", ".wiki", ".epub", ".cs"];
|
||||
|
||||
// protyle
|
||||
public static readonly SIYUAN_CONFIG_APPEARANCE_DARK_CODE: string[] = ["a11y-dark", "agate", "an-old-hope", "androidstudio",
|
||||
|
|
|
|||
|
|
@ -475,6 +475,7 @@ func NewAssetsSearcher() *AssetsSearcher {
|
|||
".opml": txtAssetParser,
|
||||
".org": txtAssetParser,
|
||||
".wiki": txtAssetParser,
|
||||
".cs": txtAssetParser,
|
||||
".docx": &DocxAssetParser{},
|
||||
".pptx": &PptxAssetParser{},
|
||||
".xlsx": &XlsxAssetParser{},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue