colorls 1.4.6.pre.97 → 1.4.7.pre.102

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: dcce526b2ddb10511c63206dbd8c2c9cadf1f463c33e23d07e277f34bf281d67
4
- data.tar.gz: 49216d0d980aa3881321a6dd1e7bbe4b42bec61b302a117a33453aa08d9859fe
3
+ metadata.gz: e33e281115f9f5be22dad30f8702b1afbedb5dfc9145142115afa87952dd4cd4
4
+ data.tar.gz: 03d1259d78ab98ad88ee444f319fd47255231ef6f05705d5d225462e5c681506
5
5
  SHA512:
6
- metadata.gz: 73f53b57496f7b183ee0f002bb86a4e3f6a8a958214dc1d7e85001abfa78dc955c790775db74289c9749067f44706dce00a04a00a225a9eb8f6a7060e065126b
7
- data.tar.gz: 55c0801e38961adb48694fd0c5c633a2235a6ac0e32af74ced7d4d458f2f24885ab0054e3b5be01db1df6ed1816cb729820db731fe61524dc75429c7132d7041
6
+ metadata.gz: ae2158b268ed44f0f17a0252ce35500464422d39bbe8e591e5476f8b175df355f997ec9f5faf7dbea2b99d0991b03bf62fe4f39eb2a289ada19991722dea671e
7
+ data.tar.gz: a81f6acc4795532e7ad44444e340a501a61cb11f9ffb85a8bee2eaeec4953b0655ad19ee8568345a33527d65abd1b1f2387f0a6ee3d3b538822438c396215f68
data/lib/colorls/core.rb CHANGED
@@ -339,8 +339,7 @@ module ColorLS
339
339
  @count[increment] += 1
340
340
  value = increment == :folders ? @folders[key] : @files[key]
341
341
  logo = value.gsub(/\\u[\da-f]{4}/i) { |m| [m[-4..].to_i(16)].pack('U') }
342
- name = content.show
343
- name = make_link(content) if @hyperlink
342
+ name = @hyperlink ? make_link(content) : content.show
344
343
  name += content.directory? && @indicator_style != 'none' ? '/' : ' '
345
344
  entry = "#{out_encode(logo)} #{out_encode(name)}"
346
345
  entry = entry.bright if !content.directory? && content.executable?
@@ -428,7 +427,7 @@ module ColorLS
428
427
 
429
428
  def make_link(content)
430
429
  uri = Addressable::URI.convert_path(File.absolute_path(content.path))
431
- "\033]8;;#{uri}\007#{content.name}\033]8;;\007"
430
+ "\033]8;;#{uri}\007#{content.show}\033]8;;\007"
432
431
  end
433
432
  end
434
433
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ColorLS
4
- VERSION = '1.4.5'
4
+ VERSION = '1.4.6'
5
5
  end
data/man/colorls.1 CHANGED
@@ -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 2022" "colorls 1.4.5" "colorls Manual"
4
+ .TH "COLORLS" "1" "April 2022" "colorls 1.4.6" "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.6.pre.97
4
+ version: 1.4.7.pre.102
5
5
  platform: ruby
6
6
  authors:
7
7
  - Athitya Kumar
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-04-04 00:00:00.000000000 Z
11
+ date: 2022-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable