Commit graph

52 commits

Author SHA1 Message Date
Milo Moisson
b6e5b2af21 refactor: change cast to coertion, remove rustfmt skip and clippy lint ignore directives 2024-01-28 14:14:59 +01:00
Robert Minsk
458a6f5b1e feat(flags): Add BSD file flags 2023-12-12 08:59:31 +01:00
MartinFillon
b7e7946e9e fix(color-scale): fixing color of size unit
see #684
2023-12-05 12:21:53 +01:00
Christina Sørensen
2775a05500 refactor(theme): finalize decay -> color_scale
This finalizes the move from `decay` to `color_scale`, mostly via a `sed
-i 's/decay/color_scale/g' src/**.rs`, but doc errors emerging from this
move were also corrected.

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-11-08 19:45:52 +01:00
Christina Sørensen
288696db10 feat: add --color-scale
This is based on a series of commits done by aashirabadb in #526.

This introduces the `--color-scale` flag both for file age and size, as
well as `--color-scale-mode` which allows "fixed" and gradient".

The reason for reapplying from the diff of the PR instead of the patch
is that the commit history was messy, and introduced "breaking changes"
that were only locally breaking to the PR, that is, not the users.

Further, the PR had seemingly gone stale, and the rather long and
complicated commit history interwoven with merges made it seem more
efficient to just work from scratch.

Again, the work here is done by aashirbadb, my contribution is just
ensuring the quality of the code they've written.

Co-authored-by: aashirbadb <aashirbadbhandari@gmail.com>
Signed-off-by: Christina Sørensen <christina@cafkafk.com>

Refs: #486
2023-11-08 19:45:52 +01:00
Robert Minsk
5f4e8ac3bf feat: Add a new filetype for source code files 2023-10-18 01:27:40 -07:00
MartinFillon
2dc01d351a
Merge branch 'main' into add-git-repo-colors 2023-10-02 10:39:51 +02:00
Martin Fillon
17ed77a3ab feat(colors): adding the possibility to change git-repos colors 2023-10-02 10:34:36 +02:00
MartinFillon
8d6289de10
refactor(formatting): reformatted a line 2023-10-01 21:06:37 +02:00
MartinFillon
e3457858e9
refactor(colors): renamed and reintended some code 2023-10-01 01:18:51 +02:00
MartinFillon
550616c7fc
feat(colors)!: separated root from other users
separated the root from other users

BEAKING CHANGE:
"un" does no longer set color for root user use "uR" instead
"gn" does no longer set color for root group use "gR" instead
2023-09-27 14:52:41 +02:00
Sandro-Alessio Gierens
c43de99fdb style: reapply rustfmt after rebase from main
Signed-off-by: Sandro-Alessio Gierens <sandro@gierens.de>
2023-09-23 19:20:08 +02:00
Sandro-Alessio Gierens
909ed2ee76 style: fix clippy warning after rustfmt
Signed-off-by: Sandro-Alessio Gierens <sandro@gierens.de>
2023-09-23 19:12:51 +02:00
Sandro-Alessio Gierens
186cc8e81b fix: replace rustfmt::skip on expressions because experimental
Signed-off-by: Sandro-Alessio Gierens <sandro@gierens.de>
2023-09-23 19:12:47 +02:00
Sandro-Alessio Gierens
f555d42972 refactor: fix rustfmt issues and place skips where needed
Signed-off-by: Sandro-Alessio Gierens <sandro@gierens.de>
2023-09-23 19:11:19 +02:00
Mélanie Chauvel
be65196a12 fix(git-repos): don’t show color when color is disabled 2023-09-21 02:40:24 +02:00
Christina Sørensen
6ee896f96d
Merge branch 'main' into missing_styles
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-09-20 05:39:18 +02:00
Robert Minsk
23d4293b8b feat: Add EZA_ environment variables with fallback to EXA_ 2023-09-19 00:04:13 -07:00
Robert Minsk
0241ff6c16 test: Add unit tests for new style abbreviations 2023-09-18 17:24:56 -07:00
Robert Minsk
35b29aea2d feat(ui): Add EXA_COLOR bindings for un-themed items 2023-09-18 16:39:26 -07:00
Christina Sørensen
7857684dda
Merge pull request #362 from cfxegbert/style_docs
docs(ui): Document character style pairs in the code and match with man page
2023-09-18 16:38:25 +02:00
Robert Minsk
4ca85da47c test(theme): Address variable names 2023-09-17 23:42:47 -07:00
Robert Minsk
b220d4ef53 test(theme): Add unit tests that test both exa and ls style codes together 2023-09-17 20:58:58 -07:00
Robert Minsk
113ebe07b8 fix(ui)!: Change number_huge and unit_huge to match the man page short codes
BREAKING CHANGE: The style codes for huge file and units where
  documented to be `nt` and `ut` but the code was using `nh` and `uh`.
  The code has been updated to match the documented style codes.
  EXA_COLORS using style codes `nh` and `uh` will need to be updated to
  use `nt` and `ut`.
