- 17 5月, 2017 1 次提交
-
-
由 Benjamin Sago 提交于
Now everything’s customisable (in the future!) in its own place. This was the last thing to do for #65.
-
- 10 5月, 2017 1 次提交
-
-
由 quininer kel 提交于
-
- 08 5月, 2017 1 次提交
-
-
由 Benjamin Sago 提交于
-
- 07 5月, 2017 5 次提交
-
-
由 Benjamin Sago 提交于
-
由 Benjamin Sago 提交于
-
由 Benjamin Sago 提交于
Because the link style and status are now both available to the function that picks the colour style, we can have it highlight broken links differently. Fixes #131.
-
由 Benjamin Sago 提交于
-
由 Benjamin Sago 提交于
-
- 03 5月, 2017 2 次提交
-
-
由 Benjamin Sago 提交于
-
由 Benjamin Sago 提交于
For some reason, the code that calculated the width of a cell with a path in counted the width of the path twice: once from the ANSIStrings containing it, and once more added on afterwards. This meant that the grid view thought that columns were wider than they really were, meaning fewer could be fit into a grid.
-
- 02 5月, 2017 4 次提交
-
-
由 Benjamin Sago 提交于
-
由 Benjamin Sago 提交于
-
由 Benjamin Sago 提交于
-
由 Benjamin Sago 提交于
Doing this meant that the escaping functionality got used in three places, so it was extracted into a generalised function in its own module. This is slighly slower for the case where escaped characters are displayed in the same colour as the displayable characters, which happens when listing a directory’s name when recursing. Optimise this, yeah?
-
- 01 5月, 2017 10 次提交
-
-
由 Benjamin Sago 提交于
This was a bug introduced by 28fce347 — it should have updated both places it does this in the function, rather than just one.
-
由 Benjamin Sago 提交于
-
由 Benjamin Sago 提交于
-
由 Benjamin Sago 提交于
This turns `file` into `self.file` and `colours` into `self.colours`, but it means we don’t need to pass arguments everywhere, which will be more of a problem the more functions there are. Most of the code has just been indented.
-
由 Benjamin Sago 提交于
It didn’t feel quite right to have stand-alone functions in the module root file, which is usually just reserved for modules and exports.
-
由 Benjamin Sago 提交于
-
由 Benjamin Sago 提交于
Rather than the *entire* file name. The current method is extremely inefficient, but having control characters in file names is also extremely uncommon; it’s something that should be fixed, only eventually.
-
由 Benjamin Sago 提交于
exa deals with cells and widths a lot: the items in a grid need to be aligned according to their *contents’* widths, rather than the length of their strings, which often included ANSI escape characters. As an optimisation, it used to calculate this separately based on the filename, and dealing with any extra characters (such as the classify ones) in that function too. Recently, though, file names have become a lot more complicated. Classification added zero to one extra characters, and now with escaped control characters in file names, it’s not so easy to calculate the display width of a filename. This commit removes the function that calculated the width, in favour of building the output string (it’s going to be displayed anyway) and just getting the width of what it displays instead.
-
由 Benjamin Sago 提交于
It doesn’t do a perfect job, but at least there aren’t newlines littering the output anymore.
-
由 Benjamin Sago 提交于
-
- 30 4月, 2017 1 次提交
-
-
由 Kevin Ballard 提交于
We don't need a special case for this.
-
- 29 4月, 2017 1 次提交
-
-
由 Benjamin Sago 提交于
It’s the only file where its path is the same as its file name, and has been the source of numerous bugs in the past… this special-case isn’t very clean, but it works.
-
- 26 4月, 2017 1 次提交
-
-
由 Kevin Ballard 提交于
Previously, `exa -d foo/bar` would print the file as "bar", but `exa -d foo/bar/baz` would correctly print "foo/bar/baz".
-
- 14 4月, 2017 1 次提交
-
-
由 TSUYUSATO Kitsune 提交于
-
- 01 4月, 2017 3 次提交
-
-
由 Daniel Lockyer 提交于
-
由 Daniel Lockyer 提交于
-
由 Daniel Lockyer 提交于
-
- 27 3月, 2017 1 次提交
-
-
由 Benjamin Sago 提交于
-
- 30 10月, 2016 5 次提交
-
-
由 Ben S 提交于
This adds an option (always on at the moment) to use a colour scale of green to yellow to orange for the file size field instead of always green. See #65.
-
由 Ben S 提交于
This makes the Colours value pick a colour based on the size of the file, instead of necessarily having them all green. (They are all green for now, though.)
-
由 Ben S 提交于
See #97 and recently #130 too. This allows the user to pass in options such as "--ignore '*.pyc'" to not list any files ending in '.pyc' in the output. It uses the Rust glob crate and currently does a simple split on pipe, without any escaping, so it’s not really *complete*, but is at least something.
-
由 Ben S 提交于
This has to be done for when ignore patterns get introduced and have to be stored in a Vec.
-
由 Ben S 提交于
Fixes #123. The code assumes that every File that has its link_target() method called would first have been checked to make sure it’s actually a link first. Unfortunately it also assumed that the only thing that can go wrong while following a link is if the file wasn’t a link, meaning it crashes when given a link it doesn’t have permission to follow. This makes the file_target() method able to return either a file or path for displaying, as before, but also an IO error for when things go wrong.
-
- 14 6月, 2016 1 次提交
-
-
由 Linden Krouse 提交于
-
- 11 6月, 2016 1 次提交
-
-
由 Ben S 提交于
-
- 19 4月, 2016 1 次提交
-
-
由 Benjamin Sago 提交于
This commit removes the 'main' function present in main.rs, renames it to exa.rs, and puts the 'main' function in its own binary. This, I think, makes it more clear how the program works and where the main entry point is. Librarification also means that we can start testing as a whole. Two tests have been added that test everything, passing in raw command-line arguments then comparing against the binary coloured text that gets produced. Casualties include having to specifically mark some code blocks in documentation as 'tests', as rustdoc kept on trying to execute my ANSI art.
-