colorls 1.4.2.pre.694 → 1.4.2.pre.698

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c8d307917acc69f7e7ee3aa4981717355eed981dd1fb05c80a4ed68a550965d6
4
- data.tar.gz: 8f9b8eb9ddf342721acffa34711ba6ba3ddf1635239c871df27322b9233059d0
3
+ metadata.gz: e77678ec574f2d0d8183fa5fd58f35667a31fa7df1aaa44048202ed68d329fd7
4
+ data.tar.gz: 77925c784a3764429b29d14f08c80faf18840abaad035c98a2953d12666d368c
5
5
  SHA512:
6
- metadata.gz: 58eb14c65dbe2fb74ec357362bc64c68b99e1b87985549d382d715facd9af5a0a9d9a1d21918a8600753a26033172b640f91c7317aca134330ee0c89c598be5e
7
- data.tar.gz: 400b0ec68a7e8d3a78c362981bb0789eaec32c7f7a89cde4e8d0a47081af622fe69051c15d8447d7ff5776c074654f883bf1ab785a83f546d9f7d9c4e7cd5dc4
6
+ metadata.gz: b5a6a604df224287daf247df00c032c98c0aa094b82ac651f64f7497bb0c0fa501aaae88286853e544a4ed75b088b6bc43de429e5b5da163be0cb5f25b0c55b5
7
+ data.tar.gz: 80e4f08b964b1146101a1a4d00cf48edf478766008f4d236dba7a199ac3efd331e20db61831be9d7a64bf26ccc92586370835f0e0b584a7e78d00fd29b0b2624
data/README.md CHANGED
@@ -163,7 +163,9 @@ You can overwrite the existing icons and colors mapping by copying the yaml file
163
163
 
164
164
  - To overwrite color mapping :
165
165
 
166
- Please have a look at the [list of supported color names](https://github.com/sickill/rainbow#color-list). Let's say that you're using the dark color scheme and would like to change the color of untracked file (`??`) in the `--git-status` flag to yellow. Copy the defaut `dark_colors.yaml` and change it.
166
+ Please have a look at the [list of supported color names](https://github.com/sickill/rainbow#color-list). You may also use a color hex code as long as it is quoted within the YAML file and prefaced with a `#` symbol.
167
+
168
+ Let's say that you're using the dark color scheme and would like to change the color of untracked file (`??`) in the `--git-status` flag to yellow. Copy the defaut `dark_colors.yaml` and change it.
167
169
 
168
170
  ```sh
169
171
  cp $(dirname $(gem which colorls))/yaml/dark_colors.yaml ~/.config/colorls/dark_colors.yaml`
@@ -175,6 +177,12 @@ You can overwrite the existing icons and colors mapping by copying the yaml file
175
177
  untracked: yellow
176
178
  ```
177
179
 
180
+ Or, using hex color codes:
181
+
182
+ ```
183
+ untracked: '#FFFF00'
184
+ ```
185
+
178
186
  - To overwrite icon mapping :
179
187
 
180
188
  Please have a look at the [list of supported icons](https://nerdfonts.com/). Let's say you want to add an icon for swift files. Copy the default `files.yaml` and change it.
@@ -2,7 +2,7 @@
2
2
 
3
3
  class String
4
4
  def colorize(color)
5
- self.color(color.to_sym)
5
+ self.color(color)
6
6
  end
7
7
 
8
8
  def remove(pattern)
@@ -16,7 +16,7 @@ module ColorLS
16
16
 
17
17
  return yaml unless aliase
18
18
 
19
- yaml.to_a.map! { |k, v| [k, v.to_sym] }.to_h
19
+ yaml.to_a.map! { |k, v| v.include?('#') ? [k, v] : [k, v.to_sym] }.to_h
20
20
  end
21
21
 
22
22
  def read_file(filepath)
@@ -1,7 +1,7 @@
1
1
  .\" generated with Ronn/v0.7.3
2
2
  .\" http://github.com/rtomayko/ronn/tree/0.7.3
3
3
  .
4
- .TH "COLORLS" "1" "April 2020" "colorls 1.4.0" "colorls Manual"
4
+ .TH "COLORLS" "1" "May 2020" "colorls 1.4.1" "colorls Manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBcolorls\fR \- list directory contents with colors and icons
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: colorls
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.2.pre.694
4
+ version: 1.4.2.pre.698
5
5
  platform: ruby
6
6
  authors:
7
7
  - Athitya Kumar
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-05-22 00:00:00.000000000 Z
11
+ date: 2020-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: clocale