Commit graph

25 commits

Author SHA1 Message Date
Claudio Bley
7100c41703 Remove man page and zsh completion file
The files are automatically generated, but using rake's `file` task does not
work correctly when the files are checked into the repo since the timestamps are
updated independently of the commit time.

Removing them ensures that these files are always freshly generated before
building the gem and thus are always up-to-date which was often not the case in
the past.
2022-03-21 09:03:21 +01:00
Claudio Bley
aca55532b6 Prepare release 1.4.4 2021-03-10 21:14:54 +01:00
Claudio Bley
232aa19cf7 Update manpage 2021-01-15 11:03:21 +01:00
t-mangoe
0d0a1d96ca add -G option 2020-12-05 09:14:12 +09:00
t-mangoe
39be15c6aa add -o and -g options. 2020-11-21 10:17:32 +09:00
Claudio Bley
12e3b67d56 Fix Lint/EmptyBlock offense 2020-10-31 22:19:37 +01:00
t-mangoe
64b1891c2c Set exit status code when specified path doesn't exist
Similar to GNU ls, status code `2` is reported if an argument given on the
command line does not exist.

Close #397
2020-10-07 09:58:01 +02:00
Claudio Bley
2a0c840da1 Update manpage 2020-09-03 23:21:37 +02:00
George Pickering
e345cfca8b Update yaml and monkeys to support hexstring colors 2020-05-28 15:02:37 -04:00
Claudio Bley
f34453bce3 Workaround Errno::ENOENT error in rubygems
When trying to `require` a gem running in an unlinked directory, an exception is
thrown because `Dir.pwd` is called (see rubygems/rubygems#3087).

Until the fix lands in an official release, we monkey patch `Dir.pwd` to return
'/' if a `Errno::ENOENT` exception is raised while loading the colorls gem.

This should work for all Unixes. On Windows, this error cannot happen since you
cannot unlink a directory which is still in use by a process.

Fixes #351.
2020-05-10 21:23:07 +02:00
Claudio Bley
825e9f711c Only warn if locale settings are broken
Keep running if calling `setlocale` fails, because of invalid locale settings.

Fixes #335.
2020-04-17 00:21:11 +02:00
Claudio Bley
86cfa2f5cf Drop support for Ruby 2.4
It reached EOL on March 31, 2020, and no longer receives patches.

See https://www.ruby-lang.org/en/news/2020/04/05/support-of-ruby-2-4-has-ended/
2020-04-16 22:49:54 +02:00
Claudio Bley
dfd572310a Add --format=vertical and -C flags
* add and wire up `VerticalLayout` which is now the default
* adapt flags spec to use single-column layout for testing sort order
  since the output is hard to verify when in vertical format

Fixes #189.
2019-07-01 23:27:53 +02:00
Paul McCarthy
ec0ed26458 Fix typo accross => across 2019-07-01 23:12:45 +02:00
Claudio Bley
41669c94a3 Release version 1.2.0 2019-04-09 18:52:11 +02:00
Claudio Bley
c0d9266378 Fix spec failures due to calling exit 2019-03-14 23:37:55 +01:00
Claudio Bley
6d6d121553 Add --human-readable option for compatibility with GNU ls
* make `-h` an alias for `--human-readable`
* both options are simply ignored when used with an argument or another option
* running `colorls -h` still shows the help text since just as before
2019-03-14 14:48:19 +01:00
Alex Cano
c60a2ebec8 Add the option to handle depth for the tree flag (#253)
* Add the option to handle depth for the tree flag

* Update README to describe the new option for the tree flag

* Add tests
2019-01-11 07:36:02 +01:00
Claudio Bley
f3e9186ee2 Add --format and -x options
Both are also supported by GNU ls, although currently not all formats are
supported.

This change lays ground for implementing column based formatting and also
supports using a pager with colorls keeping the formatting intact:

`colorls --color -x | less --tabs=4 -RFX`
2018-10-20 10:50:30 +02:00
Claudio Bley
6b972de57d Add --color option
This option works the same as for GNU ls, although if not specified colorization
is on by default (the `auto` mode).

Using `--color` is equivalent to `--color=always`.
2018-10-20 00:01:31 +02:00
Claudio Bley
b2bbdbb413 Update man page 2018-08-20 08:01:53 +02:00
Claudio Bley
8428efa010 Add --hyperlink option
This generates `file://` links using ANSI escape sequences which opens the
given file using the default application for the file type on your system.

A terminal emulator supporting hyperlinks is required, otherwise the links
will be ignored.
2018-08-17 23:00:55 +02:00
Claudio Bley
c35ad864c3 Regenerate zsh completion file and man page 2018-08-12 16:22:27 +02:00
Athitya
0ed7f76b14 Updates to version v1.1.0 2018-01-15 23:46:58 +05:30
Claudio Bley
1b587d8257 Generate man page using ronn 2017-11-17 21:33:44 +01:00