Thomas Hurst
acb7c49abf
Improve handling of unavailable timestamps.
...
Previously if a timestamp was unavailable, it defaulted to the epoch.
Prior to this it defaulted to a zero duration.
Switch to an Option<SystemTime> and move the handling of unavailable
timestamps to rendering.
2020-05-19 02:31:15 +00:00
Thomas Hurst
e54e1f53c8
Make logic a little clearer
2020-05-18 23:23:30 +00:00
Thomas Hurst
86163ab298
Restore ctime handling with correct pre-epoch behaviour
2020-05-18 23:21:56 +00:00
Thomas Hurst
d2d2e7325f
Correct handling of pre-epoch timestamps
...
Fix an off-by-one on the seconds when subseconds are present, and
correct display of nenoseconds, which are of course inverted due to the
internal value being negative.
2020-05-18 21:25:07 +00:00
Thomas Hurst
bc830b9158
Handle timestamps before UNIX_EPOCH ( #658 )
...
Instead of returning a Duration since the epoch from file metadata,
which cannot represent times before it, return the SystemTime directly.
Move conversion closer to where it's needed, and perform it infallibly.
2020-05-18 21:03:44 +00:00
Laurent Arnoud
bd655f9c20
Remove unused imports on fs/file.rs
2020-01-19 18:40:34 +01:00
Benjamin Sago
490d9680c2
Merge branch 'fix-handling-maybe-unsupported-time-metadata' of https://github.com/ariasuni/exa into ariasuni-fix-handling-maybe-unsupported-time-metadata
...
# Conflicts:
# src/fs/file.rs
# src/options/filter.rs
# src/options/view.rs
2020-01-19 16:46:51 +00:00
Benjamin Sago
df0d30e966
Merge pull request #624 from ericbn/filetypes
...
Add pom.xml and zwc filetypes
2020-01-19 16:20:59 +00:00
Benjamin Sago
c46dfc8836
Merge pull request #619 from aeonzh/master
...
Better icons spacing
2020-01-19 16:17:13 +00:00
Eric Nielsen
501fbf7182
Add pom.xml and zwc filetypes
...
pom.xml (Maven) is popularly used for Java projects, along with the
already existing build.xml (Ant) and build.gradle (Gradle) immediate
files.
zwc stands for Zsh Word Code and contains compiled Z Shell scripts or
functions.
2020-01-19 09:08:07 -05:00
Benjamin Sago
eaece8cc7a
Merge branch 'master' into customize-size-scale-colours
2020-01-19 09:57:58 +00:00
Benjamin Sago
2382be7524
Merge branch 'master' into add-missing-flags-in-docs
2020-01-19 09:40:22 +00:00
Benjamin Sago
352afd40c3
Merge pull request #598 from FliegendeWurst/s-none-sorting
...
Optimize file table creation, fixes #484 as a side-effect
2020-01-19 09:32:17 +00:00
Benjamin Sago
416818fda2
Merge pull request #597 from FliegendeWurst/bugfixes
...
Two small bugfixes
2020-01-19 00:55:58 +00:00
Benjamin Sago
d13cce7d94
Merge pull request #593 from ariasuni/add-new-filetypes
...
Add a few frequent filetypes
2020-01-19 00:53:34 +00:00
Benjamin Sago
3d82fc7683
Merge pull request #587 from brown121407/master
...
Fix "trait objects without an explicit `dyn` are deprecated"
2020-01-19 00:50:32 +00:00
Benjamin Sago
64bd1b9a55
Merge pull request #584 from msehnout/fix-panic-on-broken-symlink
...
fix panic on broken symlink in git repository
2020-01-19 00:48:07 +00:00
Benjamin Sago
8a711358ee
Merge pull request #579 from ericbn/unused-code
...
Remove unused code in File#get_source_files
2020-01-19 00:42:44 +00:00
Benjamin Sago
1f167dda41
Merge pull request #577 from 0rvar/feature/suppress-columns
...
Add support for suppressing table columns
2020-01-19 00:41:27 +00:00
Benjamin Sago
5521f2d4ab
Merge pull request #560 from horosgrisa/master
...
Add some icons for files
2020-01-19 00:40:13 +00:00
Benjamin Sago
c5a1e8e103
Merge pull request #557 from BrennanMcDonald/master
...
Added checks for modified/accessed/created metadata
2020-01-19 00:39:40 +00:00
Benjamin Sago
404ed20fd3
Merge pull request #552 from j-tai/icons-1-col
...
Display icons when file names are too long for grid
2020-01-19 00:20:18 +00:00
Benjamin Sago
4dab6237f1
Merge pull request #516 from VichoReyes/dothidden
...
Include symlinks to dirs when grouping dirs
2020-01-19 00:16:06 +00:00
Benjamin Sago
e198cac3a7
Merge pull request #509 from emgelb/master
...
Convert default formatting so single-digit hour times are 0-padded
2020-01-19 00:05:07 +00:00
Benjamin Sago
8ccff86940
Merge pull request #450 from Bond-009/2018
...
Update to Rust 2018
2020-01-18 23:23:43 +00:00
Benjamin Sago
44664bf757
Merge pull request #289 from mqudsi/optional_args
...
Optional args support
2020-01-18 23:22:17 +00:00
Zheng He Hu
128fadd8bf
Add better icons spacing
2019-12-29 02:52:18 +01:00
Orvar Segerström
250104c9da
Add new suppress flags to --help
2019-12-23 12:08:03 +01:00
ariasuni
a636d08f8b
Fix handling of potentially unsupported time metadata
...
- Checking on a directory doesn’t tell us if supported elsewhere
(some filesystems, like tmpfs, don’t support created time)
- We want to be able to display a column even if some subfiles or
subdirectories don’t support it
So now if unsupported a time of zero is used, and displayed as `-`
2019-12-20 05:37:29 +01:00
Maarten de Vries
3ef6195ffd
Allow customizing size scale colours.
...
Also adjust the selection of the colour depending on the scale used.
* With decimal prefixes colours change on powers of 1000.
* With binary or no prefixes colours change on powers of 1024.
2019-11-17 16:49:51 +01:00
ecanja
aded70c98e
Add missing flags in documentation files
...
- Update completions
- fish (-D)
- zsh (-D, --changed)
- Update man page (--changed)
- Update README (-F, --changed, --icons)
- Update help text (--changed)
2019-11-12 01:18:51 +01:00
FliegendeWurst
bbd6db3687
Optimize file table creation, fixes #484 as a side-effect
2019-10-12 13:27:59 +02:00
FliegendeWurst
6010ed5213
Use the long view when stdout isn't a terminal and a long grid view was requested ( fixes #522 )
2019-10-12 11:58:31 +02:00
FliegendeWurst
b5b731071c
Escape the delete character in filenames
2019-10-12 11:42:12 +02:00
ariasuni
efbd46351c
Add a few frequent filetypes
2019-10-03 22:45:21 +02:00
Alexandru-Sergiu Marton
f6071e9c46
Fix "trait objects without an explicit dyn
are deprecated"
2019-10-01 18:55:09 +03:00
Martin Sehnoutka
a7a8e99cf3
fix panic on broken symlink in git repository
...
The issue including reproducer is described here:
https://github.com/ogham/exa/issues/526
This commit includes proposed change as well as integration test.
2019-09-15 16:56:58 +02:00
Eric Nielsen
cb933a6f62
Remove unused code in File#get_source_files
...
as the "class", "elc", "hi", "o", "pyc" extensions are first tested in
FileExtensions#is_compiled, so removed code is redundant and neved
called.
2019-09-10 09:51:08 -05:00
Vicente Reyes
69a7e53ee3
include symlinks to dirs when grouping dirs
...
When using the option --group-directories-first, symlinks to directories
are now first too.
2019-09-04 14:16:16 -04:00
Orvar Segerström
925f5173c1
Add support for suppressing table columns
2019-08-29 14:34:30 +02:00
Grigorii Horos
f4f83f4d37
Add some icons for files
2019-08-04 05:40:28 +03:00
Grigorii Horos
f9540ead5b
Align file
2019-08-04 01:14:52 +03:00
Grigorii Horos
e45fb7a0a7
Add some icons for files
2019-08-04 00:22:42 +03:00
Grigorii Horos
0d3023657b
Add some icons for files
2019-08-03 23:41:52 +03:00
Brennan McDonald
215b779d35
Fixed copy-paste bug in access times.
2019-08-03 11:07:16 -07:00
Brennan McDonald
f19f7be726
Updated file.rs
...
Added checks to `file.rs` to ensure that file's metadata exists after `UNIX_EPOCH`.
If the file was accessed/modified/created after UNIX_EPOCH, the current day is displayed.
2019-07-31 15:43:31 -07:00
James Tai
dd9dffff8c
Display icons when file names are too long for grid
...
Fixes ogham/exa#548
2019-07-30 18:33:12 -07:00
Bond_009
8b60285320
Fix build without default features
2019-07-19 20:40:21 +02:00
Bond_009
f599c7ce93
Update to Rust 2018
2019-07-19 20:40:21 +02:00
Oleksii Filonenko
58c821be6e
Add documentation for --icons flag
...
- Update completions
- fish
- zsh
- Update man page
- Update help text
2019-07-19 09:58:50 +03:00