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
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
xxkfqz
8de5b97804
fix: more JPG extensions
2021-07-02 15:02:06 +05:00
Matthew Gleich
56c78400b8
feat: add sty file
...
Signed-off-by: Matthew Gleich <git@mattglei.ch>
2021-05-18 00:12:17 -04:00
ariasuni
785d6ed991
Fix clippy warnings for Rust 1.53
2021-05-13 02:44:22 +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
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
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
Mélanie Chauvel
95682f5674
Merge pull request #858 from Prunkles/master
...
Add F# icons
2021-04-27 01:01:41 +02:00
ariasuni
a85c72e2a0
Replace unmaintained crate term_size
by terminal_size
2021-04-27 00:16:25 +02:00
Prunkles
7a26b4e0f7
Add F# icons
2021-04-26 08:05:05 +03:00
Benjamin Sago
e3e776a1fa
Use better icon for TeX files
...
Fixes GH-777.
2021-04-12 22:23:51 +01:00
Benjamin Sago
dbd11d3804
Add classify char to symlink targets
...
Fixes GH-589.
2021-04-12 22:02:30 +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
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
Benjamin Sago
e86f2b938b
Merge pull request #837 from ariasuni/fix-month-name-not-translated
...
Fix month name not following locale when date is in current year
2021-04-09 23:11:28 +01:00
ariasuni
8c10feec51
Fix --git deducing ignored state in unintuitive way
...
It makes sense to consider that a directory has the aggregated status of all the files under it.
The exception is that for the ignored status, it’s more useful and intuitive to consider that it applies to everything under it.
- A directory containing an ignored file is no longer considered ignored
- A file inside an ignored directory is now considered ignored
2021-04-09 21:47:42 +02:00
ariasuni
3a8005c840
Fix month name not following locale when date is in current year
2021-04-09 17:54:18 +02:00
ariasuni
c729e226da
Fix EXA_GRID_ROWS not working in some cases
2021-04-09 17:48:00 +02:00
ariasuni
7a4cde75eb
Use thousand separators again and fix alignement when it’s not ASCII
2021-04-06 16:23:30 +02:00
Benjamin Sago
8c34b46a22
Version output changes
...
• Bring what's shown in the version string in line with my other projects (URL, description, git hash and date for release-mode non-final builds only, potential for colours in the future)
• Show +git or -git depending on feature status
• Tests for the above, and for checking that the command-line flag is warned about
2021-04-03 17:41:48 +01:00
Benjamin Sago
701a2e60e5
Add 'exa: ' before all command-line errors
2021-04-01 11:25:50 +01:00
Benjamin Sago
622904d07c
Fix integration tests after merged PRs
...
• The spaces between icons and filenames are now coloured too
• Some icons are different
• File sizes are now more accurate
• New help text, which needed a newline at the end
2021-04-01 10:19:34 +01:00
Benjamin Sago
4a108c1786
Fix a new compile-time warning
2021-04-01 09:39:12 +01:00
Benjamin Sago
c1435411c3
Merge pull request #813 from b05902132/numeric_gid_uid
...
Add options for -n or --numeric-gid-uid.
2021-04-01 09:18:59 +01:00
b05902132
2f72b3ff3a
Use --numeric instead of --numeric-uid-gid.
2021-03-31 21:48:59 +08:00
b05902132
53ccf18746
Add test for parsing '--numeric-uid-gid'.
2021-03-31 21:48:59 +08:00
b05902132
76f20f8b7d
Add strictness check for '-n'.
2021-03-31 21:48:59 +08:00
b05902132
46a3e59e66
Some minor fixes
...
Co-authored-by: Mélanie Chauvel <perso@hack-libre.org>
Also add more spaces to make the descriptions of other options align that of `-n`.
2021-03-31 21:48:34 +08:00
Benjamin Sago
f27fb2ab7a
Merge pull request #822 from ariasuni/fix-exa-rounding
...
Fix a rounding error in human readable filesizes
2021-03-30 14:50:29 +01:00
Benjamin Sago
96e3f3d8d3
Merge pull request #818 from PatriotRossii/feature/determine_time_zone
...
Update determine_time_zone according to GNU manual
2021-03-30 14:49:48 +01:00
Benjamin Sago
96e9307b99
Merge pull request #790 from ariasuni/fix-too-many-headers-in-grid-details
...
Don’t produce extra column sometimes with long grid + header
2021-03-30 14:37:52 +01:00
Benjamin Sago
3c69169993
Merge pull request #784 from ariasuni/fix-icons-not-showing-right-in-konsole
...
Use same styling for spaces between icon and file name
2021-03-30 00:18:39 +01:00
Benjamin Sago
e6edb888a0
Merge pull request #762 from ariasuni/warm-when-git-feature-is-disabled
...
Warm when git feature is disabled instead of ignoring flags
2021-03-29 23:51:30 +01:00
Benjamin Sago
005a174e60
Merge pull request #759 from stuartcarnie/sgc/icons
...
feat: New Icons and CLI argument to suppress icons
2021-03-29 23:09:26 +01:00
ariasuni
74ecf6d311
Fix a rounding error in human readable filesizes
2021-03-27 18:54:00 +01:00
PatriotRossii
4e5e2ce8f0
Replace "replace" with "replacen"
2021-03-25 11:20:11 +05:00
PatriotRossii
5743e6d8e3
Replace strip_prefix with replace
2021-03-24 19:05:38 +05:00
PatriotRossii
57cf0f1b23
Update determine_time_zone according to GNU manual
2021-03-24 17:36:13 +05:00
b05902132
4ea79ee11d
Add options for -n or --numeric-gid-uid.
...
This option is only avaialable in -l.
There's test for rendering, but no test for option parsing.
(I don't understand that section of code.)
2021-03-19 09:49:17 +08:00
Stuart Carnie
c946bab08e
chore: PR feedback
2021-02-28 07:48:00 +11:00
Stuart Carnie
765fcf64c9
Update src/output/icons.rs
...
Co-authored-by: Mélanie Chauvel <perso@hack-libre.org>
2021-02-28 07:43:42 +11:00