Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
vnotepad
Exa
提交
c946bab0
E
Exa
项目概览
vnotepad
/
Exa
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
E
Exa
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
c946bab0
编写于
2月 28, 2021
作者:
S
Stuart Carnie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: PR feedback
上级
765fcf64
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
8 addition
and
8 deletion
+8
-8
README.md
README.md
+1
-0
completions/completions.fish
completions/completions.fish
+1
-0
man/exa.1.md
man/exa.1.md
+3
-0
src/options/file_name.rs
src/options/file_name.rs
+1
-6
src/options/help.rs
src/options/help.rs
+1
-1
src/output/icons.rs
src/output/icons.rs
+1
-1
未找到文件。
README.md
浏览文件 @
c946bab0
...
...
@@ -47,6 +47,7 @@ exa’s options are almost, but not quite, entirely unlike `ls`’s.
-
*
*--colo
[
u
]
r**
:
when to use terminal colours
-
*
*--colo
[
u
]
r-scale**
:
highlight levels of file sizes distinctly
-
*
*--icons
**
:
display icons
-
*
*--no-icons
**
:
don't display icons (always overrides --icons)
### Filtering options
...
...
completions/completions.fish
浏览文件 @
c946bab0
...
...
@@ -15,6 +15,7 @@ complete -c exa -l 'colour' -d "When to use terminal colours"
complete -c exa -l 'color-scale' -d "Highlight levels of file sizes distinctly"
complete -c exa -l 'colour-scale' -d "Highlight levels of file sizes distinctly"
complete -c exa -l 'icons' -d "Display icons"
complete -c exa -l 'no-icons' -d "Don't display icons"
# Filtering and sorting options
complete -c exa -l 'group-directories-first' -d "Sort directories before other files"
...
...
man/exa.1.md
浏览文件 @
c946bab0
...
...
@@ -72,6 +72,9 @@ Valid settings are ‘`always`’, ‘`automatic`’, and ‘`never`’.
`--icons`
: Display icons next to file names.
`--no-icons`
: Don't display icons. (Always overrides --icons)
FILTERING AND SORTING OPTIONS
=============================
...
...
src/options/file_name.rs
浏览文件 @
c946bab0
...
...
@@ -24,13 +24,8 @@ impl Classify {
}
impl
ShowIcons
{
fn
enable_icons
(
matches
:
&
MatchedFlags
<
'_
>
)
->
bool
{
matches
.has
(
&
flags
::
ICONS
)
.unwrap_or_default
()
&&
!
matches
.has
(
&
flags
::
NO_ICONS
)
.unwrap_or_default
()
}
pub
fn
deduce
<
V
:
Vars
>
(
matches
:
&
MatchedFlags
<
'_
>
,
vars
:
&
V
)
->
Result
<
Self
,
OptionsError
>
{
if
!
Self
::
enable_icons
(
matches
)
{
if
matches
.has
(
&
flags
::
NO_ICONS
)
?
||
!
matches
.has
(
&
flags
::
ICONS
)
?
{
Ok
(
Self
::
Off
)
}
else
if
let
Some
(
columns
)
=
vars
.get
(
vars
::
EXA_ICON_SPACING
)
.and_then
(|
s
|
s
.into_string
()
.ok
())
{
...
...
src/options/help.rs
浏览文件 @
c946bab0
...
...
@@ -23,7 +23,7 @@ DISPLAY OPTIONS
--colo[u]r=WHEN when to use terminal colours (always, auto, never)
--colo[u]r-scale highlight levels of file sizes distinctly
--icons display icons
--no-icons
hide icons (precedence over
--icons)
--no-icons
don't display icons (always overrides
--icons)
FILTERING AND SORTING OPTIONS
-a, --all show hidden and 'dot' files
...
...
src/output/icons.rs
浏览文件 @
c946bab0
...
...
@@ -66,7 +66,7 @@ lazy_static! {
m
.insert
(
"bin"
,
'\
u
{
e5fc
}
'
);
//
m
.insert
(
"config"
,
'\
u
{
e5fc
}
'
);
//
m
.insert
(
"docker-compose.yml"
,
'\
u
{
f308
}
'
);
//
m
.insert
(
"
d
ockerfile"
,
'\
u
{
f308
}
'
);
//
m
.insert
(
"
D
ockerfile"
,
'\
u
{
f308
}
'
);
//
m
.insert
(
"ds_store"
,
'\
u
{
f179
}
'
);
//
m
.insert
(
"gitignore_global"
,
'\
u
{
f1d3
}
'
);
//
m
.insert
(
"gradle"
,
'\
u
{
e70e
}
'
);
//
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录