2023-09-17 20:45:07 -07:00
Robert Minsk
097d6276c2 docs(man): Documentation of 'sn' and 'sb' conflicted with later docs 2023-09-17 12:00:12 -07:00
Robert Minsk
a4e15135d2 docs(ui): Document character style pairs in the code and match with man page 2023-09-16 22:54:00 -07:00
Robert Minsk
07e3c6d4b1 docs: Document filetypes theme and rename trait 2023-09-14 18:30:19 -07:00
Robert Minsk
1c29142831 refactor: Rename FileType::Immediate to more obvious FileType::Build 2023-09-11 08:38:44 -07:00
Christina Sørensen
760f69ca2d
fix(theme): needless_borrow
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-09-11 08:17:32 +02:00
Robert Minsk
b5174b1582 feat(ui): Make file types themeable 2023-09-10 20:41:48 -07:00
PThorpe92
2f629fbcd0 feat: add bright colour options, change punctuation default 2023-09-09 12:47:19 -04:00
Christina Sørensen
fe1ac47dd7
Merge branch 'main' into mount_point 2023-09-08 16:07:16 +02:00
PThorpe92
1ab2f06c50 deps: change ansi_term to ansiterm from rustadopt 2023-09-06 17:59:42 -04:00
Steven Davies
3436171e9f feat: Add highlighting of mounted directories (Linux only)
Closes #167
2023-09-06 20:55:36 +01:00
Christina Sørensen
d976b1d4ab
Merge branch 'main' into fix_windows_build 2023-09-03 05:09:46 +02:00
Robert Minsk
e5cf097c53 refactor: Move get_file_type to FileType enum 2023-09-02 13:31:30 -07:00
Robert Minsk
baafbc44f3 refactor: Rename class FileExtension to FileTypeClassifier to better reflect the purpose 2023-09-02 13:31:30 -07:00
Steven Davies
91cb875dc3 Tree-wide: Fix Windows build 2023-08-27 16:28:36 +01:00
Sandro-Alessio Gierens
299d96770e
fix: block's Colours trait as for file sizes
Update block's Colours trait to behave as for file sizes
2023-08-14 16:34:13 +02:00
PThorpe92
c6a56fe813 feat: add git-ignored color/style option 2023-08-13 13:27:50 -04:00
Christina Sørensen
143fa65568
refactor(clippy): consistent style
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-12 14:32:28 +02:00
Christina Sørensen
5cc7bdfc3f
Merge branch 'main' into pr-1136
This was horrible.

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-07-31 13:58:01 +02:00
Andrzej Grzeslak
64948b8d09
fix: dereferencing links groups.
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-07-31 13:35:33 +02:00
Andrzej Grzeslak
97a7f99320
fix: dereferencing links users.
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-07-31 13:35:24 +02:00
Christina Sørensen
b4bc988cef
Merge branch 'main' into pr-370
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-07-30 05:08:34 +02:00
Christian Göttsche
afeac47c13 Add option to show security attribute and improve extended support
Add a command line option -Z/--context to show the security context of
objects, similar to ls(1).

Show the actual extended attribute values on -@/--extended, instead of
just their length.

In case of a symbolic link, show the extended attributes of the symbolic
link itself, not the target. This matches the behavior of ls(1) and is
more intuitive.

Closes: #254
2023-03-27 21:29:00 +02:00
Victor Song
8d03922e3b Addressed PR comments 2023-02-24 18:45:27 -05:00
Victor Song
2917062466 Nest OR patterns in match arms 2023-02-24 18:29:37 -05:00
Victor Song
cd715a6e00 Safely derive Eq whenever we derive PartialEq 2023-02-24 18:29:37 -05:00
Chester Liu
6a642d0f32 merge 2021-03-26 16:37:17 +08:00