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
Claudio Bley
869dc86d3f
Print directory argument before listing contents
...
If there are a lot of arguments, e.g. due to shell globbing, one might easily
lose track of which output corresponds to which argument.
Again, this is similar to what `ls` does.
2017-11-01 09:07:34 +01:00
Claudio Bley
d48f545344
Sort output by default and re-enable test
...
When not using any sort options, sort the output by name.
This is in line with what `ls` does, too.
Revert "Disable failing test"
This reverts commit 9e41d60956
.
2017-11-01 09:07:34 +01:00
Michael McMahon
8df4297e3f
Updates CONTRIBUTING.md ( #148 )
...
Fixed a misspelled word.
2017-10-31 01:28:39 +05:30
Athitya
9bd8033e2e
Improves README, removes redundant readme/ directory
2017-10-30 04:52:30 +05:30
Athitya Kumar
c9b8ae723d
Update README.md
2017-10-30 04:22:14 +05:30
Athitya
e475ba32f2
Updates version to 1.0.9
2017-10-29 05:49:23 +05:30
Athitya Kumar
ff6773546f
Merge pull request #144 from athityakumar/faster-git-status
...
Faster git status
2017-10-29 05:45:55 +05:30
Athitya Kumar
9c16ad358f
Merge branch 'master' into faster-git-status
2017-10-29 05:43:28 +05:30
Athitya
d0a7bba396
Fixes minor chdir issue
2017-10-29 05:43:15 +05:30
Athitya
7543257c7e
Removes require call of git gem
2017-10-29 05:39:40 +05:30
Athitya
9dbe6cde49
Adds rubocop fixes
2017-10-29 05:35:57 +05:30
Athitya
919ddb7c4c
Adds colors for git-status
2017-10-29 05:34:25 +05:30
Athitya
0984a529ac
Adds custom config coloring support for faster git-status
2017-10-29 05:32:38 +05:30
Athitya
2f3c1dad4f
Fixes minor rubocop issues
2017-10-28 23:18:39 +05:30
Athitya
a88598e10e
Updates version to 1.0.8
2017-10-28 23:05:20 +05:30
Athitya
086cc05adc
Fixes minor facets remanant
2017-10-28 23:04:47 +05:30
Athitya
15c5317b1e
Updates version to 1.0.7
2017-10-28 22:56:32 +05:30
Athitya
a6a6fffd64
Removes facets dependency
2017-10-28 22:55:05 +05:30