forked from extern/nushell
add a few more grid icons (#10583)
# Description This PR adds a few more grid icons and updates some existing ones. # User-Facing Changes <!-- List of all changes that impact the user experience here. This helps us keep track of breaking changes. --> # Tests + Formatting <!-- Don't forget to add tests that cover your changes. Make sure you've run and fixed any issues with these commands: - `cargo fmt --all -- --check` to check standard code formatting (`cargo fmt --all` applies these changes) - `cargo clippy --workspace -- -D warnings -D clippy::unwrap_used` to check that you're using the standard code style - `cargo test --workspace` to check that all tests pass (on Windows make sure to [enable developer mode](https://learn.microsoft.com/en-us/windows/apps/get-started/developer-mode-features-and-debugging)) - `cargo run -- -c "use std testing; testing run-tests --path crates/nu-std"` to run the tests for the standard library > **Note** > from `nushell` you can also use the `toolkit` as follows > ```bash > use toolkit.nu # or use an `env_change` hook to activate it automatically > toolkit check pr > ``` --> # After Submitting <!-- If your PR had any user-facing changes, update [the documentation](https://github.com/nushell/nushell.github.io) after the PR is merged, if necessary. This will help us keep the docs up to date. -->
This commit is contained in:
parent
679879f79b
commit
eeade99452
@ -106,8 +106,13 @@ static MAP_BY_NAME: Lazy<HashMap<&'static str, char>> = Lazy::new(|| {
|
|||||||
("config", '\u{e5fc}'), //
|
("config", '\u{e5fc}'), //
|
||||||
("docker-compose.yml", '\u{f308}'), //
|
("docker-compose.yml", '\u{f308}'), //
|
||||||
("Dockerfile", '\u{f308}'), //
|
("Dockerfile", '\u{f308}'), //
|
||||||
|
("Earthfile", '\u{f0ac}'), //
|
||||||
("ds_store", '\u{f179}'), //
|
("ds_store", '\u{f179}'), //
|
||||||
("gitignore_global", '\u{f1d3}'), //
|
("gitignore_global", '\u{f1d3}'), //
|
||||||
|
("gitlab-ci.yml", '\u{f296}'), //
|
||||||
|
("go.mod", '\u{e626}'), //
|
||||||
|
("go.sum", '\u{e626}'), //
|
||||||
|
("gradle", '\u{e256}'), //
|
||||||
("gradle", '\u{e70e}'), //
|
("gradle", '\u{e70e}'), //
|
||||||
("gruntfile.coffee", '\u{e611}'), //
|
("gruntfile.coffee", '\u{e611}'), //
|
||||||
("gruntfile.js", '\u{e611}'), //
|
("gruntfile.js", '\u{e611}'), //
|
||||||
@ -176,10 +181,13 @@ pub fn icon_for_file(file_path: &Path, span: Span) -> Result<char, ShellError> {
|
|||||||
)
|
)
|
||||||
})?;
|
})?;
|
||||||
Ok(match str {
|
Ok(match str {
|
||||||
|
"a" => '\u{f17c}', //
|
||||||
|
"acf" => '\u{f1b6}', //
|
||||||
"ai" => '\u{e7b4}', //
|
"ai" => '\u{e7b4}', //
|
||||||
"android" => '\u{e70e}', //
|
"android" => '\u{e70e}', //
|
||||||
"apk" => '\u{e70e}', //
|
"apk" => '\u{e70e}', //
|
||||||
"apple" => '\u{f179}', //
|
"apple" => '\u{f179}', //
|
||||||
|
"asm" => '\u{e637}', //
|
||||||
"avi" => '\u{f03d}', //
|
"avi" => '\u{f03d}', //
|
||||||
"avro" => '\u{e60b}', //
|
"avro" => '\u{e60b}', //
|
||||||
"awk" => '\u{f489}', //
|
"awk" => '\u{f489}', //
|
||||||
@ -187,24 +195,30 @@ pub fn icon_for_file(file_path: &Path, span: Span) -> Result<char, ShellError> {
|
|||||||
"bash_history" => '\u{f489}', //
|
"bash_history" => '\u{f489}', //
|
||||||
"bash_profile" => '\u{f489}', //
|
"bash_profile" => '\u{f489}', //
|
||||||
"bashrc" => '\u{f489}', //
|
"bashrc" => '\u{f489}', //
|
||||||
"bat" => '\u{f17a}', //
|
"bat" => '\u{ebc4}', //
|
||||||
|
"bib" => '\u{e69b}', //
|
||||||
|
"bin" => '\u{eae8}', //
|
||||||
"bmp" => '\u{f1c5}', //
|
"bmp" => '\u{f1c5}', //
|
||||||
|
"bst" => '\u{e69b}', //
|
||||||
"bz" => '\u{f410}', //
|
"bz" => '\u{f410}', //
|
||||||
"bz2" => '\u{f410}', //
|
"bz2" => '\u{f410}', //
|
||||||
"c" => '\u{e61e}', //
|
"c" => '\u{e61e}', //
|
||||||
"c++" => '\u{e61d}', //
|
"c++" => '\u{e61d}', //
|
||||||
"cab" => '\u{e70f}', //
|
"cab" => '\u{e70f}', //
|
||||||
"cc" => '\u{e61d}', //
|
"cc" => '\u{e61d}', //
|
||||||
|
"cert" => '\u{eafa}', //
|
||||||
"cfg" => '\u{e615}', //
|
"cfg" => '\u{e615}', //
|
||||||
"class" => '\u{e256}', //
|
"class" => '\u{e256}', //
|
||||||
"clj" => '\u{e768}', //
|
"clj" => '\u{e768}', //
|
||||||
"cljs" => '\u{e76a}', //
|
"cljs" => '\u{e76a}', //
|
||||||
"cls" => '\u{e600}', //
|
"cls" => '\u{e69b}', //
|
||||||
"cmd" => '\u{e70f}', //
|
"cmd" => '\u{e70f}', //
|
||||||
"coffee" => '\u{f0f4}', //
|
"coffee" => '\u{f0f4}', //
|
||||||
"conf" => '\u{e615}', //
|
"conf" => '\u{e615}', //
|
||||||
|
"config" => '\u{e615}', //
|
||||||
"cp" => '\u{e61d}', //
|
"cp" => '\u{e61d}', //
|
||||||
"cpp" => '\u{e61d}', //
|
"cpp" => '\u{e61d}', //
|
||||||
|
"crt" => '\u{eafa}', //
|
||||||
"cs" => '\u{f031b}', //
|
"cs" => '\u{f031b}', //
|
||||||
"csh" => '\u{f489}', //
|
"csh" => '\u{f489}', //
|
||||||
"cshtml" => '\u{f1fa}', //
|
"cshtml" => '\u{f1fa}', //
|
||||||
@ -212,16 +226,19 @@ pub fn icon_for_file(file_path: &Path, span: Span) -> Result<char, ShellError> {
|
|||||||
"css" => '\u{e749}', //
|
"css" => '\u{e749}', //
|
||||||
"csv" => '\u{f1c3}', //
|
"csv" => '\u{f1c3}', //
|
||||||
"csx" => '\u{f031b}', //
|
"csx" => '\u{f031b}', //
|
||||||
|
"cu" => '\u{e64b}', //
|
||||||
"cxx" => '\u{e61d}', //
|
"cxx" => '\u{e61d}', //
|
||||||
"d" => '\u{e7af}', //
|
"d" => '\u{e7af}', //
|
||||||
"dart" => '\u{e798}', //
|
"dart" => '\u{e798}', //
|
||||||
"db" => '\u{f1c0}', //
|
"db" => '\u{f1c0}', //
|
||||||
"deb" => '\u{e77d}', //
|
"deb" => '\u{e77d}', //
|
||||||
|
"desktop" => '\u{ebd1}', //
|
||||||
"diff" => '\u{f440}', //
|
"diff" => '\u{f440}', //
|
||||||
"djvu" => '\u{f02d}', //
|
"djvu" => '\u{f02d}', //
|
||||||
"dll" => '\u{e70f}', //
|
"dll" => '\u{e70f}', //
|
||||||
"doc" => '\u{f1c2}', //
|
"doc" => '\u{f1c2}', //
|
||||||
"docx" => '\u{f1c2}', //
|
"docx" => '\u{f1c2}', //
|
||||||
|
"drawio" => '\u{ebba}', //
|
||||||
"ds_store" => '\u{f179}', //
|
"ds_store" => '\u{f179}', //
|
||||||
"DS_store" => '\u{f179}', //
|
"DS_store" => '\u{f179}', //
|
||||||
"dump" => '\u{f1c0}', //
|
"dump" => '\u{f1c0}', //
|
||||||
@ -229,6 +246,7 @@ pub fn icon_for_file(file_path: &Path, span: Span) -> Result<char, ShellError> {
|
|||||||
"editorconfig" => '\u{e615}', //
|
"editorconfig" => '\u{e615}', //
|
||||||
"ejs" => '\u{e618}', //
|
"ejs" => '\u{e618}', //
|
||||||
"elm" => '\u{e62c}', //
|
"elm" => '\u{e62c}', //
|
||||||
|
"eml" => '\u{f003}', //
|
||||||
"env" => '\u{f462}', //
|
"env" => '\u{f462}', //
|
||||||
"eot" => '\u{f031}', //
|
"eot" => '\u{f031}', //
|
||||||
"epub" => '\u{e28a}', //
|
"epub" => '\u{e28a}', //
|
||||||
@ -265,6 +283,8 @@ pub fn icon_for_file(file_path: &Path, span: Span) -> Result<char, ShellError> {
|
|||||||
"htm" => '\u{f13b}', //
|
"htm" => '\u{f13b}', //
|
||||||
"html" => '\u{f13b}', //
|
"html" => '\u{f13b}', //
|
||||||
"hxx" => '\u{f0fd}', //
|
"hxx" => '\u{f0fd}', //
|
||||||
|
"ical" => '\u{eab0}', //
|
||||||
|
"icalendar" => '\u{eab0}', //
|
||||||
"ico" => '\u{f1c5}', //
|
"ico" => '\u{f1c5}', //
|
||||||
"image" => '\u{f1c5}', //
|
"image" => '\u{f1c5}', //
|
||||||
"iml" => '\u{e7b5}', //
|
"iml" => '\u{e7b5}', //
|
||||||
@ -279,8 +299,12 @@ pub fn icon_for_file(file_path: &Path, span: Span) -> Result<char, ShellError> {
|
|||||||
"js" => '\u{e74e}', //
|
"js" => '\u{e74e}', //
|
||||||
"json" => '\u{e60b}', //
|
"json" => '\u{e60b}', //
|
||||||
"jsx" => '\u{e7ba}', //
|
"jsx" => '\u{e7ba}', //
|
||||||
|
"kdb" => '\u{f23e}', //
|
||||||
|
"kdbx" => '\u{f23e}', //
|
||||||
|
"key" => '\u{eb11}', //
|
||||||
|
"ko" => '\u{f17c}', //
|
||||||
"ksh" => '\u{f489}', //
|
"ksh" => '\u{f489}', //
|
||||||
"latex" => '\u{e600}', //
|
"latex" => '\u{e69b}', //
|
||||||
"less" => '\u{e758}', //
|
"less" => '\u{e758}', //
|
||||||
"lhs" => '\u{e777}', //
|
"lhs" => '\u{e777}', //
|
||||||
"license" => '\u{f0fc3}', //
|
"license" => '\u{f0fc3}', //
|
||||||
@ -293,8 +317,13 @@ pub fn icon_for_file(file_path: &Path, span: Span) -> Result<char, ShellError> {
|
|||||||
"lzma" => '\u{f410}', //
|
"lzma" => '\u{f410}', //
|
||||||
"lzo" => '\u{f410}', //
|
"lzo" => '\u{f410}', //
|
||||||
"m" => '\u{e61e}', //
|
"m" => '\u{e61e}', //
|
||||||
|
"ml" => '\u{e67a}', //
|
||||||
|
"mli" => '\u{e67a}', //
|
||||||
|
"mll" => '\u{e67a}', //
|
||||||
|
"mly" => '\u{e67a}', //
|
||||||
"mm" => '\u{e61d}', //
|
"mm" => '\u{e61d}', //
|
||||||
"m4a" => '\u{f001}', //
|
"m4a" => '\u{f001}', //
|
||||||
|
"magnet" => '\u{f076}', //
|
||||||
"markdown" => '\u{f48a}', //
|
"markdown" => '\u{f48a}', //
|
||||||
"md" => '\u{f48a}', //
|
"md" => '\u{f48a}', //
|
||||||
"mjs" => '\u{e74e}', //
|
"mjs" => '\u{e74e}', //
|
||||||
@ -309,14 +338,17 @@ pub fn icon_for_file(file_path: &Path, span: Span) -> Result<char, ShellError> {
|
|||||||
"nix" => '\u{f313}', //
|
"nix" => '\u{f313}', //
|
||||||
"node" => '\u{f0399}', //
|
"node" => '\u{f0399}', //
|
||||||
"npmignore" => '\u{e71e}', //
|
"npmignore" => '\u{e71e}', //
|
||||||
|
"o" => '\u{eae8}', //
|
||||||
"odp" => '\u{f1c4}', //
|
"odp" => '\u{f1c4}', //
|
||||||
"ods" => '\u{f1c3}', //
|
"ods" => '\u{f1c3}', //
|
||||||
"odt" => '\u{f1c2}', //
|
"odt" => '\u{f1c2}', //
|
||||||
"ogg" => '\u{f001}', //
|
"ogg" => '\u{f001}', //
|
||||||
"ogv" => '\u{f03d}', //
|
"ogv" => '\u{f03d}', //
|
||||||
"otf" => '\u{f031}', //
|
"otf" => '\u{f031}', //
|
||||||
|
"out" => '\u{eb2c}', //
|
||||||
"patch" => '\u{f440}', //
|
"patch" => '\u{f440}', //
|
||||||
"pdf" => '\u{f1c1}', //
|
"pdf" => '\u{f1c1}', //
|
||||||
|
"pem" => '\u{eb11}', //
|
||||||
"php" => '\u{e73d}', //
|
"php" => '\u{e73d}', //
|
||||||
"pl" => '\u{e769}', //
|
"pl" => '\u{e769}', //
|
||||||
"png" => '\u{f1c5}', //
|
"png" => '\u{f1c5}', //
|
||||||
@ -324,11 +356,14 @@ pub fn icon_for_file(file_path: &Path, span: Span) -> Result<char, ShellError> {
|
|||||||
"pptx" => '\u{f1c4}', //
|
"pptx" => '\u{f1c4}', //
|
||||||
"procfile" => '\u{e21e}', //
|
"procfile" => '\u{e21e}', //
|
||||||
"properties" => '\u{e60b}', //
|
"properties" => '\u{e60b}', //
|
||||||
"ps1" => '\u{f489}', //
|
"ps1" => '\u{ebc7}', //
|
||||||
"psd" => '\u{e7b8}', //
|
"psd" => '\u{e7b8}', //
|
||||||
|
"psd1" => '\u{ebc7}', //
|
||||||
|
"psm1" => '\u{ebc7}', //
|
||||||
"pxm" => '\u{f1c5}', //
|
"pxm" => '\u{f1c5}', //
|
||||||
"py" => '\u{e606}', //
|
"py" => '\u{e606}', //
|
||||||
"pyc" => '\u{e606}', //
|
"pyc" => '\u{e606}', //
|
||||||
|
"qcow2" => '\u{e271}', //
|
||||||
"r" => '\u{f25d}', //
|
"r" => '\u{f25d}', //
|
||||||
"rakefile" => '\u{e21e}', //
|
"rakefile" => '\u{e21e}', //
|
||||||
"rar" => '\u{f410}', //
|
"rar" => '\u{f410}', //
|
||||||
@ -350,9 +385,11 @@ pub fn icon_for_file(file_path: &Path, span: Span) -> Result<char, ShellError> {
|
|||||||
"rtf" => '\u{f0219}', //
|
"rtf" => '\u{f0219}', //
|
||||||
"ru" => '\u{e21e}', //
|
"ru" => '\u{e21e}', //
|
||||||
"rubydoc" => '\u{e73b}', //
|
"rubydoc" => '\u{e73b}', //
|
||||||
|
"s" => '\u{e637}', //
|
||||||
"sass" => '\u{e603}', //
|
"sass" => '\u{e603}', //
|
||||||
"scala" => '\u{e737}', //
|
"scala" => '\u{e737}', //
|
||||||
"scss" => '\u{e749}', //
|
"scss" => '\u{e749}', //
|
||||||
|
"service" => '\u{eba2}', //
|
||||||
"sh" => '\u{f489}', //
|
"sh" => '\u{f489}', //
|
||||||
"shell" => '\u{f489}', //
|
"shell" => '\u{f489}', //
|
||||||
"slim" => '\u{e73b}', //
|
"slim" => '\u{e73b}', //
|
||||||
@ -360,6 +397,7 @@ pub fn icon_for_file(file_path: &Path, span: Span) -> Result<char, ShellError> {
|
|||||||
"so" => '\u{f17c}', //
|
"so" => '\u{f17c}', //
|
||||||
"sql" => '\u{f1c0}', //
|
"sql" => '\u{f1c0}', //
|
||||||
"sqlite3" => '\u{e7c4}', //
|
"sqlite3" => '\u{e7c4}', //
|
||||||
|
"sty" => '\u{e69b}', //
|
||||||
"styl" => '\u{e600}', //
|
"styl" => '\u{e600}', //
|
||||||
"stylus" => '\u{e600}', //
|
"stylus" => '\u{e600}', //
|
||||||
"svg" => '\u{f1c5}', //
|
"svg" => '\u{f1c5}', //
|
||||||
@ -368,7 +406,7 @@ pub fn icon_for_file(file_path: &Path, span: Span) -> Result<char, ShellError> {
|
|||||||
"taz" => '\u{f410}', //
|
"taz" => '\u{f410}', //
|
||||||
"tbz" => '\u{f410}', //
|
"tbz" => '\u{f410}', //
|
||||||
"tbz2" => '\u{f410}', //
|
"tbz2" => '\u{f410}', //
|
||||||
"tex" => '\u{e600}', //
|
"tex" => '\u{e69b}', //
|
||||||
"tiff" => '\u{f1c5}', //
|
"tiff" => '\u{f1c5}', //
|
||||||
"toml" => '\u{e615}', //
|
"toml" => '\u{e615}', //
|
||||||
"ts" => '\u{e628}', //
|
"ts" => '\u{e628}', //
|
||||||
@ -379,8 +417,13 @@ pub fn icon_for_file(file_path: &Path, span: Span) -> Result<char, ShellError> {
|
|||||||
"txt" => '\u{f15c}', //
|
"txt" => '\u{f15c}', //
|
||||||
"tz" => '\u{f410}', //
|
"tz" => '\u{f410}', //
|
||||||
"tzo" => '\u{f410}', //
|
"tzo" => '\u{f410}', //
|
||||||
|
"unity" => '\u{e721}', //
|
||||||
|
"unity3d" => '\u{e721}', //
|
||||||
|
"vdi" => '\u{e271}', //
|
||||||
|
"vhd" => '\u{e271}', //
|
||||||
"video" => '\u{f03d}', //
|
"video" => '\u{f03d}', //
|
||||||
"vim" => '\u{e62b}', //
|
"vim" => '\u{e62b}', //
|
||||||
|
"vmdk" => '\u{e271}', //
|
||||||
"vue" => '\u{f0844}', //
|
"vue" => '\u{f0844}', //
|
||||||
"war" => '\u{e256}', //
|
"war" => '\u{e256}', //
|
||||||
"wav" => '\u{f001}', //
|
"wav" => '\u{f001}', //
|
||||||
@ -391,6 +434,7 @@ pub fn icon_for_file(file_path: &Path, span: Span) -> Result<char, ShellError> {
|
|||||||
"woff2" => '\u{f031}', //
|
"woff2" => '\u{f031}', //
|
||||||
"xhtml" => '\u{f13b}', //
|
"xhtml" => '\u{f13b}', //
|
||||||
"xls" => '\u{f1c3}', //
|
"xls" => '\u{f1c3}', //
|
||||||
|
"xlsm" => '\u{f1c3}', //
|
||||||
"xlsx" => '\u{f1c3}', //
|
"xlsx" => '\u{f1c3}', //
|
||||||
"xml" => '\u{f05c0}', //
|
"xml" => '\u{f05c0}', //
|
||||||
"xul" => '\u{f05c0}', //
|
"xul" => '\u{f05c0}', //
|
||||||
@ -401,6 +445,7 @@ pub fn icon_for_file(file_path: &Path, span: Span) -> Result<char, ShellError> {
|
|||||||
"zsh" => '\u{f489}', //
|
"zsh" => '\u{f489}', //
|
||||||
"zsh-theme" => '\u{f489}', //
|
"zsh-theme" => '\u{f489}', //
|
||||||
"zshrc" => '\u{f489}', //
|
"zshrc" => '\u{f489}', //
|
||||||
|
"7z" => '\u{f410}', //
|
||||||
_ => '\u{f15b}', //
|
_ => '\u{f15b}', //
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user