Skip to content

use only specific file extensions to search #37

@repomorphic

Description

@repomorphic

I need to search only files which are in .adoc format in my notes directory. There are all kinds of files in my directory so I cannot manually type them like that

"relativePath.excludedExtensions": [
".epub",".pdf",".txt",".html",".adoc",".js",".css",".java" ...

]

What should I do?

I wrote a basic program which writes common file extensions to JSON format and added the following setting to settings.json file, after restarting visual studio code extension cannot find any files even if there are .html files on that directory which is not excluded in the following setting.

`

"relativePath.ignore": [
".3dm",
".3ds",
".3g2",
".3gp",
".7z",
".a",
".aac",
".adp",
".ai",
".aif",
".aiff",
".alz",
".ape",
".apk",
".ar",
".arj",
".asf",
".au",
".avi",
".bak",
".baml",
".bh",
".bin",
".bk",
".bmp",
".btif",
".bz2",
".bzip2",
".cab",
".caf",
".cgm",
".class",
".cmx",
".cpio",
".cr2",
".cur",
".dat",
".dcm",
".deb",
".dex",
".djvu",
".dll",
".dmg",
".dng",
".doc",
".docm",
".docx",
".dot",
".dotm",
".dra",
".DS_Store",
".dsk",
".dts",
".dtshd",
".dvb",
".dwg",
".dxf",
".ecelp4800",
".ecelp7470",
".ecelp9600",
".egg",
".eol",
".eot",
".epub",
".exe",
".f4v",
".fbs",
".fh",
".fla",
".flac",
".fli",
".flv",
".fpx",
".fst",
".fvt",
".g3",
".gh",
".gif",
".graffle",
".gz",
".gzip",
".h261",
".h263",
".h264",
".icns",
".ico",
".ief",
".img",
".ipa",
".iso",
".jar",
".jpeg",
".jpg",
".jpgv",
".jpm",
".jxr",
".key",
".ktx",
".lha",
".lib",
".lvp",
".lz",
".lzh",
".lzma",
".lzo",
".m3u",
".m4a",
".m4v",
".mar",
".mdi",
".mht",
".mid",
".midi",
".mj2",
".mka",
".mkv",
".mmr",
".mng",
".mobi",
".mov",
".movie",
".mp3",
".mp4",
".mp4a",
".mpeg",
".mpg",
".mpga",
".mxu",
".nef",
".npx",
".numbers",
".nupkg",
".o",
".oga",
".ogg",
".ogv",
".otf",
".pages",
".pbm",
".pcx",
".pdb",
".pdf",
".pea",
".pgm",
".pic",
".png",
".pnm",
".pot",
".potm",
".potx",
".ppa",
".ppam",
".ppm",
".pps",
".ppsm",
".ppsx",
".ppt",
".pptm",
".pptx",
".psd",
".pya",
".pyc",
".pyo",
".pyv",
".qt",
".rar",
".ras",
".raw",
".resources",
".rgb",
".rip",
".rlc",
".rmf",
".rmvb",
".rtf",
".rz",
".s3m",
".s7z",
".scpt",
".sgi",
".shar",
".sil",
".sketch",
".slk",
".smv",
".snk",
".so",
".stl",
".suo",
".sub",
".swf",
".tar",
".tbz",
".tbz2",
".tga",
".tgz",
".thmx",
".tif",
".tiff",
".tlz",
".ttc",
".ttf",
".txz",
".udf",
".uvh",
".uvi",
".uvm",
".uvp",
".uvs",
".uvu",
".viv",
".vob",
".war",
".wav",
".wax",
".wbmp",
".wdp",
".weba",
".webm",
".webp",
".whl",
".wim",
".wm",
".wma",
".wmv",
".wmx",
".woff",
".woff2",
".wrm",
".wvx",
".xbm",
".xif",
".xla",
".xlam",
".xls",
".xlsb",
".xlsm",
".xlsx",
".xlt",
".xltm",
".xltx",
".xm",
".xmind",
".xpi",
".xpm",
".xwd",
".xz",
".z",
".zip",
".ada",
".adb",
".ads",
".applescript",
".au3",
".as",
".asc",
".ascx",
".ascii",
".asm",
".asmx",
".asp",
".aspx",
".atom",
".awk",
".bas",
".bash",
".bashrc",
".bat",
".bbcolors",
".bcp",
".bdsgroup",
".bdsproj",
".bib",
".bowerrc",
".c",
".cbl",
".cc",
".cfc",
".cfg",
".cfm",
".cfml",
".cgi",
".clj",
".cljs",
".cls",
".cmake",
".cmd",
".cnf",
".cob",
".code-snippets",
".coffee",
".coffeekup",
".conf",
".cp",
".cpp",
".cpt",
".cpy",
".crt",
".cs",
".csh",
".cson",
".csproj",
".csr",
".css",
".csslintrc",
".csv",
".ctl",
".curlrc",
".cxx",
".d",
".dart",
".dfm",
".diff",
".dof",
".dpk",
".dpr",
".dproj",
".dtd",
".eco",
".editorconfig",
".ejs",
".el",
".elm",
".emacs",
".eml",
".ent",
".erb",
".erl",
".eslintignore",
".eslintrc",
".ex",
".exs",
".f",
".f03",
".f77",
".f90",
".f95",
".fish",
".for",
".fpp",
".frm",
".fs",
".fsproj",
".fsx",
".ftn",
".gemrc",
".gemspec",
".gitattributes",
".gitconfig",
".gitignore",
".gitkeep",
".gitmodules",
".go",
".gpp",
".gradle",
".groovy",
".groupproj",
".grunit",
".gtmpl",
".gvimrc",
".h",
".haml",
".hbs",
".hgignore",
".hh",
".hrl",
".hpp",
".hs",
".hta",
".htaccess",
".htc",
".htm",
".htpasswd",
".hxx",
".iced",
".iml",
".inc",
".ini",
".ino",
".int",
".irbrc",
".itcl",
".itermcolors",
".itk",
".jade",
".java",
".jhtm",
".jhtml",
".js",
".jscsrc",
".jshintignore",
".jshintrc",
".json",
".json5",
".jsonld",
".jsp",
".jspx",
".jsx",
".ksh",
".less",
".lhs",
".lisp",
".log",
".ls",
".lsp",
".lua",
".m",
".m4",
".mak",
".map",
".markdown",
".master",
".md",
".mdown",
".mdwn",
".mdx",
".metadata",
".mht",
".mhtml",
".mjs",
".mk",
".mkd",
".mkdn",
".mkdown",
".ml",
".mli",
".mm",
".mxml",
".nfm",
".nfo",
".noon",
".npmignore",
".npmrc",
".nuspec",
".nvmrc",
".ops",
".pas",
".pasm",
".patch",
".pbxproj",
".pch",
".pem",
".pg",
".php",
".php3",
".php4",
".php5",
".phpt",
".phtml",
".pir",
".pl",
".pm",
".pmc",
".pod",
".pot",
".prettierrc",
".properties",
".props",
".pt",
".pug",
".purs",
".py",
".pyx",
".r",
".rake",
".rb",
".rbw",
".rc",
".rdoc",
".rdoc_options",
".resx",
".rexx",
".rhtml",
".rjs",
".rlib",
".ron",
".rs",
".rss",
".rst",
".rtf",
".rvmrc",
".rxml",
".s",
".sass",
".scala",
".scm",
".scss",
".seestyle",
".sh",
".shtml",
".sln",
".sls",
".spec",
".sql",
".sqlite",
".sqlproj",
".ss",
".sss",
".st",
".strings",
".sty",
".styl",
".stylus",
".sub",
".sublime-build",
".sublime-commands",
".sublime-completions",
".sublime-keymap",
".sublime-macro",
".sublime-menu",
".sublime-project",
".sublime-settings",
".sublime-workspace",
".sv",
".svc",
".svg",
".swift",
".t",
".tcl",
".tcsh",
".terminal",
".tex",
".text",
".textile",
".tg",
".tk",
".tmLanguage",
".tmTheme",
".tmpl",
".tpl",
".ts",
".tsv",
".tsx",
".tt",
".tt2",
".ttml",
".twig",
".txt",
".v",
".vb",
".vbproj",
".vbs",
".vcproj",
".vcxproj",
".vh",
".vhd",
".vhdl",
".vim",
".viminfo",
".vimrc",
".vm",
".vue",
".webapp",
".x-php",
".wsc",
".xaml",
".xht",
".xhtml",
".xml",
".xs",
".xsd",
".xsl",
".xslt",
".y",
".yaml",
".yml",
".zsh",
".zshrc",
]

`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions