Commit Graph

1498 Commits

Author SHA1 Message Date
Mélanie Chauvel
a7aca35d97
Merge pull request #957 from hellosway/patch-1
Recognize .jxl and .avif as image files
2021-10-03 01:11:01 +02:00
Mélanie Chauvel
35aeac759e
Merge pull request #964 from jim4067/icons-patch
fix: add compression icon to .tXX files
2021-10-03 00:50:29 +02:00
jim4067
247d1345e7 fix: add compression icon to .tXX files #930 2021-10-02 20:05:32 +03:00
hellosway
1c36b71779
Add avif and jxl icons 2021-09-27 16:36:17 -07:00
hellosway
659def7138
Recognize .jxl and .avif as image files 2021-09-22 17:07:06 -07:00
Mélanie Chauvel
ec786201c8
Merge pull request #907 from ariasuni/update-cargo-toml-for-cargo-deb
Update Cargo.toml for cargo-deb
2021-09-17 21:09:26 +02:00
ariasuni
d2b6cc9185 Update build.rs to print path when writing version_string.txt fails 2021-09-17 20:58:49 +02:00
ariasuni
75f14d23a3 Update Cargo.toml to make cargo-deb work again 2021-09-17 20:58:49 +02:00
Joshua Gawley
11793973fe
Add Makefile icon (#945)
* Add icon for .mk files
* Updated icon for Makefile
2021-09-03 18:10:15 +02:00
Mélanie Chauvel
257786749f
Merge pull request #870 from ariasuni/fix-panic-on-non-utf8-file-when-using-git
Fix panic on non UTF-8 file when using Git
2021-09-01 22:59:14 +02:00
Mélanie Chauvel
fe11b9d319 Fix panic on non UTF-8 file when using Git 2021-09-01 22:42:34 +02:00
Mélanie Chauvel
aff35a1643
Merge pull request #940 from izhakjakov/master
Add extension ".bkp" as temp file
2021-09-01 22:38:38 +02:00
Izhak Jakov
5f49a2e840 Add extension ".bkp" as temp file 2021-08-22 21:11:35 -04:00
Mélanie Chauvel
439b629d90
Merge pull request #933 from billrisher/fix/add_podfile_to_immediate
Added 'Podfile' to list of immediate files
2021-08-20 18:18:06 +02:00
Mélanie Chauvel
26b40bf773
Merge pull request #932 from a1346054/master
Minor cleanup
2021-08-18 19:01:19 +02:00
Bill Risher
79cd5d448a Added 'Podfile' to list of immediate files 2021-08-17 21:21:02 -05:00
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