소스 검색

Document sorting by type

Benjamin Sago 8 년 전
부모
커밋
f61e3853c1
7개의 변경된 파일7개의 추가작업 그리고 6개의 파일을 삭제
  1. 1 1
      README.md
  2. 1 1
      contrib/completions.bash
  3. 1 0
      contrib/completions.fish
  4. 1 1
      contrib/completions.zsh
  5. 1 1
      contrib/man/exa.1
  6. 1 1
      src/options/help.rs
  7. 1 1
      xtests/help

+ 1 - 1
README.md

@@ -53,7 +53,7 @@ These options are available when running with --long (`-l`):
 - **--git**: list each file's Git status, if tracked
 
 - Valid **--color** options are **always**, **automatic**, and **never**.
-- Valid sort fields are **accessed**, **created**, **extension**, **Extension**, **inode**, **modified**, **name**, **Name**, **size**, and **none**. Fields starting with a capital letter are case-sensitive.
+- Valid sort fields are **accessed**, **created**, **extension**, **Extension**, **inode**, **modified**, **name**, **Name**, **size**, **type**, and **none**. Fields starting with a capital letter are case-sensitive.
 - Valid time fields are **modified**, **accessed**, and **created**.
 
 

+ 1 - 1
contrib/completions.bash

@@ -14,7 +14,7 @@ _exa()
             ;;
 
         -s|--sort)
-            COMPREPLY=( $( compgen -W 'name filename Name Filename size filesize extension Extension modified accessed created none inode --' -- "$cur" ) )
+            COMPREPLY=( $( compgen -W 'name filename Name Filename size filesize extension Extension modified accessed created type inode none --' -- "$cur" ) )
             return
             ;;
 

+ 1 - 0
contrib/completions.fish

@@ -36,6 +36,7 @@ complete -c exa -s 's' -l 'sort'   -x -d "Which field to sort by" -a "
     Name\t'Sort by filename (case-insensitive)'
     none\t'Do not sort files at all'
     size\t'Sort by file size'
+    type\t'Sort by file type'
 "
 
 complete -c exa -s 'I' -l 'ignore-glob' -d "Ignore files that match these glob patterns" -r

+ 1 - 1
contrib/completions.zsh

@@ -18,7 +18,7 @@ __exa() {
         {-d,--list-dirs}"[List directories like regular files]" \
         {-L,--level}"+[Limit the depth of recursion]" \
         {-r,--reverse}"[Reverse the sort order]" \
-        {-s,--sort}"[Which field to sort by]:(sort field):(accessed created extension Extension filename Filename inode modified name Name none size)" \
+        {-s,--sort}"[Which field to sort by]:(sort field):(accessed created extension Extension filename Filename inode modified name Name none size type)" \
         {-I,--ignore-glob}"[Ignore files that match these glob patterns]" \
         {-b,--binary}"[List file sizes with binary prefixes]" \
         {-B,--bytes}"[List file sizes in bytes, without any prefixes]" \

+ 1 - 1
contrib/man/exa.1

@@ -76,7 +76,7 @@ reverse the sort order
 .TP
 .B \-s, \-\-sort=\f[I]SORT_FIELD\f[]
 which field to sort by.
-Valid fields are name, Name, extension, Extension, size, modified, accessed, created, inode, and none.
+Valid fields are name, Name, extension, Extension, size, modified, accessed, created, inode, type, and none.
 Fields starting with a capital letter are case-sensitive.
 .RS
 .RE

+ 1 - 1
src/options/help.rs

@@ -23,7 +23,7 @@ FILTERING AND SORTING OPTIONS
   -s, --sort SORT_FIELD      which field to sort by:
   --group-directories-first  list directories before other files
   -I, --ignore-glob GLOBS    glob patterns (pipe-separated) of files to ignore
-  Valid sort fields:         name, Name, extension, Extension, size,
+  Valid sort fields:         name, Name, extension, Extension, size, type,
                              modified, accessed, created, inode, none
 "##;
 

+ 1 - 1
xtests/help

@@ -22,7 +22,7 @@ FILTERING AND SORTING OPTIONS
   -s, --sort SORT_FIELD      which field to sort by:
   --group-directories-first  list directories before other files
   -I, --ignore-glob GLOBS    glob patterns (pipe-separated) of files to ignore
-  Valid sort fields:         name, Name, extension, Extension, size,
+  Valid sort fields:         name, Name, extension, Extension, size, type,
                              modified, accessed, created, inode, none
 
 LONG VIEW OPTIONS