Commit graph

88 commits

Author SHA1 Message Date
Athitya
e475ba32f2 Updates version to 1.0.9 2017-10-29 05:49:23 +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
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
Athitya
b286f71ef0 Adds rake as runtime dependency and updates to 1.0.6 2017-10-28 22:26:39 +05:30
Athitya
aa6920abdc Updates version to 1.0.5 2017-10-28 22:01:56 +05:30
Athitya
5619a5bbf8 Requires monkey patches 2017-10-28 21:58:22 +05:30
Athitya
c9beb097a8 Fixes rubocop issue 2017-10-28 21:36:49 +05:30
Athitya
0501c0b4a2 Adds monkeys.rb, and clean-ups before merging 2017-10-28 21:03:05 +05:30
Athitya
2ea96f1212 Adds support for new inbuilt colors 2017-10-28 20:54:44 +05:30
Athitya
7c6d09c0f7 Fixes --long with --git-status flag combination 2017-10-28 20:10:21 +05:30
Athitya
8e1d16e884 Adds custom config coloring support for git-status 2017-10-28 19:37:51 +05:30
Athitya
1dd794ff23 Adds monkey patch for colorize method 2017-10-28 19:10:10 +05:30
Athitya
aeb3a3950c Switches from colorize to rainbow dependency 2017-10-28 18:21:01 +05:30
Athitya
67d632ffca Updates version to 1.0.4 2017-10-28 16:11:20 +05:30
Claudio Bley
8424e4de27 Use optparse for tab completion (#138) 2017-10-28 16:09:09 +05:30
Athitya
85fa654870 Fixes minor bug with tab completion and updates version to 1.0.3 2017-10-22 23:52:30 +05:30
Athitya
ae20613f94 Updates version to 1.0.2 2017-10-22 23:46:15 +05:30
Athitya
b2fa5f18d7 Fixes minor rubocop offense 2017-10-21 02:58:18 +05:30
Athitya
24406eaa67 Updates version to 1.0.0 2017-10-21 02:48:13 +05:30
Claudio Bley
bf73fd3462 Fixes flag handling issue introduced in PR #129 (#131)
* Fix handling of `--tree` and `--all` / `--allmost_all` flags

When using `:tree` mode, the `:allmost_all` was always enabled unconditionally.

* Add example for combining short options
2017-10-21 02:26:51 +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
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
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
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
Athitya
8110212143 Adds minor change to output string indent 2017-08-28 20:38:24 +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
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