Andy
bb270b319a
Adds some media types ( #180 )
...
* add some media types
* alphabetize the media types
2018-02-01 21:43:38 +05:30
Andy
99b94da2f6
add jupyter notebooks to file aliases ( #181 )
2018-01-30 01:16:55 +05:30
Athitya
0ed7f76b14
Updates to version v1.1.0
2018-01-15 23:46:58 +05:30
Athitya Kumar
5dc9840c44
Merge pull request #170 from avdv/reduce-syscalls
...
Reduce syscalls and simplify code
2018-01-12 22:33:03 +05:30
Sam Umbach
848e3b7c64
Fix minor typo ( #173 )
2018-01-12 21:39:39 +05:30
Claudio Bley
c78bf3bd73
Add SimpleCov code coverage tool
...
See [SimpleCov](https://github.com/colszowka/simplecov ).
2018-01-11 11:32:44 +01:00
Claudio Bley
ab21ee6976
Add Ruby 2.5.0 to travis CI config
2018-01-08 14:18:28 +01:00
Claudio Bley
ab544414c0
Fix rubocop issue, re-enable cop
...
```
colorls.gemspec:26:1: W: Lint/MissingCopEnableDirective: Re-enable Metrics/BlockLength cop with # rubocop:enable after disabling it
# rubocop:disable Metrics/BlockLength
^
```
2018-01-02 11:02:36 +01:00
Claudio Bley
d12b95da6e
Avoid reading link target when not needed
...
It is only needed in long listing mode.
2018-01-02 11:02:36 +01:00
Claudio Bley
038c15f53c
Interprete path with trailing slash as a directory
2018-01-02 11:02:36 +01:00
Claudio Bley
fa803c6cb6
Simplify git info handling
2018-01-02 11:02:36 +01:00
Claudio Bley
68215c56b0
Use porcelain mode with git status, no chdir
2018-01-02 11:02:36 +01:00
Claudio Bley
694fdee03c
Use git rev-parse to find git root path
2018-01-02 11:02:36 +01:00
Claudio Bley
f9db84a2b1
Avoid re-computing max_widths
2018-01-02 11:02:36 +01:00
Claudio Bley
a6879dc23d
Avoid Time.now call
2018-01-02 11:02:36 +01:00
Claudio Bley
ff7dd59a8c
Use information from stat call to colorize user
2018-01-02 11:02:36 +01:00
Claudio Bley
e0ebbdb3d0
Add FileInfo
class, reduce syscalls
2018-01-02 11:02:36 +01:00
Athitya Kumar
445cfc3836
Merge pull request #166 from avdv/rescue-errors
...
Handle errors gracefully
2017-12-13 13:08:41 +05:30
Claudio Bley
60cc97bbd2
Simplify path handling in Core class
2017-12-10 22:50:13 +01:00
Claudio Bley
1d3bd49f5d
Handle errors gracefully
...
Do not print a backtrace when a `SystemCallError` occurs and keep going to
process arguments afterwards.
2017-12-10 22:50:13 +01:00
Athitya Kumar
3ff4d701cb
Merge pull request #167 from avdv/improvements
...
Small improvements
2017-12-10 15:44:19 +05:30
Claudio Bley
0c6a174081
Avoid using count
if size
or length
works
...
According to [1] one should prefer the latter over the former whenever possible.
[1]: http://batsov.com/articles/2014/02/17/the-elements-of-style-in-ruby-number-13-length-vs-size-vs-count/
2017-12-10 10:06:14 +01:00
Claudio Bley
fe78028949
Use IO#winsize
instead of calling out to tput
...
If the window size cannot be determined, use a default of 80 columns, just like
tput.
2017-12-10 10:05:30 +01:00
Athitya Kumar
9cfc9190bc
Adds waffle badge
2017-12-08 19:06:26 +05:30
Athitya Kumar
3af19cc54a
Merge pull request #164 from avdv/collation
...
Proper sorting according to current LANG / locale
2017-12-01 18:00:52 +05:30
Claudio Bley
47b8f198f1
Use git author date of man page when generating
2017-12-01 11:04:08 +01:00
Claudio Bley
bebe09f5f7
Use clocale
gem for proper sorting
2017-12-01 09:05:04 +01:00
Athitya Kumar
60012c93d9
Merge pull request #161 from rohitner/master
...
Removed bug of ignored files
2017-11-23 03:46:26 +05:30
Athitya Kumar
9df380607c
Merge pull request #160 from avdv/zsh-completion
...
Include Zsh completion file in the gem
2017-11-23 03:46:08 +05:30
Claudio Bley
96ec0d5276
Generate Zsh completion file
...
Add the `_colorls` completion file to the `zsh/` folder of the gem and make the
`tab_complete.sh` script work for Zsh too.
2017-11-22 22:32:20 +01:00
rohitner
1fefca92a9
fixed rubocop issue
2017-11-23 00:10:53 +05:30
rohitner
6deb982c2e
fix for partially gitignored dirs
2017-11-23 00:10:36 +05:30
rohitner
e6f0de0679
fix partially ignored files
2017-11-22 19:38:21 +05:30
rohitner
90a296bf35
removed bug of ignored files
2017-11-20 20:57:09 +05:30
Athitya Kumar
b122811fb0
Merge pull request #158 from avdv/man-page
...
Man page
2017-11-18 09:21:34 +05:30
Claudio Bley
ed8d3c23ed
Add note about man page to README.md and POST_INSTALL_MESSAGE
2017-11-17 21:33:44 +01:00
Claudio Bley
e22e3e2bcc
Add runtime dependency manpages
...
When this gem is installed, it automatically symlinks man pages of other gems
so that you can view them with `man`.
2017-11-17 21:33:44 +01:00
Claudio Bley
1b587d8257
Generate man page using ronn
2017-11-17 21:33:44 +01:00
Claudio Bley
ecb532ea87
Make rake
a dev dependency
2017-11-12 17:55:03 +01:00
Athitya Kumar
df3489ecc2
Merge pull request #153 from alexpjohnson/master
...
Add rubocop-rspec as a dev dependency. Fix non-directory changing fixes
2017-11-08 06:26:14 +05:30
Alex
8dade9d52a
Update yaml to proper class. Fix invocations so tests pass
2017-11-07 19:22:37 -05:00
Alex
1cd2029126
Create yaml class and add class methods. Move specs to appropriate folder. Fix method calls. Move flags spec to appropriate folder for rubocop
2017-11-07 19:22:37 -05:00
Alex
7aec4fda94
Add rubocop-rspec as a dev dependency. Fix non-directory changing fixes
2017-11-07 19:22:37 -05:00
Athitya Kumar
015b5c0467
Merge pull request #157 from avdv/sorting
...
Sorting
2017-11-08 03:23:41 +05:30
Claudio Bley
0bc518dda4
Move handling of output mode into core
...
This prevents giving mutual exclusive options to Core.initialize which could
lead to unexpected results.
2017-11-07 22:38:52 +01:00
Matthew Vincent
ba257b970b
Add support for sorting by size
...
* add `--sort=size` flag
* add `-S` flag
* adjust `.travis.yml` to check the new flags
2017-11-07 22:38:42 +01:00
Claudio Bley
25b21c442a
Add support for reverse sorting
...
Re-assign the `-r` short option from `--report` to `--reverse` and mention this
change in the post install message.
2017-11-07 22:38:42 +01:00
Claudio Bley
dcf5951167
Add test for --sort=time
2017-11-07 22:38:42 +01:00
Claudio Bley
2df30f7f33
Add support for sorting by mtime
...
* add `--sort=WORD` option, which sorts by modification "time" or not at all
* add short option `-U` to mean `--sort=none` (`ls` compatibility)
* `-t` now has the same effect as `--sort=time` which is also mentioned in the
post install mesage
* add checks for `--sort=time` and `--sort=none` to .travis.yml
2017-11-06 08:42:02 +01:00
Claudio Bley
52badf7ed5
Separate sorting and grouping
2017-11-01 09:14:20 +01:00