summaryrefslogtreecommitdiffstats
path: root/src/filetype.rs
AgeCommit message (Collapse)Author
2015-05-12Where do all these tabs keep coming from?Ben S
2015-05-10Move file type colours to their own structBen 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-09Clean up filetype-detecting codeBen S
2015-05-07Highlight executable files in greenBen S
This was intended from the start, but the dead_code checker was dulled by the module being public!
2015-04-23Temporarily disable tests (!)Ben S
2015-04-23Use new io + path + fs libraries (LOTS OF CHANGES)Ben S
Exa now uses the new IO, Path, and Filesystem libraries that have been out for a while now. Unfortunately, the new libraries don't *entirely* cover the range of the old libraries just yet: in particular, to become more cross-platform, the data in `UnstableFileStat` isn't available in the Unix `MetadataExt` yet. Much of this is contained in rust-lang/rfcs#1044 (which is due to be implemented in rust-lang/rust#14711), but it's not *entirely* there yet. As such, this commits a serious loss of functionality: no symlink viewing, no hard links or blocks, or users or groups. Also, some of the code could now be optimised. I just wanted to commit this to sort out most of the 'teething problems' of having a different path system in advance. Here's an example problem that took ages to fix for you, just because you read this far: when I first got exa to compile, it worked mostly fine, except calling `exa` by itself didn't list the current directory. I traced where the command-line options were being generated, to where files and directories were sorted, to where the threads were spawned... and the problem turned out to be that it was using the full path as the file name, rather than just the last component, and these paths happened to begin with `.`, so it thought they were dotfiles.
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-07Simplify compiled file checking codeBen S
2015-03-07Simplify filetype detection codeBen S
2015-02-22Get rid of explicit `as_slice()` calls.Steven Allen
2015-02-21Code cleanups in filetype detectionv0.1.0Ben S
2015-02-04Fix tests from tree view falloutBen S
2015-01-28Upgrade to latest RustBen S
- Rename std::io to std::old_io
2015-01-26Cache the lowercased extensionBen S
Extensions aren't ever displayed in lowercase, just compared case-insensitively, so this makes sense.
2015-01-26Update #[derive] namesBen S
2015-01-24Convert docs to standard formatBen S
2015-01-01to_ascii_lower -> to_ascii_lowercaseBenjamin Sago
2014-12-14Make copyable values copyableBen S
2014-12-12Miscellaneous little optimisationsBen S
- Prefer iter over into_iter where appropriate - Cut down on cloning
2014-12-12Whitespace fixesBen S
2014-12-02Upgrade to latest RustBen S
I can't complain, because the breaking changes were caused by my pull request...
2014-11-26Upgrade to latest ansi_termBen S
Yeah, I broke my own code again.
2014-11-24List files and directories separatelyBen S
This finally fixes the issue where trying to list a file causes a crash. Also, tidy up some of the uses of references.
2014-11-23Add some more file extensionsBen S
2014-11-23Upgrade to latest Rust nightlyBen S
2014-07-22Match file extensions case-insensitivelyBen S
I truly didn't realise this wasn't already done until someone sent me a .BMP file.
2014-07-04Import Paint trait from rust-ansi-termBen S
2014-07-01Move some stuff out to rust-ansi-term crateBen S
2014-06-30Standardise on a greyBen S
2014-06-29Properly handle invalid UTF-8 filenamesBen S
2014-06-28Highlight common build filesBen S
2014-06-28Move to CargoBen S