Gavin Panella
303e254611
Make many structs cloneable.
2019-05-21 12:08:10 +02:00
Gavin Panella
3d8e9c1b78
Populate meta_list only with what we want to display.
2019-05-21 12:08:10 +02:00
Gavin Panella
28623cf6bd
Avoid filtering the metas in the display output code.
2019-05-21 12:08:10 +02:00
Gavin Panella
20e469e804
Use another Display value, as suggested by @meain.
2019-05-21 12:08:10 +02:00
Gavin Panella
65b6acc58e
Accept -d/--directory-only option.
2019-05-21 12:08:10 +02:00
Andrew Hall
833349cb6d
@SpellarBot fixed 6 typos for you :)
2019-05-21 11:44:55 +02:00
Atanas Yankov
79416127c8
Print errors to stderr
2019-05-17 20:26:41 +02:00
Atul Bhosale
f619dc07d6
Format code using 'cargo fmt'
2019-05-17 19:59:19 +02:00
Robert-André Mauchin
822aec4b22
Bump users to 0.9
...
Signed-off-by: Robert-André Mauchin <zebob.m@gmail.com>
2019-04-26 17:19:49 +02:00
Daniel
c4505e61f8
Changed to Self keyword to satisfy clippy
2019-04-10 15:23:16 +02:00
Daniel
6569a5162e
Ported icon tests to Windows
2019-04-10 15:23:16 +02:00
Daniel
f56d9188b3
Ported name tests to Windows
2019-04-10 15:23:16 +02:00
Daniel
36f7b35025
Ported date tests to Windows
2019-04-10 15:23:16 +02:00
Daniel
625f4924f8
Ported filetype tests to Windows
2019-04-10 15:23:16 +02:00
Daniel
39b73daadf
Tweaked sort test to work on Windows
...
Windows doesn't have `touch`, but it does have Powershell, which can
also change timestamps. The relevant command is:
$(Get-Item name).lastwritetime=$(Get-Date "MM/DD/YYYY")
2019-04-10 15:23:16 +02:00
Daniel
82bd588a05
Fixed warnings on Windows
2019-04-10 15:23:16 +02:00
Daniel
289e906478
Added basic FileType::new() implementation
...
Nothing fancy; it just avoids using the Unix FileTypeExt. Device files,
sockets, and pipes aren't a part of the regular file tree on Windows, so
it makes sense to ignore them for now.
2019-04-10 15:23:16 +02:00
Daniel
9316300adf
Implemented get_file_data
...
Also added a few supporting functions.
Every unsafe block (and there are many) has a list of assumptions that
must be true. Most of them are easy to verify: for example, almost all
pointers indicate something in the *sd_ptr buffer, which lives until the
very end. The rest of the pointers are to something Rust allocated, so
they'll also live to the end of the function.
2019-04-10 15:23:16 +02:00
Daniel
95c7679985
Added utilities for working win Windows API calls
2019-04-10 15:23:16 +02:00
Daniel
038f318ad3
Tests compile on Windows
...
Just shut off a bunch of test sections. Probably most can remain as long
as some of them get broken out into separate unix-only test sections.
2019-04-10 15:23:16 +02:00
Daniel
0f2f3ca12a
Added Owner::new() constructor
...
This allows the Owner to be constructed from the raw strings by the
Windows code.
2019-04-10 15:23:16 +02:00
Daniel
63b2955d3f
Added winapi dependency
2019-04-10 15:23:16 +02:00
Daniel
6a022c01bf
Compiles on Windows with new windows_utils module
...
windows_utils will be responsible for safely wrapping WinAPI calls. This
should result in minimal changes to the interfaces of the existing
modules: all that is needed is new (very simple) constructors.
2019-04-10 15:23:16 +02:00
João Costa
0dbc3b3a62
Make the --tree flag respect the --group-dirs value
2019-04-07 20:33:42 +02:00
H. Emre ARI
fa77894e61
change match to if for display enum
2019-04-01 20:42:04 +02:00
H. Emre ARI
9abab3fb65
add Display enum
2019-04-01 20:42:04 +02:00
H. Emre ARI
e33cde9248
fix wrong names
2019-04-01 20:42:04 +02:00
H. Emre ARI
ecec3ec9e5
add overrides_with to -a and -A flag
2019-04-01 20:42:04 +02:00
H. Emre ARI
d8eaecd30a
add almost-all flag
2019-04-01 20:42:04 +02:00
H. Emre ARI
4485087759
fix crash when given file doesn't exist
2019-04-01 20:42:04 +02:00
H. Emre ARI
b0c75f47cf
add almost-all flag
2019-04-01 20:42:04 +02:00
H. Emre ARI
709c139dd4
remove if-else check from mod and almost-all flag from flags
2019-04-01 20:42:04 +02:00
H. Emre ARI
cda15d1714
fix lsd -lh .. crash
2019-04-01 20:42:04 +02:00
H. Emre ARI
d35afe5d66
fix typo
2019-04-01 20:42:04 +02:00
H. Emre ARI
429fa52838
fix issue about --all option when displaying . and ..
2019-04-01 20:42:04 +02:00
H. Emre ARI
e5f3a27ce2
show current and parent directory issue#112
2019-04-01 20:42:04 +02:00
Abin Simon
fa6146cc5c
change size option 'small' to 'short'
2019-03-30 16:27:15 +01:00
Abin Simon
e6de6d54f0
add a new way to style size
2019-03-29 17:11:48 +01:00
Abin Simon
854ed96594
change from two spaces to one
2019-03-29 11:30:37 +05:30
Abin Simon
0d20479c0f
stick to user colors for permissions
2019-03-29 11:30:37 +05:30
Abin Simon
2426efd5b0
bugfix: only one value for multi value options in clap
2019-03-27 14:10:38 +01:00
sal0max
4cc852cdc4
Added macOS installation instruction
...
…via Homebrew package manager
2019-03-15 13:24:06 +01:00
Matthias Beyer
bd25db9a04
Add "manual" clap alias for -A
...
This is requested as a feature, but because clap does not support
"short" aliases, we have to create another clap argument for this.
Not the best possible way to implement this (because the best way would
be to patch clap itself to allow short aliases) but the fastest one.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-03-15 14:16:39 +05:30
Peltoche
d81a6f97c9
Release 1.14.0
2019-03-12 13:13:16 +01:00
Abin Simon
3477b6e723
refactor how width is computed for colored strings
2019-03-12 12:01:19 +01:00
Peltoche
c6dcf2ed0f
Fall back on epoch if the modification time is invalid
...
This allow to avoid a panic each time it try to read a broken file.
2019-03-12 10:00:39 +01:00
Abin Simon
c9b3550f61
fix spacing issue on colors
2019-03-11 18:01:36 +01:00
Peltoche
27d57b2b86
Handle all the color code format for the visible width calculation
2019-03-11 18:01:36 +01:00
Sebastian Zivota
e05b389986
Added Layout enum
2019-03-11 13:25:30 +01:00
Jonathan Neidel
01a7eaee9e
Fix wording
2019-03-07 09:58:35 +01:00