Skip to content

Commit

Permalink
Fix #14, use json to store icons
Browse files Browse the repository at this point in the history
According to https://github.com/ogham/exa/blob/master/src/output/icons.rs
add some icons

Sort all json alphabetically

Remove 'scriptencoding utf-8' because now vim script don't contain icons

Add '\m' to avoid pattern match failure because users change their '&magic'

Because neovim/neovim#20757
Use '.' to replace '' to get default value
  • Loading branch information
Freed-Wu committed Oct 22, 2022
1 parent ee07f3e commit f6c3458
Show file tree
Hide file tree
Showing 15 changed files with 408 additions and 212 deletions.
52 changes: 52 additions & 0 deletions assets/json/basename.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
".bashprofile": "ξ˜•",
".bashrc": "ο’‰",
".ds_store": "ξ˜•",
".git": "",
".gitattributes": "",
".gitconfig": "",
".gitignore": "",
".gitlab-ci.yml": "οŠ–",
".gitmodules": "",
".gvimrc": "",
".rvm": "",
".vimrc": "",
".zprofile": "ξ˜•",
".zshrc": "ο’‰",
"_gvimrc": "",
"_vimrc": "",
"cargo.lock": "",
"cmakelists.txt": "ξ˜•",
"config.ru": "ξž‘",
"docker-compose.yml": "",
"dockerfile": "",
"dropbox": "ξœ‡",
"ds_store": "ο…Ή",
"exact-match-case-sensitive-1.txt": "1",
"exact-match-case-sensitive-2": "2",
"favicon.ico": "",
"gemfile": "ξž‘",
"gitignore_global": "",
"go.mod": "",
"go.sum": "",
"gradle": "ξ‰–",
"gruntfile.coffee": "ξ˜‘",
"gruntfile.js": "ξ˜‘",
"gruntfile.ls": "ξ˜‘",
"gulpfile.coffee": "",
"gulpfile.js": "",
"gulpfile.ls": "",
"hidden": "ο€£",
"license": "",
"localized": "ο…Ή",
"makefile": "ο’‰",
"mix.lock": "",
"npmignore": "",
"pkgbuild": "οŒƒ",
"procfile": "ξ˜‡",
"rakefile": "ξž‘",
"react.jsx": "",
"requirements.txt": "ξ˜•",
"rubydoc": "",
"yarn.lock": ""
}
6 changes: 6 additions & 0 deletions assets/json/directory.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
".": "ξ˜“",
"close": "ξ—Ώ",
"open": "ξ—Ύ",
"symlink": "ο’‚"
}
282 changes: 282 additions & 0 deletions assets/json/extension.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,282 @@
{
".": "ο…›",
"DS_store": "ο…Ή",
"ai": "",
"android": "",
"apk": "",
"apple": "ο…Ή",
"avi": "ο€½",
"avif": "ο‡…",
"avro": "ξ˜‹",
"awk": "ο’‰",
"bash": "ο’‰",
"bash_history": "ο’‰",
"bash_profile": "ο’‰",
"bashrc": "ο’‰",
"bat": "ο…Ί",
"bats": "ο’‰",
"bmp": "ο‡…",
"bz": "",
"bz2": "",
"c": "",
"c++": "",
"cab": "",
"cc": "",
"cfg": "ξ˜•",
"class": "ξ‰–",
"clj": "",
"cljc": "",
"cljs": "ξͺ",
"cls": "",
"cmd": "",
"coffee": "",
"conf": "ξ˜•",
"cp": "",
"cpio": "",
"cpp": "",
"cr": "",
"cs": "",
"csh": "ο’‰",
"cshtml": "ο‡Ί",
"csproj": "",
"css": "",
"csv": "",
"csx": "",
"cu": "",
"cuh": "",
"cxx": "",
"d": "",
"dart": "",
"db": "",
"deb": "",
"diff": "ο‘€",
"djvu": "ο€­",
"dll": "",
"doc": "",
"docx": "",
"dump": "ξœ†",
"ebook": "ξŠ‹",
"ebuild": "",
"editorconfig": "ξ˜•",
"edn": "ξͺ",
"eex": "",
"ejs": "",
"elm": "",
"env": "ο‘’",
"eot": "ο€±",
"epub": "",
"erb": "",
"erl": "",
"ex": "",
"exe": "ο…Ί",
"exs": "",
"f#": "",
"fish": "ο’‰",
"flac": "",
"flv": "ο€½",
"font": "ο€±",
"fs": "",
"fsi": "",
"fsscript": "",
"fsx": "",
"gdoc": "",
"gem": "ξž‘",
"gemfile": "ξž‘",
"gemspec": "ξž‘",
"gform": "",
"gif": "ο‡…",
"git": "",
"gitattributes": "",
"gitignore": "",
"gitmodules": "",
"go": "",
"gradle": "ξ‰–",
"groovy": "",
"gsheet": "",
"gslides": "",
"guardfile": "ξž‘",
"gz": "",
"h": "",
"haml": "",
"hbs": "",
"hh": "",
"hpp": "",
"hrl": "",
"hs": "",
"htm": "ο„»",
"html": "ο„»",
"hxx": "",
"ico": "ο‡…",
"image": "ο‡…",
"img": "",
"iml": "",
"ini": "ο…Ί",
"ipynb": "ξ˜†",
"iso": "",
"j2c": "ο‡…",
"j2k": "ο‡…",
"jad": "ξ‰–",
"jar": "ξ‰–",
"java": "ξ‰–",
"jfi": "ο‡…",
"jfif": "ο‡…",
"jif": "ο‡…",
"jl": "",
"jmd": "ο’Š",
"jp2": "ο‡…",
"jpe": "ο‡…",
"jpeg": "ο‡…",
"jpg": "ο‡…",
"jpx": "ο‡…",
"js": "",
"json": "ξ˜‹",
"jsx": "",
"jxl": "ο‡…",
"ksh": "ο’‰",
"latex": "",
"leex": "",
"less": "",
"lhs": "",
"license": "",
"localized": "ο…Ή",
"lock": "ο€£",
"log": "",
"lua": "",
"lz": "",
"lz4": "",
"lzh": "",
"lzma": "",
"lzo": "",
"m": "",
"m4a": "",
"markdown": "ο’Š",
"md": "ο’Š",
"mdx": "ξ˜‰",
"mjs": "",
"mk": "ο’‰",
"mkd": "ο’Š",
"mkv": "ο€½",
"ml": "Ξ»",
"mli": "Ξ»",
"mm": "",
"mobi": "ξŠ‹",
"mov": "ο€½",
"mp3": "",
"mp4": "ο€½",
"msi": "",
"mustache": "",
"nix": "οŒ“",
"node": "",
"npmignore": "",
"odp": "",
"ods": "",
"odt": "",
"ogg": "",
"ogv": "ο€½",
"otf": "ο€±",
"part": "",
"patch": "ο‘€",
"pdf": "",
"php": "",
"pl": "",
"plx": "",
"pm": "",
"png": "ο‡…",
"pod": "",
"pp": "ο’™",
"ppt": "",
"pptx": "",
"procfile": "ξž‘",
"properties": "ξ˜‹",
"ps1": "ο’‰",
"psb": "",
"psd": "",
"pxm": "ο‡…",
"py": "ξ˜†",
"pyc": "ξ˜†",
"pyd": "ξ˜†",
"pyo": "ξ˜†",
"r": "",
"rake": "ξž‘",
"rakefile": "ξž‘",
"rar": "",
"razor": "ο‡Ί",
"rb": "ξž‘",
"rdata": "",
"rdb": "",
"rdoc": "ο’Š",
"rds": "",
"readme": "ο’Š",
"rlib": "",
"rmd": "ο’Š",
"rpm": "",
"rs": "",
"rspec": "ξž‘",
"rspec_parallel": "ξž‘",
"rspec_status": "ξž‘",
"rss": "ο‚ž",
"rtf": "",
"ru": "ξž‘",
"rubydoc": "",
"sass": "ξ˜ƒ",
"scala": "",
"scss": "",
"sh": "ο’‰",
"shell": "ο’‰",
"slim": "",
"sln": "",
"so": "ο…Ό",
"sql": "ξœ†",
"sqlite3": "ξŸ„",
"sty": "",
"styl": "ξ˜€",
"stylus": "ξ˜€",
"suo": "",
"svg": "ο‡…",
"swift": "",
"t": "",
"tar": "",
"taz": "",
"tbz": "",
"tbz2": "",
"tex": "",
"tgz": "",
"tiff": "ο‡…",
"tlz": "",
"toml": "ξ˜•",
"torrent": "",
"ts": "",
"tsv": "",
"tsx": "",
"ttf": "ο€±",
"twig": "",
"txt": "ο…œ",
"txz": "",
"tz": "",
"tzo": "",
"video": "ο€½",
"vim": "",
"vue": "ο΅‚",
"war": "ξ‰–",
"wav": "",
"webm": "ο€½",
"webmanifest": "ξ˜‹",
"webp": "ο‡…",
"windows": "ο…Ί",
"woff": "ο€±",
"woff2": "ο€±",
"xcplayground": "",
"xhtml": "ο„»",
"xls": "",
"xlsx": "",
"xml": "ο„‘",
"xul": "ο„‘",
"xz": "",
"yaml": "",
"yml": "",
"zip": "",
"zsh": "ο’‰",
"zsh-theme": "ο’‰",
"zshrc": "ο’‰",
"zst": ""
}
5 changes: 5 additions & 0 deletions assets/json/fileformat.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"dos": "",
"mac": "ξœ‘",
"unix": "ξœ’"
}
30 changes: 30 additions & 0 deletions assets/json/pattern.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
".*angular.*\\.js$": "",
".*backbone.*\\.js$": "",
".*jquery.*\\.js$": "",
".*materialize.*\\.css$": "",
".*materialize.*\\.js$": "",
".*mootools.*\\.js$": "",
".*require.*\\.js$": "",
".*vimrc.*": "",
"/Trash.$": "ο‡Έ",
"/Users.$": "",
"/\\.Trash-\\d\\+.$": "ο‡Έ",
"/\\.atom.$": "",
"/\\.config.$": "ξ—Ό",
"/\\.git.$": "",
"/\\.github.$": "",
"/\\.idea.$": "",
"/\\.vscode.$": "",
"/bin.$": "ξ—Ό",
"/home.$": "",
"/include.$": "ξ—Ό",
"/lib.$": "ο„‘",
"/lib32.$": "ο„‘",
"/lib64.$": "ο„‘",
"/libexec.$": "ο„‘",
"/node_modules.$": "",
"/sbin.$": "ξ—Ό",
"/xbin.$": "ξ—Ό",
"Vagrantfile$": ""
}
12 changes: 12 additions & 0 deletions assets/json/platform.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"android": "",
"arch": "οŒƒ",
"centos": "οŒ„",
"debian": "οŒ†",
"docker": "",
"gentoo": "",
"linux": "ξœ’",
"macos": "ξœ‘",
"ubuntu": "",
"windows": ""
}
Loading

0 comments on commit f6c3458

Please sign in to comment.