Commit graph

153 commits

Author SHA1 Message Date
Athitya
96dfd12f1a Adds few templates and release policy 2017-10-21 02:24:11 +05:30
Athitya
203873e20f Adds rubygems-tasks for rake release command 2017-10-21 02:14:26 +05:30
Claudio Bley
6d4284cc7a Allows specifying mutual exlusive flags (#129)
* Allow specifying mutual exlusive flags

Warning about flags that seem mutual exclusive prevents using default
flags in Shell aliases which later could be overriden.

When parsing the command line options, the last given option for a
setting (think "mode") or (light vs. dark) counts.

Since colorls errors out when `--tree` is used together with `--all`, the
`--all` option is relaxed to `--almost-all`.

This is exactly how it works for `ls` and e.g. the famous curl tool.

Related to #103, in order to make colorls more compatible to `ls`.

* Fix rubocop error: sort dependencies

```
Offenses:

colorls.gemspec:25:3: C: Gemspec/OrderedDependencies: Dependencies should be sorted in an alphabetical order within their section of the gemspec. Dependency filesize should appear before ruby-terminfo.

  spec.add_runtime_dependency 'filesize'

  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

colorls.gemspec:32:3: C: Gemspec/OrderedDependencies: Dependencies should be sorted in an alphabetical order within their section of the gemspec. Dependency diffy should appear before rubocop.

  spec.add_development_dependency 'diffy'

  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
```
2017-10-21 00:30:27 +05:30
hirowatari
342abf49f9 Rubocop fixes (#130)
* minor rubocop fixes

* fix FileName namespace
2017-10-21 00:27:17 +05:30
Claudio Bley
a4c6766141 Improves CLI operation with optparse module (#100)
* Revert commit d3e0cd3bb8

The help will be generated automatically.

* Use optparse module for options parsing

Use the `optparse` module instead of open coding the options parsing.

It can automatically generate a help message about available options, can
generate completion code for Bash and Zsh and also supports clubbed flags like
GNU's `getopt`.
2017-10-18 01:16:06 +05:30
Athitya Kumar
50a0db1836 Update PULL_REQUEST_TEMPLATE.md 2017-10-10 20:18:03 +05:30
Igor Souza
db3fd350da Adds a pull request template (#118)
* add pull request template

* update template

* add comments to pr
2017-10-10 20:13:52 +05:30
Athitya Kumar
deced85820 Update COVERAGES.md 2017-10-08 14:02:15 +05:30
Mamonu
cdc2ac27fc Create COVERAGES.md (#126)
* Create COVERAGES.md

* Update COVERAGES.md

* Update COVERAGES.md

* Update COVERAGES.md

* Update COVERAGES.md

* Update COVERAGES.md

* Update COVERAGES.md
2017-10-08 12:39:14 +05:30
Metamist
3af107627b Added clubbed flags and renamed multi-character shorthand arguments (#125)
* Added clubbed flags and renamed multi-character shorthand arguments to not interfere with clubbed flags

* Cleaned up code

* Fixed parsing arguments without dash

* Made -h flag clubbable

* Minor text fixes

* Cleaned up incompatible flags method
2017-10-07 17:28:13 +05:30
Metamist
8dec4115ef Added colorized file stats depending on size (#123)
* Added colorized file stats depending on size

* Removed redundant return

* Syntax improvements
2017-10-07 01:22:35 +05:30
Mariel Frank
fa1f6394d9 Clean up flags.rb code (#122)
* Clean up flags.rb code

* Remove return from flags.rb line 26.

* Fix Rubocop errors, revert most explicit returns, other requested changes.
2017-10-06 23:38:55 +05:30
Metamist
92d59760d6 Fixed date not showing if file is older than 1 hour (#124) 2017-10-06 21:08:51 +05:30
Athitya Kumar
f8962caedc Tries to fix some bugs of PR #119 2017-10-06 20:50:24 +05:30
Athitya Kumar
f904dea239 Merge pull request #121 from igordcsouza/feature/fix_rubocop_offenses
fix all rubocop offenses
2017-10-05 22:55:58 +05:30
Igor da Cunha Souza
9c43ac8e91 fix all rubocop offenses 2017-10-05 10:41:34 -03:00
Athitya Kumar
0411c41aac Merge pull request #119 from igordcsouza/feature/cleaning
Cleaning some code
2017-10-05 18:40:42 +05:30
Igor da Cunha Souza
afa1a7eb00 revert breaking changes 2017-10-05 10:05:41 -03:00
Athitya Kumar
dae9826d18 Merge pull request #120 from lewazo/add_config_files_support
Fixes #86 Add config files support
2017-10-05 09:36:30 +05:30
Athitya Kumar
258c4704d4 Merge pull request #116 from swentling87/gemspec_rubocop_error
Fix Travis CI - Rubocop error #115
2017-10-05 09:31:45 +05:30
Anthony Jean
bc1cd22bc1 Fix relative link in readme 2017-10-04 22:51:10 -04:00
Anthony Jean
3f3e27b98b Add the custom configurations to readme 2017-10-04 22:44:56 -04:00
Anthony Jean
b898af16d5 Add config files support 2017-10-04 22:26:21 -04:00
Igor da Cunha Souza
0d3209e5e3 cleaning 2017-10-04 22:22:34 -03:00
Stephen Wentling
06af7ba5ef Removed utf8 declaration as the default encoding for Ruby is utf8 for v2 forward. 2017-10-04 14:31:37 -07:00
Athitya Kumar
eefcf02bb7 Merge pull request #114 from xdega/patch-1
Fix Typo.
2017-10-05 01:40:36 +05:30
Liam Hockley
302f57ff83 Fix Typo.
Resolves #112
2017-10-04 14:59:14 -05:00
Athitya Kumar
2ad08ad812 Removes awesome badge from README 2017-08-31 15:22:28 +05:30
Athitya
8110212143 Adds minor change to output string indent 2017-08-28 20:38:24 +05:30
Athitya Kumar
ae370cbf1c Merge pull request #110 from rohitner/gs-flag
added support for git-status flag
2017-08-28 20:18:44 +05:30
rohitner
9e5b2276cc colorized the output of git_info 2017-08-28 14:16:13 +05:30
rohitner
b1d0005af9 updated helplog 2017-08-26 21:56:34 +05:30
rohitner
72f3424a0d added -gs flag 2017-08-26 21:40:15 +05:30
rohitner
a0f2079831 replaced slice with remove to check travis build 2017-08-26 19:16:34 +05:30
rohitner
6b14f40331 minor bug fixes and changed rubocop 2017-08-26 18:31:37 +05:30
rohitner
511b7b0c02 added support for git-status in -l command 2017-08-26 16:22:15 +05:30
Khải
e6c55f48cb Add some icons, fix some file icons (#109)
* Add some icons for folders

* Folder names: .atom, .vscode, .github

* Add/Fix some file icons

* New icons:
  - React: .jsx
  - SASS: .sass

* Fixed aliases:
  - .editorconfig: It was a 'git' icon, which makes no sense
  - sass/scss: SCSS is not SASS

* New aliases:
  - Stylus: .stylus → .styl
  - Video: .avi, .mkv, .ogv, .webm → video
  - React: .tsx → .jsx

* Fix alphabetic order
2017-08-25 00:54:49 +05:30
Athitya Kumar
403f6776a6 Merge pull request #102 from avdv/fix-list-hidden-files
Only filter hidden files when listing a directory
2017-08-21 18:12:42 +05:30
Claudio Bley
438aed19bd Fix long listing of files as arguments
The elements in `@contents` should only ever be names of directory entries.
Otherwise erroneous paths will be constructed with `@input/@content_entry`.

* add check to ensure that long listing prints information about `.hidden-file`

Fixes #104.
2017-08-21 08:42:02 +02:00
Claudio Bley
6fa9ca2112 Only filter hidden files when listing a directory
* add `.hidden-file` to fixtures
* add check that `.hidden-file` is found to .travis.yml

Fixes #101.
2017-08-18 08:41:47 +02:00
Rohit Ner
ae751cc896 Adds --group-directories-first attribute to -sd flag (#98) 2017-08-17 18:27:42 +05:30
Rohit Ner
d3e0cd3bb8 Adds support for -h / --help flag (#97)
* added help flag

* updated .travis.yml

* added the list of all use-case commands

* changed rubocop

* made the necessary minor changes in helplog method and changed rubocop
2017-08-16 07:39:02 +05:30
Michael
260d8c4255 Readme flag usage update (#96)
* added -a flag in readme to match descriptions to images

* minimally document new flag options
2017-08-05 18:45:07 +05:30
Pranit Bauva
277f03ecaf Adds step about installing the .gem file (#93)
`rake install` just creates a new gem but does not install
it and without actually installing the gem one can't test the
latest release. Thus it is essential to install it first and then
try it out.
2017-08-03 01:15:29 +05:30
Gary Traffanstedt
fb40c72b15 Adds env, erb, scss, and slim icons. (#95)
* Added erb, scss, and slim icons.

* Added env icon.

* Aliased erb and slim icons to new rubydoc.
2017-08-03 01:14:08 +05:30
Vladislav Isakov
9b21e7a29f Fixes bug with -l and path to file. Close #89 (#90)
* Fixes bug with -l and path to file. Close #89

* Add use case for -l with path to file
2017-07-27 16:47:25 +05:30
Athitya Kumar
0f41db98f7 Merge pull request #88 from ryanoasis/patch-1
Misc readme fixes (#87) + updates `.git` folder (#33)
2017-07-24 14:11:58 +05:30
Ryan L McIntyre
bf2fc7ce21 Updates .git folder icon
- Updates .git folder icon from GitHub to more generic
- fixes #33
2017-07-23 11:03:23 -04:00
Ryan L McIntyre
3eeeb29b2a Update README.md
- typo and misc fixes, Nerd Font reference tweaks
2017-07-20 19:25:20 -04:00
Athitya
ef6e49c91e Adds travis step to CONTRIBUTING.md 2017-07-17 23:19:22 +05:30