Age | Commit message (Collapse) | Author |
|
Fixes #54 using the datetime crate's spiffy new time zone ability.
|
|
|
|
Finally! The benefit of having all the field-rendering code (in details.rs) separate from the value-getting code (in file.rs) is that rendering them can be tested again.
|
|
|
|
There would be an extra column, and it looked unsightly. Unsightly!
This also removes the last specific style from the details view (Plain).
|
|
|
|
|
|
|
|
|
|
|
|
It's now in the locals of the Table struct, and didn't really belong in the column anyway.
|
|
The benefit of having these all as separate methods instead of using the same trait is that we can just pass parameters in like this!
|
|
|
|
|
|
|
|
|
|
|
|
And move all the rendering, ansi_term, colourful stuff into the output modules, which is the only place they should be used!
|
|
|
|
|
|
Colours are now disabled when output is not to a terminal. Fixes #53!
This required some internal restructuring - colours are now in their own object that gets passed around everywhere it's needed.
|
|
|
|
|
|
Still missing a few Beta features, but it compiles!
- Copy requires Clone
- current_dir returns a Path now
- num_cpus moved to a crate
|
|
This module provides feature-specific implementations, and also dummy implementations for when they aren't supported by the system or OS.
Doing it this way limits all the #[cfg(feature)] annotations, as we can now just include the module or not.
|
|
- old_path::Path isn't imported by default anymore
- range -> ..
|
|
|
|
|
|
So move it as part of 'recurse's option.
|
|
Move most of the heavy lifting into a Table struct, which doesn't govern how the resulting table is *created*, only how it's *displayed*.
|
|
|
|
Conflicts:
src/file.rs
|
|
|
|
|
|
|
|
|
|
Filenames with characters that need multiple bytes in UTF-8, and/or
control characters like combining diacritics, would break the grid.
`StrExt::width` seems to do the right thing, and there's conveniently a
function here (which was otherwise unused) to call that.
|
|
- Feature flags changes (old_io, old_path)
- Slice syntax changes ([] -> [..])
|
|
- Update package versions
- locale::default -> locale::english
- Argument handling changes
|
|
This has been mostly done with changes in the datetime crate's suddenly
supporting locales.
It's still important that the user's locale is touched only once and
cached from that point on, so a struct in output::details has been made
public, along with that module. This will change later as that object
gains more and more uses thoughout the codes.
|
|
Use the `locale` crate as a dependency to read in the set
thousands-separator character, and pass this to the file size column,
which uses it to add the separators in.
en_GB uses ","
fr_FR uses "" and just displays the numbers in one go.
|
|
- Turn the views and main program loop into structs, rather than just as one gigantic function
- Separate views into their own files
The addition of the git column and the tree view meant that a lot of functions now just took extra arguments that didn't seem to fit. For example, it didn't really work to have only one 'view' method that printed out everything, as the different view options now all take different parameters.
|