Commit graph

250 commits

Author SHA1 Message Date
Claudio Bley
6250536d23
Merge pull request #532 from AlexwannaCode/main
Add logo
2022-06-30 09:45:02 +02:00
Claudio Bley
8470631723 Auto-correct rubocop offenses 2022-06-30 08:48:29 +02:00
AlexwannaCode
5efea0a571
Update file_aliases.yaml
Add tgz as zip alias
2022-06-04 16:25:09 +08:00
AlexwannaCode
0b473bd200
Update files.yaml
Add icon for Vue and React
2022-06-04 16:22:40 +08:00
Claudio Bley
3ffea2976a Correct Style/OpenStructUse offenses
Replace with `Struct`, or use `instance_double` in tests.
2022-05-13 21:47:03 +02:00
Claudio Bley
60cf569776 Pass a null device instead of explicitly closing stderr
When calling git any error messages should be suppressed (e.g. if an directory
is not inside a git repository).

Closing the stderr output when calling `IO.popen` works fine on POSIX systems,
but on Windows it does not and spits out a warning for every invocation:

```
git.rb:44: warning: cannot close fd before spawn
```

Fixes #517.
2022-04-30 09:13:56 +02:00
Claudio Bley
90ed878213 Release version 1.4.6 2022-04-13 21:46:18 +02:00
Claudio Bley
0c6928dce2 Refactor hyperlink handling in fetch_string 2022-04-13 21:24:30 +02:00
Claudio Bley
b8589c30fe Use FileInfo#show for the hyperlink text
Fixes #513
2022-04-13 21:08:47 +02:00
Claudio Bley
2d2d43de27 Prepare release 1.4.5 2022-04-04 22:16:03 +02:00
t-mangoe
462fa61bc5 fix rubocop error 2022-03-26 16:32:54 +09:00
t-mangoe
67459d0ef9 Merge branch 'master' into no-hardlinks 2022-03-26 16:25:05 +09:00
goar5670
cd394c0feb Fix different inode number lengths 2022-03-20 21:24:07 +03:00
goar5670
eb2656a219 Fix rubocop offenses 2022-03-20 02:18:02 +03:00
goar5670
57feb07032 Add colors for inode text 2022-03-20 01:55:50 +03:00
goar5670
fb102b1700 Account for git status and inode in item widths 2022-03-20 01:55:33 +03:00
goar5670
793cd20cc8 Add basic --inode flag 2022-03-20 01:54:58 +03:00
Claudio Bley
a3b94311ec Allow git status to be different for items in directories
If a directory was reported with a concrete status by git, it was
assumed that all files below this directory would have the same status.

This is not the case were git ignore files are applied to some files
in subdirectories.

Fixes #461.
2022-03-19 09:20:03 +01:00
bl7awy
29f2162a77 Edit --report flag description 2022-03-18 22:59:27 +03:00
bl7awy
c4f3885410 Add the option for a short report 2022-03-18 18:02:46 +03:00
Claudio Bley
3995f3173c Drop support for Ruby 2.5
It reached EOL with release 2.5.9, and no longer receives patches.
2022-02-28 09:17:26 +01:00
t-mangoe
ba547f299d modify the code according to rubocop 2022-02-19 11:15:43 +09:00
t-mangoe
ced1cfebff add --no-hardlinks option 2022-02-19 09:28:10 +09:00
Claudio Bley
74b20cf371
Merge pull request #481 from t-mangoe/customize-time-format 2022-02-15 16:42:40 +01:00
Claudio Bley
ec4ea6e830 Auto-correct Performance/StringIdentifierArgument offense 2022-01-02 23:12:14 +01:00
t-mangoe
90aaa4d0b6 change time/date format in '+FORMAT' 2021-11-13 09:21:15 +09:00
t-mangoe
d7e7ddd01e add --time-style option in long style format 2021-10-02 08:40:48 +09:00
Claudio Bley
c9f93173e6 Fix Lint/AmbiguousOperatorPrecedence offenses 2021-09-14 13:49:50 +02:00
gheritarish
f5cd4e6695
add LibreOffices extensions to alias file 2021-09-04 10:25:01 +02:00
Claudio Bley
34ff868bbc
Merge pull request #462 from t-mangoe/trailing-directory-backslash 2021-07-19 10:39:27 +02:00
t-mangoe
00f503c09f add a description of the --indicator-style option 2021-07-19 10:35:08 +02:00
t-mangoe
566ea3b45a add '--indicator-style' option 2021-07-19 10:24:25 +02:00
Claudio Bley
0f0efc0151 Fix Layout/LineEndStringConcatenationIndentation offenses 2021-06-30 13:26:48 +02:00
Claudio Bley
22fb57ac21 Use console_size if console is nil
When running on github actions CI, there is no proper tty / console.
2021-05-06 14:24:47 +02:00
Claudio Bley
155bfdaf1c Fix offense detected by Style/StringChars cop 2021-03-25 08:29:44 +01:00
Claudio Bley
ae5b6c8962 Fix encoding error with UTF-8 directory name
Fixes #449
2021-03-24 21:45:30 +01:00
Claudio Bley
aca55532b6 Prepare release 1.4.4 2021-03-10 21:14:54 +01:00
dependabot-preview[bot]
adb19ab3c3 Update rubocop-performance requirement from ~> 1.9.0 to ~> 1.10.1
Updates the requirements on [rubocop-performance](https://github.com/rubocop/rubocop-performance) to permit the latest version.
- [Release notes](https://github.com/rubocop/rubocop-performance/releases)
- [Changelog](https://github.com/rubocop/rubocop-performance/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop-performance/compare/v1.9.0...v1.10.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-08 08:46:35 +01:00
Felix Dombek
6ebb1ef6db Add support for executable_file color 2021-03-03 01:14:42 +01:00
Claudio Bley
17b2142c48 Use File.extname to determine file extension
Fixes #441.
2021-01-29 10:21:24 +01:00
Claudio Bley
0048e3883a Group and process arguments in groups of files and directories
Fixes #233
2021-01-15 11:03:21 +01:00
Claudio Bley
4612549bc2 Fix misalignment of git status indicators
The misalignment is caused when a `!` is part of the status
which is later replaced with a space.
2021-01-15 11:03:21 +01:00
Claudio Bley
2eeb30fc44 Refactor git_subdir_status
Instead of simply returning the opened pipe, consume the output
and yield the `mode, file` tuple to the given block.
2021-01-15 11:03:21 +01:00
Claudio Bley
373fb67003 Fix error when git is not installed 2021-01-15 11:03:21 +01:00
Claudio Bley
93b08f9403 Prefer require_relative for internal dependencies 2021-01-15 11:03:21 +01:00
Claudio Bley
0ad630da4c Properly encode hyperlinks with special characters
This also works on Windows now, since absolute paths include a colon after the
drive letter, the `file:` URI needs to start with a triple slash.
2021-01-15 11:03:21 +01:00
Claudio Bley
76f148cc55 Only show a single report at the end
Showing a report for every argument given on the command line
is not suitable when using wildcards and did not work with `--tree`.

Also, it was only designed to work with directories given as
arguments.
2020-12-23 22:32:36 +01:00
Claudio Bley
ca9e1cd5d9 Refactor file_color method 2020-12-22 14:02:46 +01:00
Claudio Bley
d0df25d35d Re-use CoreLS::Core instance
Only initialize colors and flags once.
2020-12-22 14:01:55 +01:00
Claudio Bley
77b5135d97 Remove unused return value 2020-12-11 08:51:03 +01:00