Commit Graph

1482 Commits

Author SHA1 Message Date
a1346054
2bef43fb1b fix whitespace 2021-08-14 22:05:22 +00:00
a1346054
91dcf52972 fix shell script issues identified through shellcheck 2021-08-14 22:04:50 +00:00
Mélanie Chauvel
3f24f7cbcf
Merge pull request #903 from xxkfqz/jpgexts
Add more JPG extensions
2021-08-12 17:20:15 +02:00
Mélanie Chauvel
4c8658ab90
Replace Travis CI badge by GitHub Actions one 2021-08-12 17:18:56 +02:00
Mélanie Chauvel
e7a477eb15
Merge pull request #926 from Freed-Wu/update-zsh-completion
Update zsh completions for '--color'
2021-08-10 17:10:46 +02:00
Mélanie Chauvel
69d5e1fc11
Merge pull request #928 from ariasuni/use-github-actions
use GitHub Actions instead of Travis CI
2021-08-09 16:05:21 +02:00
Mélanie Chauvel
c24afe3a08 use GitHub Actions instead of Travis CI 2021-08-09 16:02:31 +02:00
Mélanie Chauvel
049f766d1d
Merge pull request #920 from j-tai/update-git2
Update git2 dependency (fix build with Rust 1.54)
2021-08-09 15:18:24 +02:00
Freed-Wu
4b6cf1b5a4 Update zsh completions for '--color' 2021-08-07 13:22:15 +08:00
James Tai
c46329efb2 Update git2 package 2021-08-01 15:49:19 -07:00
xxkfqz
8de5b97804 fix: more JPG extensions 2021-07-02 15:02:06 +05:00
Mélanie Chauvel
dc5c42a0f2
Merge pull request #877 from gleich/master
Add icon for .sty file
2021-06-24 11:41:55 +02:00
Mélanie Chauvel
78b46e219e
Merge pull request #899 from kidonng/patch-1
Fix fish completion for `-H` option
2021-06-24 11:39:29 +02:00
Kid
f6b3975562
Fix fish completion for -H option 2021-06-24 17:27:45 +08:00
Matthew Gleich
6a07b59a80 Merge branch 'ogham:master' into master 2021-05-28 11:53:05 -04:00
Mélanie Chauvel
a6754f3cc3
Merge pull request #860 from ariasuni/split-completions-directory-for-each-shell
Rename completion scripts according to each shell conventions
2021-05-19 01:00:58 +02:00
Matthew Gleich
56c78400b8
feat: add sty file
Signed-off-by: Matthew Gleich <git@mattglei.ch>
2021-05-18 00:12:17 -04:00
Mélanie Chauvel
42b546606e
Merge pull request #871 from ariasuni/fix-clippy-warnings-for-rust-1.53
Fix clippy warnings for Rust 1.53
2021-05-17 17:11:11 +02:00
ariasuni
785d6ed991 Fix clippy warnings for Rust 1.53 2021-05-13 02:44:22 +02:00
Mélanie Chauvel
b18e93d283
Merge pull request #866 from ariasuni/fix-clippy-warnings
Fix all remaining clippy warnings
2021-05-08 23:03:54 +02:00
ariasuni
045172bd9e Fix all remaining clippy warnings
- Allow clippy::cast_*: generated warnings are mostly useless
- Fix the other warnings so using clippy is actually useful
2021-05-08 18:09:35 +02:00
Mélanie Chauvel
f8610d05ae
Merge pull request #865 from ariasuni/filter-rs-cleanup
`src/fs/filter.rs` cleanup
2021-05-08 16:37:19 +02:00
ariasuni
86d5939abe Remove unused function 2021-05-08 16:20:17 +02:00
ariasuni
90416ed3ce Update comments about how the --git-ignore option is handled 2021-05-08 16:20:17 +02:00
ariasuni
7c80070120 Update broken link, remove content copied from said link
The old Google+ post is unavailable. The new link points to an article who saved the content and is also available on Wayback Machine.
2021-05-08 16:20:17 +02:00
Mélanie Chauvel
a58ad6487f
Merge pull request #862 from cgzones/clippy
Cleanup clippy warnings
2021-05-08 16:06:49 +02:00
Christian Göttsche
ae62f5d18e Cleanup clippy warnings
Drop unused allow overrides
2021-04-30 15:37:43 +02:00
Christian Göttsche
d253893614 Cleanup clippy warnings
Enable clippy::missing_errors_doc

