Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add more Icons, ability to color icons and more (#951)
* added better icons from fzf && color * added options, short dirs * support fzf output improve shortening made file-name white colour * args & print_with_symbol refactoring * add substitution flag * fixed tests simplified File with regex * added --align * cargo fmt * Move the File fields to private and expose them through functions * Ok get the simple methods working off PathBuf, still some todo! to fix though * Oh some of these were easy, now for the big one up next! * Refactor this method to use more things from PathBuf, namely the '.components()' iterator * Fix a bug in my impl * Fix a bug in my short_dir impl where we were including the file path, plus we weren't adding the right / back to the end * Fix bug in the reverse where I wasn't using the right symbol * Just some cleanup. I think we can operate right on the slices instead of making an iter here * Remove the FileColouts and FileIcon trait and use FileExtensions directly This refactor is mostly so that we don't need to create instances of `FileExtensions` This struct is more just a collection of functions, so it didn't make sense to create an instance of it. I might even remove the struct entirely in the future, and just have these be free functions that live in a module * Do some refactoring in the other files, think I'm running out of steam for the evening at least * Saved is_dir in File for reusing Folders should ends with `/` Refactored short_path * cargo fmt * removed extra unavailable compare RootDir --------- Co-authored-by: Corey Alexander <[email protected]>
- Loading branch information