summaryrefslogtreecommitdiffstats
path: root/src/output
AgeCommit message (Collapse)Author
2015-06-04Display dates with the host's timezoneBen S
Fixes #54 using the datetime crate's spiffy new time zone ability.
2015-05-29Fix failing test codeBen S
2015-05-16Generify Table to be used in tests once againBen S
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.
2015-05-16Add some more comments and spacingsBen S
2015-05-16Remove space when no file has extended attributesBen S
There would be an extra column, and it looked unsightly. Unsightly! This also removes the last specific style from the details view (Plain).
2015-05-12Move Git render_char to its own methodBen S
2015-05-12Fix Git colours to be actually correctBen S
2015-05-12Move File fields to their own moduleBen S
2015-05-12Minor whitespace changesBen S
2015-05-12The locals struct is no longer necessaryBen S
2015-05-12Remove year field on timestamp columnBen S
It's now in the locals of the Table struct, and didn't really belong in the column anyway.
2015-05-12Move size_format into render_size methodBen S
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!
2015-05-12Remove redundant importsBen S
2015-05-12Move renderers from traits to Table objectBen S
2015-05-11Fix size numbers boldingBen S
2015-05-11Make executable files' 'x's underlined againBen S
2015-05-11Add the file type column back inBen S
2015-05-11Turn File into simply a data sourceBen S
And move all the rendering, ansi_term, colourful stuff into the output modules, which is the only place they should be used!
2015-05-10Finally, do the same for the Git column.Ben S
2015-05-10Update most of the other columns to use coloursBen S
2015-05-09Add colours module, and disable them sometimesBen S
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.
2015-05-07Remove some unused functionsBen S
2015-04-09updated to latest rust nightlyCristian Kubis
2015-04-04Upgrade to latest RustBenjamin Sago
Still missing a few Beta features, but it compiles! - Copy requires Clone - current_dir returns a Path now - num_cpus moved to a crate
2015-03-26Move all optional features into features moduleBen S
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.
2015-03-22Upgrade to latest RustBen S
- old_path::Path isn't imported by default anymore - range -> ..
2015-02-26Spew comments everywhereBen S
2015-02-26The Row struct's fields don't need to be pubBen S
2015-02-26details: `filter` is only used when recursingBen S
So move it as part of 'recurse's option.
2015-02-26Refactor details viewBen S
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*.
2015-02-24Add --level option to limit tree and recursionBen S
2015-02-23Merge branch 'nwin:add-xattr-linux'Ben S
Conflicts: src/file.rs
2015-02-22Get rid of explicit `as_slice()` calls.Steven Allen
2015-02-22Rename attr to xattrnwin
2015-02-22Merge commit '53387122de3851df5e1e38ad2fedc01404568ada' into add-ext-attributesnwin
2015-02-22Implement display of extended attributesnwin
2015-02-21Use file_name_width in gridCorey Ford
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.
2015-02-21Upgrade to latest RustBen S
- Feature flags changes (old_io, old_path) - Slice syntax changes ([] -> [..])
2015-02-12Upgrade to latest RustBen S
- Update package versions - locale::default -> locale::english - Argument handling changes
2015-02-10Translate month names into the user's localeBen S
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.
2015-02-10Format file size in bytes with the user's localeBen S
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.
2015-02-05Refactor the code after tree view changesBen S
- 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.