warning: docs for function returning `Result` missing `# Errors` section
   --> src/main.rs:164:5
    |
164 | /     pub fn run(mut self) -> io::Result<i32> {
165 | |         debug!("Running with options: {:#?}", self.options);
166 | |
167 | |         let mut files = Vec::new();
...   |
202 | |         self.print_dirs(dirs, no_files, is_only_dir, exit_status)
203 | |     }
    | |_____^
    |
2021-04-30 15:37:39 +02:00
Christian Göttsche
61ec153bcd Cleanup clippy warnings
warning: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration)
 --> src/output/escape.rs:4:1
  |
4 | pub fn escape<'a>(string: String, bits: &mut Vec<ANSIString<'a>>, good: Style, bad: Style) {
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |

warning: this lifetime isn't used in the function definition
 --> src/output/escape.rs:4:15
  |
4 | pub fn escape<'a>(string: String, bits: &mut Vec<ANSIString<'_>>, good: Style, bad: Style) {
  |               ^^
  |

warning: single-character string constant used as pattern
   --> src/output/table.rs:310:41
    |
310 |                     if file.starts_with(":") {
    |                                         ^^^ help: try using a `char` instead: `':'`
    |

warning: single-character string constant used as pattern
   --> src/output/table.rs:310:41
    |
310 |                     if file.starts_with(":") {
    |                                         ^^^ help: try using a `char` instead: `':'`
    |

warning: methods called `new` usually return `Self`
  --> src/output/render/git.rs:38:5
   |
38 |     fn new(&self) -> Style;
   |     ^^^^^^^^^^^^^^^^^^^^^^^
   |

warning: this lifetime isn't used in the function definition
  --> src/output/icons.rs:40:22
   |
40 | pub fn iconify_style<'a>(style: Style) -> Style {
   |                      ^^
   |

warning: lint `clippy::find_map` has been removed: this lint has been replaced by `manual_find_map`, a more specific lint
  --> src/main.rs:11:10
   |
11 | #![allow(clippy::find_map)]
   |          ^^^^^^^^^^^^^^^^
   |

warning: redundant else block
   --> src/fs/dir.rs:124:18
    |
124 |               else {
    |  __________________^
125 | |                 return None
126 | |             }
    | |_____________^
    |

warning: redundant else block
  --> src/options/view.rs:60:18
   |
60 |               else {
   |  __________________^
61 | |                 // the --tree case is handled by the DirAction parser later
62 | |                 return Ok(Self::Details(details));
63 | |             }
   | |_____________^
   |

warning: all variants have the same postfix: `Bytes`
   --> src/output/table.rs:170:1
    |
170 | / pub enum SizeFormat {
171 | |
172 | |     /// Format the file size using **decimal** prefixes, such as “kilo”,
173 | |     /// “mega”, or “giga”.
...   |
181 | |     JustBytes,
182 | | }
    | |_^
    |

warning: all variants have the same postfix: `Bytes`
   --> src/output/table.rs:171:1
    |
171 | / pub enum SizeFormat {
172 | |
173 | |     /// Format the file size using **decimal** prefixes, such as “kilo”,
174 | |     /// “mega”, or “giga”.
...   |
182 | |     JustBytes,
183 | | }
    | |_^
    |

warning: useless use of `format!`
   --> src/options/mod.rs:181:50
    |
181 |               return Err(OptionsError::Unsupported(format!(
    |  __________________________________________________^
182 | |                 "Options --git and --git-ignore can't be used because `git` feature was disabled in this build of exa"
183 | |             )));
    | |_____________^ help: consider using `.to_string()`: `"Options --git and --git-ignore can't be used because `git` feature was disabled in this build of exa".to_string()`
    |

warning: stripping a prefix manually
   --> src/fs/filter.rs:287:33
    |
287 |         if n.starts_with('.') { &n[1..] }
    |                                 ^^^^^^^
    |

warning: case-sensitive file extension comparison
  --> src/info/filetype.rs:24:19
   |
24 |         file.name.ends_with(".ninja") ||
   |                   ^^^^^^^^^^^^^^^^^^^
   |
2021-04-30 15:37:31 +02:00
ariasuni
4a81d2df91 Rename completion scripts according to each shell conventions 2021-04-27 01:06:43 +02:00
Mélanie Chauvel
95682f5674
Merge pull request #858 from Prunkles/master
Add F# icons
2021-04-27 01:01:41 +02:00
Mélanie Chauvel
6b8d7fcd70
Merge pull request #850 from ariasuni/replace-term_size-by-terminal_size
Replace unmaintained crate `term_size` by `terminal_size`
2021-04-27 00:57:49 +02:00
ariasuni
a85c72e2a0 Replace unmaintained crate term_size by terminal_size 2021-04-27 00:16:25 +02:00
Haren S
90b97753ad
Update lockfile (#854)
Update lockfile (exa now requires Rust 1.45.2 or higher)

Co-authored-by: Mélanie Chauvel <perso@hack-libre.org>
2021-04-26 23:37:32 +02:00
Prunkles
7a26b4e0f7 Add F# icons 2021-04-26 08:05:05 +03:00
Benjamin Sago
293372a613 v0.10.1 2021-04-12 22:28:31 +01:00
Benjamin Sago
c0df1fb6c2 cargo update 2021-04-12 22:27:59 +01:00
Benjamin Sago
e3e776a1fa Use better icon for TeX files
Fixes GH-777.
2021-04-12 22:23:51 +01:00
Benjamin Sago
1f4e58ee52 Explain Git characters in man page
Fixes GH-778.
2021-04-12 22:17:39 +01:00
Benjamin Sago
dbd11d3804 Add classify char to symlink targets
Fixes GH-589.
2021-04-12 22:02:30 +01:00
Benjamin Sago
b1c49341c0 Add tests for common command-line errors
Specifically, making sure that they start with "exa", which is something that's been bugging me recently.
2021-04-12 21:55:22 +01:00
Benjamin Sago
550f2d29c2 Add context to all option number parse errors
Fixes GH-839.
2021-04-12 21:42:45 +01:00
Benjamin Sago
31043462af Improve help text for -d flag
Fixes GH-202.
2021-04-11 23:43:36 +01:00
Benjamin Sago
311c9baf65 Explain device IDs with a comment 2021-04-11 23:34:29 +01:00
Benjamin Sago
d19d66d57a Fix device IDs test so it works every time
It inadvertently contained the machine build time, which meant it stopped working once the Vagrant machine was rebuild.
2021-04-11 23:34:14 +01:00
Benjamin Sago
051a46c643
Merge pull request #842 from ariasuni/dont-aggregate-git-ignored-status2
Fix deducing git ignored state for files too, not only directories
2021-04-11 20:33:56 +01:00
ariasuni
bfd2644869 Add xtests for new git ignored status deducing logic 2021-04-10 01:42:02 +02:00
Benjamin Sago
f6e66d982d Add tests for device IDs in file size column 2021-04-09 23:59:54 +01:00
ariasuni
bd4f144884 Fix deducing git ignored state for files too, not only directories 2021-04-10 00:56:07 +02:00
Benjamin Sago
6403336028
Merge pull request #841 from ariasuni/dont-aggregate-git-ignored-status
Fix --git deducing ignored state in unintuitive way
2021-04-09 23:12:37 +01:00