1. 29 6月, 2014 2 次提交
  2. 28 6月, 2014 8 次提交
  3. 27 6月, 2014 2 次提交
  4. 26 6月, 2014 1 次提交
    • B
      Highlight link number for files with multiple links · baf9f957
      Ben S 提交于
      Curiously enough, this turned out to be helpful today... Git can't
      traverse symlinks, so I had to use hard links instead, and then I had to
      work out which files had more than one link at a glance. If I hadn't
      already had most of exa written, I'd be stuck using find!
      baf9f957
  5. 24 6月, 2014 2 次提交
  6. 22 6月, 2014 8 次提交
  7. 21 6月, 2014 5 次提交
  8. 19 6月, 2014 1 次提交
  9. 18 6月, 2014 4 次提交
  10. 17 6月, 2014 5 次提交
    • B
      Move file-type detection to its own module · 03ec414d
      Ben S 提交于
      I'd much rather have this separate, as it has the definite potential to
      balloon up to a huge size and end up making the other parts of the file
      module hard to read. But on the other hand, it meant making a few more
      methods public on file... readability over cleanliness, I guess.
      03ec414d
    • B
      Cache readdir results in a Dir object · a5e404da
      Ben S 提交于
      This new object is then passed down to the File, so it can see what files are around it. This means it doesn't need to re-query the filesystem several times per file, instead using the in-memory copy.
      
      Also, switch to using the built-in Path#with_extension method.
      a5e404da
    • B
      Add a bunch more file types · 78771a3a
      Ben S 提交于
      And an extra level of compiled files that don't get highlighted when their source files aren't present. I don't really like having two functions that do (almost) the same thing, but I have to due to the way colouring is done.
      78771a3a
    • B
      Highlight compiled files if their source is present · cce20d59
      Ben S 提交于
      Compiled files with a source present (such as code.o when code.c is present) are now classified as temporary files. If the source isn't present, they're highlighted in a kind of drab colour (using the new 255-colour ability, yay!)
      
      The code does do exists() checks on the filesystem when it could be possible to compare the files to the list of files we got from the call to readdir(), but it doesn't.
      cce20d59
    • B
      Get rid of silly warning · b9fd420b
      Ben S 提交于
      b9fd420b
  11. 16 6月, 2014 1 次提交
    • B
      256-colour support · 64770d0a
      Ben S 提交于
      Add a Fixed(u8) constructor to Colour, which represents the 256 colours
      that some terminals support. This means we can:
      
      - stop using black bold to mean grey, which looks weird on terminals
        that haven't been set up to use it;
      - support a *lot* more file type colours.
      
      I'm a little suspicious of how much string allocation is being done in
      colours.rs, but that's a problem for another time.
      64770d0a
  12. 04 6月, 2014 1 次提交