colorls 1.4.7.pre.124 → 1.5.1.pre.274

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: ba12189a209eb58390efe345fd5d8349e64d8162d49e304ee2caa2297ab3a242
4
- data.tar.gz: ca976cd70ddb41d7e6c7a1c479161fce95e2db882b6f8ca31d86512627484103
3
+ metadata.gz: d4ea2cc59c7de1371d6d4bf3fb69c53b82c383107c4da12e5a95809d54eb5834
4
+ data.tar.gz: 63423b15bb8f31540f886871ef7b4ba4f0f2be869396f0a6869912cc63cf636b
5
5
  SHA512:
6
- metadata.gz: 1b662f44e35ecf44aafb8e60a8b827db65c5d4b281b66872c669e540b93e41cc36f8c03e89dc6b643b8da67602db579620cdb55c2dc12802d243c5362289fce6
7
- data.tar.gz: eedcdd143abc230945e9f23ae3e652983cdd647b0973b35ec7fbd19ecc90cd63d6745d19ae4ac1c2feb37cb050f3a4ac5ec7bd31060c7c656f5060251fa0c387
6
+ metadata.gz: a65f27cbe75ed71baa94125fb59f58add179f2b33524b8d7ee685498a63178fedf103a7de2b37b9088d23af247b4180a3c3a1783f3bc52f24dd6d2ee92930e68
7
+ data.tar.gz: f06bd6e4736d2aa6220cd0c55a015e11e6cd4864933db4f9ce88b2e0fb59b2e7260f71b35baee1025c428270f73b69aca18e5d18e0d1f8c648a9e4fde7708391
data/.rubocop.yml CHANGED
@@ -113,6 +113,9 @@ Metrics/CyclomaticComplexity:
113
113
  Metrics/PerceivedComplexity:
114
114
  Max: 8
115
115
 
116
+ Gemspec/RequireMFA:
117
+ Enabled: false
118
+
116
119
  # TODO -----------------------------------------------------------------
117
120
 
118
121
  Style/Documentation:
data/README.md CHANGED
@@ -22,9 +22,9 @@ A Ruby script that colorizes the `ls` output with color and icons. Here are the
22
22
  - `-A` (or) `--almost-all`
23
23
  - `-d` (or) `--dirs`
24
24
  - `-f` (or) `--files`
25
- - `-h` (or) `--help`
25
+ - `--help`
26
26
  - `-l` (or) `--long`
27
- - `-r` (or) `--report`
27
+ - `--report`
28
28
  - `--tree` (or) `--tree=[DEPTH]`
29
29
  - `--gs` (or) `--git-status`
30
30
  - `--sd` (or) `--sort-dirs` or `--group-directories-first`
@@ -67,7 +67,7 @@ Man pages have been added. Checkout `man colorls`.
67
67
 
68
68
  ![image](https://user-images.githubusercontent.com/17109060/32149065-5a27c9d4-bd25-11e7-9a2b-fd731d76a058.png)
69
69
 
70
- - With `-h` (or) `--help` : Prints a very helpful help menu
70
+ - With `--help` : Prints a very helpful help menu
71
71
 
72
72
  ![image](https://user-images.githubusercontent.com/17109060/32149096-cf2cf5b0-bd25-11e7-84b6-909d79099c98.png)
73
73
 
@@ -75,7 +75,7 @@ Man pages have been added. Checkout `man colorls`.
75
75
 
76
76
  ![image](https://user-images.githubusercontent.com/17109060/32149049-2a63ae48-bd25-11e7-943c-5ceed25bd693.png)
77
77
 
78
- - With `-r` (or) `--report` : Shows brief report about number of files and folders shown
78
+ - With `--report` : Shows brief report about number of files and folders shown
79
79
 
80
80
  ![image](https://user-images.githubusercontent.com/17109060/32149082-96a83fec-bd25-11e7-9081-7f77e4c90e90.png)
81
81
 
@@ -113,6 +113,11 @@ Man pages have been added. Checkout `man colorls`.
113
113
 
114
114
  ![image](https://user-images.githubusercontent.com/17109060/32149084-9eb2a416-bd25-11e7-8fb7-a9d336c6e038.png)
115
115
 
116
+ - Using `--non-human-readable` with `-l` :
117
+ - This will print the file sizes in bytes (non-human readable format)
118
+
119
+ ![image](https://user-images.githubusercontent.com/19269206/234581461-1e1fdd90-a362-4cea-ab82-5ca360746be8.png)
120
+
116
121
  # Installation
117
122
 
118
123
  [(Back to top)](#table-of-contents)
@@ -169,6 +174,14 @@ You can overwrite the existing icons and colors mapping by copying the yaml file
169
174
 
170
175
  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.
171
176
 
177
+ Check if the `~/.config/colorls` directory exists. If it doesn't exist, create it using the following command:
178
+
179
+ ```sh
180
+ mkdir -p ~/.config/colorls
181
+ ```
182
+
183
+ And then
184
+
172
185
  ```sh
173
186
  cp $(dirname $(gem which colorls))/yaml/dark_colors.yaml ~/.config/colorls/dark_colors.yaml
174
187
  ```
data/colorls.gemspec CHANGED
@@ -25,11 +25,10 @@ POST_INSTALL_MESSAGE = %(
25
25
  *******************************************************************
26
26
  )
27
27
 
28
- # rubocop:disable Metrics/BlockLength
29
28
  Gem::Specification.new do |spec|
30
29
  is_tagged = ENV['GITHUB_REF'] == "refs/tags/v#{ColorLS::VERSION}"
31
30
  is_origin = ENV['GITHUB_REPOSITORY_OWNER'] == 'athityakumar'
32
- build_number = ENV['GITHUB_RUN_NUMBER']
31
+ build_number = ENV.fetch('GITHUB_RUN_NUMBER', nil)
33
32
 
34
33
  spec.name = 'colorls'
35
34
  spec.version = if build_number && is_origin && !is_tagged
@@ -70,17 +69,16 @@ Gem::Specification.new do |spec|
70
69
 
71
70
  spec.add_development_dependency 'bundler', '~> 2.0'
72
71
  spec.add_development_dependency 'codecov', '~> 0.1'
73
- spec.add_development_dependency 'diffy', '~> 3'
72
+ spec.add_development_dependency 'diffy', '3.4.2'
74
73
  spec.add_development_dependency 'rake', '~> 13'
75
74
  spec.add_development_dependency 'rdoc', '~> 6.1'
76
75
  spec.add_development_dependency 'ronn', '~> 0'
77
76
  spec.add_development_dependency 'rspec', '~> 3.7'
78
77
  spec.add_development_dependency 'rspec-its', '~> 1.2'
79
- spec.add_development_dependency 'rubocop', '~> 1.22.0'
80
- spec.add_development_dependency 'rubocop-performance', '~> 1.13.0'
78
+ spec.add_development_dependency 'rubocop', '~> 1.50.1'
79
+ spec.add_development_dependency 'rubocop-performance', '~> 1.17.1'
81
80
  spec.add_development_dependency 'rubocop-rake', '~> 0.5'
82
- spec.add_development_dependency 'rubocop-rspec', '~> 2.10.0'
81
+ spec.add_development_dependency 'rubocop-rspec', '~> 2.20.0'
83
82
  spec.add_development_dependency 'rubygems-tasks', '~> 0'
84
- spec.add_development_dependency 'simplecov', '~> 0.21.2'
83
+ spec.add_development_dependency 'simplecov', '~> 0.22.0'
85
84
  end
86
- # rubocop:enable Metrics/BlockLength
data/lib/colorls/core.rb CHANGED
@@ -24,11 +24,13 @@ module ColorLS
24
24
  @screen_width
25
25
  end
26
26
 
27
- class Core
27
+ class Core # rubocop:disable Metrics/ClassLength
28
+ MIN_SIZE_CHARS = 4
29
+
28
30
  def initialize(all: false, sort: false, show: false,
29
31
  mode: nil, show_git: false, almost_all: false, colors: [], group: nil,
30
32
  reverse: false, hyperlink: false, tree_depth: nil, show_inode: false,
31
- indicator_style: 'slash', long_style_options: {})
33
+ indicator_style: 'slash', long_style_options: {}, icons: true)
32
34
  @count = {folders: 0, recognized_files: 0, unrecognized_files: 0}
33
35
  @all = all
34
36
  @almost_all = almost_all
@@ -46,14 +48,16 @@ module ColorLS
46
48
  @time_style = long_style_options.key?(:time_style) ? long_style_options[:time_style] : ''
47
49
  @indicator_style = indicator_style
48
50
  @hard_links_count = long_style_options.key?(:hard_links_count) ? long_style_options[:hard_links_count] : true
49
- # how much characters an item occupies besides its name
50
- @additional_chars_per_item = 12 + (@show_git ? 4 : 0) + (@show_inode ? 10 : 0)
51
+ @icons = icons
51
52
 
52
53
  init_colors colors
53
-
54
54
  init_icons
55
55
  end
56
56
 
57
+ def additional_chars_per_item
58
+ 12 + (@show_git ? 4 : 0) + (@show_inode ? 10 : 0)
59
+ end
60
+
57
61
  def ls_dir(info)
58
62
  if @tree[:mode]
59
63
  print "\n"
@@ -118,6 +122,7 @@ module ColorLS
118
122
  layout.each_line do |line, widths|
119
123
  ls_line(line, widths)
120
124
  end
125
+ clear_chars_for_size
121
126
  end
122
127
 
123
128
  def init_colors(colors)
@@ -137,6 +142,9 @@ module ColorLS
137
142
  @long = mode == :long
138
143
  @show_group = long_style_options.key?(:show_group) ? long_style_options[:show_group] : true
139
144
  @show_user = long_style_options.key?(:show_user) ? long_style_options[:show_user] : true
145
+ @show_symbol_dest = long_style_options.key?(:show_symbol_dest) ? long_style_options[:show_symbol_dest] : false
146
+ @show_human_readable_size =
147
+ long_style_options.key?(:human_readable_size) ? long_style_options[:human_readable_size] : true
140
148
  end
141
149
 
142
150
  def init_git_status(show_git)
@@ -155,7 +163,7 @@ module ColorLS
155
163
  end
156
164
 
157
165
  def item_widths
158
- @contents.map { |item| Unicode::DisplayWidth.of(item.show) + @additional_chars_per_item }
166
+ @contents.map { |item| Unicode::DisplayWidth.of(item.show) + additional_chars_per_item }
159
167
  end
160
168
 
161
169
  def filter_hidden_contents
@@ -251,14 +259,36 @@ module ColorLS
251
259
  end
252
260
 
253
261
  def size_info(filesize)
254
- size = Filesize.new(filesize).pretty.split
255
- size = "#{size[0][0..-4].rjust(4,' ')} #{size[1].ljust(3,' ')}"
262
+ filesize = Filesize.new(filesize)
263
+ size = @show_human_readable_size ? filesize.pretty : filesize.to_s
264
+ size = size.split
265
+ size = justify_size_info(size)
256
266
  return size.colorize(@colors[:file_large]) if filesize >= 512 * (1024 ** 2)
257
267
  return size.colorize(@colors[:file_medium]) if filesize >= 128 * (1024 ** 2)
258
268
 
259
269
  size.colorize(@colors[:file_small])
260
270
  end
261
271
 
272
+ def chars_for_size
273
+ @chars_for_size ||= if @show_human_readable_size
274
+ MIN_SIZE_CHARS
275
+ else
276
+ max_size = @contents.max_by(&:size).size
277
+ reqd_chars = max_size.to_s.length
278
+ [reqd_chars, MIN_SIZE_CHARS].max
279
+ end
280
+ end
281
+
282
+ def justify_size_info(size)
283
+ size_num = size[0][0..-4].rjust(chars_for_size, ' ')
284
+ size_unit = @show_human_readable_size ? size[1].ljust(3, ' ') : size[1]
285
+ "#{size_num} #{size_unit}"
286
+ end
287
+
288
+ def clear_chars_for_size
289
+ @chars_for_size = nil
290
+ end
291
+
262
292
  def mtime_info(file_mtime)
263
293
  mtime = @time_style.start_with?('+') ? file_mtime.strftime(@time_style.delete_prefix('+')) : file_mtime.asctime
264
294
  now = Time.now
@@ -315,7 +345,7 @@ module ColorLS
315
345
  line_array.push links if @hard_links_count
316
346
  line_array.push user_info(content) if @show_user
317
347
  line_array.push group_info(content.group) if @show_group
318
- line_array.concat [size_info(content.size), mtime_info(content.mtime)]
348
+ line_array.push(size_info(content.size), mtime_info(content.mtime))
319
349
  line_array.join(' ')
320
350
  end
321
351
 
@@ -331,6 +361,15 @@ module ColorLS
331
361
  end
332
362
  end
333
363
 
364
+ def update_content_if_show_symbol_dest(content, show_symbol_dest_flag)
365
+ return content unless show_symbol_dest_flag
366
+ return content unless content.symlink?
367
+ return content if content.link_target.nil?
368
+ return content if content.dead?
369
+
370
+ FileInfo.info(content.link_target)
371
+ end
372
+
334
373
  def out_encode(str)
335
374
  str.encode(Encoding.default_external, undef: :replace, replace: '')
336
375
  end
@@ -341,10 +380,13 @@ module ColorLS
341
380
  logo = value.gsub(/\\u[\da-f]{4}/i) { |m| [m[-4..].to_i(16)].pack('U') }
342
381
  name = @hyperlink ? make_link(content) : content.show
343
382
  name += content.directory? && @indicator_style != 'none' ? '/' : ' '
344
- entry = "#{out_encode(logo)} #{out_encode(name)}"
383
+ entry = @icons ? "#{out_encode(logo)} #{out_encode(name)}" : out_encode(name).to_s
345
384
  entry = entry.bright if !content.directory? && content.executable?
346
385
 
347
- "#{inode(content)} #{long_info(content)} #{git_info(content)} #{entry.colorize(color)}#{symlink_info(content)}"
386
+ symlink_info_string = symlink_info(content)
387
+ content = update_content_if_show_symbol_dest(content,@show_symbol_dest)
388
+
389
+ "#{inode(content)} #{long_info(content)} #{git_info(content)} #{entry.colorize(color)}#{symlink_info_string}"
348
390
  end
349
391
 
350
392
  def ls_line(chunk, widths)
@@ -354,7 +396,7 @@ module ColorLS
354
396
  entry = fetch_string(content, *options(content))
355
397
  line << (' ' * padding)
356
398
  line << ' ' << entry.encode(Encoding.default_external, undef: :replace)
357
- padding = widths[i] - Unicode::DisplayWidth.of(content.show) - @additional_chars_per_item
399
+ padding = widths[i] - Unicode::DisplayWidth.of(content.show) - additional_chars_per_item
358
400
  end
359
401
  print line << "\n"
360
402
  end
@@ -11,20 +11,21 @@ module ColorLS
11
11
 
12
12
  attr_reader :stats, :name, :path, :parent
13
13
 
14
- def initialize(name:, parent:, path: nil, link_info: true)
14
+ def initialize(name:, parent:, path: nil, link_info: true, show_filepath: false)
15
15
  @name = name
16
16
  @parent = parent
17
17
  @path = path.nil? ? File.join(parent, name) : +path
18
18
  @stats = File.lstat(@path)
19
- @show_name = nil
20
19
 
21
20
  @path.force_encoding(ColorLS.file_encoding)
22
21
 
23
22
  handle_symlink(@path) if link_info && @stats.symlink?
23
+ set_show_name(use_path: show_filepath)
24
24
  end
25
25
 
26
- def self.info(path, link_info: true)
27
- FileInfo.new(name: File.basename(path), parent: File.dirname(path), path: path, link_info: link_info)
26
+ def self.info(path, link_info: true, show_filepath: false)
27
+ FileInfo.new(name: File.basename(path), parent: File.dirname(path), path: path, link_info: link_info,
28
+ show_filepath: show_filepath)
28
29
  end
29
30
 
30
31
  def self.dir_entry(dir, child, link_info: true)
@@ -32,10 +33,7 @@ module ColorLS
32
33
  end
33
34
 
34
35
  def show
35
- return @show_name unless @show_name.nil?
36
-
37
- @show_name = @name.encode(Encoding.find('filesystem'), Encoding.default_external,
38
- invalid: :replace, undef: :replace)
36
+ @show_name
39
37
  end
40
38
 
41
39
  def dead?
@@ -69,7 +67,7 @@ module ColorLS
69
67
  name
70
68
  end
71
69
 
72
- def_delegators :@stats, :directory?, :socket?, :chardev?, :symlink?, :blockdev?, :mtime, :nlink, :size, :owned?,\
70
+ def_delegators :@stats, :directory?, :socket?, :chardev?, :symlink?, :blockdev?, :mtime, :nlink, :size, :owned?,
73
71
  :executable?
74
72
 
75
73
  private
@@ -80,5 +78,21 @@ module ColorLS
80
78
  rescue SystemCallError => e
81
79
  $stderr.puts "cannot read symbolic link: #{e}"
82
80
  end
81
+
82
+ def show_basename
83
+ @name.encode(Encoding.find('filesystem'), Encoding.default_external,
84
+ invalid: :replace, undef: :replace)
85
+ end
86
+
87
+ def show_relative_path
88
+ @path.encode(Encoding.find('filesystem'), Encoding.default_external,
89
+ invalid: :replace, undef: :replace)
90
+ end
91
+
92
+ def set_show_name(use_path: false)
93
+ @show_name = show_basename unless use_path
94
+ @show_name = show_basename if directory?
95
+ @show_name = show_relative_path if use_path
96
+ end
83
97
  end
84
98
  end
data/lib/colorls/flags.rb CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  require 'optparse'
4
4
  require 'colorls/version'
5
- require 'ostruct'
6
5
 
7
6
  module ColorLS
8
7
  class Flags
@@ -31,6 +30,8 @@ module ColorLS
31
30
  process_args
32
31
  end
33
32
 
33
+ Option = Struct.new(:flags, :desc)
34
+
34
35
  def options
35
36
  list = @parser.top.list + @parser.base.list
36
37
 
@@ -40,7 +41,7 @@ module ColorLS
40
41
  flags = o.short + o.long
41
42
  next if flags.empty?
42
43
 
43
- OpenStruct.new(flags: flags, desc: o.desc)
44
+ Option.new(flags, o.desc)
44
45
  end
45
46
 
46
47
  result.compact
@@ -57,7 +58,7 @@ module ColorLS
57
58
 
58
59
  def group_files_and_directories
59
60
  infos = @args.flat_map do |arg|
60
- FileInfo.info(arg)
61
+ FileInfo.info(arg, show_filepath: true)
61
62
  rescue Errno::ENOENT
62
63
  $stderr.puts "colorls: Specified path '#{arg}' doesn't exist.".colorize(:red)
63
64
  @exit_status_code = 2
@@ -174,6 +175,7 @@ module ColorLS
174
175
  end
175
176
  options.on('-x', 'list entries by lines instead of by columns') { @opts[:mode] = :horizontal }
176
177
  options.on('-C', 'list entries by columns instead of by lines') { @opts[:mode] = :vertical }
178
+ options.on('--without-icons', 'list entries without icons') { @opts[:icons] = false }
177
179
  end
178
180
 
179
181
  def default_long_style_options
@@ -181,13 +183,30 @@ module ColorLS
181
183
  show_group: true,
182
184
  show_user: true,
183
185
  time_style: '',
184
- hard_links_count: true
186
+ hard_links_count: true,
187
+ show_symbol_dest: false,
188
+ human_readable_size: true
185
189
  }
186
190
  end
187
191
 
188
192
  def add_long_style_options(options)
189
193
  long_style_options = default_long_style_options
190
194
  options.on('-l', '--long', 'use a long listing format') { @opts[:mode] = :long }
195
+ long_style_options = set_long_style_user_and_group_options(options, long_style_options)
196
+ options.on('--time-style=FORMAT', String, 'use time display format') do |time_style|
197
+ long_style_options[:time_style] = time_style
198
+ end
199
+ options.on('--no-hardlinks', 'show no hard links count in a long listing') do
200
+ long_style_options[:hard_links_count] = false
201
+ end
202
+ long_style_options = get_long_style_symlink_options(options, long_style_options)
203
+ options.on('--non-human-readable', 'show file sizes in bytes only') do
204
+ long_style_options[:human_readable_size] = false
205
+ end
206
+ @opts[:long_style_options] = long_style_options
207
+ end
208
+
209
+ def set_long_style_user_and_group_options(options, long_style_options)
191
210
  options.on('-o', 'use a long listing format without group information') do
192
211
  @opts[:mode] = :long
193
212
  long_style_options[:show_group] = false
@@ -199,13 +218,14 @@ module ColorLS
199
218
  options.on('-G', '--no-group', 'show no group information in a long listing') do
200
219
  long_style_options[:show_group] = false
201
220
  end
202
- options.on('--time-style=FORMAT', String, 'use time display format') do |time_style|
203
- long_style_options[:time_style] = time_style
204
- end
205
- options.on('--no-hardlinks', 'show no hard links count in a long listing') do
206
- long_style_options[:hard_links_count] = false
221
+ long_style_options
222
+ end
223
+
224
+ def get_long_style_symlink_options(options, long_style_options)
225
+ options.on('-L', 'show information on the destination of symbolic links') do
226
+ long_style_options[:show_symbol_dest] = true
207
227
  end
208
- @opts[:long_style_options] = long_style_options
228
+ long_style_options
209
229
  end
210
230
 
211
231
  def add_general_options(options)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ColorLS
4
- VERSION = '1.4.6'
4
+ VERSION = '1.5.0'
5
5
  end
@@ -6,6 +6,7 @@ flac: audio
6
6
  m4a: audio
7
7
  mp3: audio
8
8
  ogg: audio
9
+ opus: audio
9
10
  wav: audio
10
11
  editorconfig: conf
11
12
  scss: css
@@ -23,11 +24,14 @@ gitconfig: git
23
24
  gitignore: git
24
25
  gitignore_global: git
25
26
  lhs: hs
27
+ avif: image
26
28
  bmp: image
27
29
  gif: image
30
+ heif: image
28
31
  ico: image
29
32
  jpeg: image
30
33
  jpg: image
34
+ jxl: image
31
35
  odg: image
32
36
  png: image
33
37
  pxm: image
@@ -88,6 +92,9 @@ ods: xls
88
92
  xlsx: xls
89
93
  xul: xml
90
94
  yaml: yml
95
+ 7z: zip
91
96
  gz: zip
92
97
  rar: zip
93
98
  tar: zip
99
+ tgz: zip
100
+ xz: zip
data/lib/yaml/files.yaml CHANGED
@@ -43,11 +43,13 @@ pdf: ""
43
43
  php: ""
44
44
  pl: ""
45
45
  ppt: ""
46
+ prql: ""
46
47
  psd: ""
47
48
  py: ""
48
49
  r: ""
49
50
  rb: ""
50
51
  rdb: ""
52
+ react: "ﰆ"
51
53
  rss: ""
52
54
  rubydoc: ""
53
55
  sass: ""
@@ -61,6 +63,7 @@ twig: ""
61
63
  txt: ""
62
64
  video: ""
63
65
  vim: ""
66
+ vue: "﵂"
64
67
  windows: ""
65
68
  xls: ""
66
69
  xml: ""
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.6" "colorls Manual"
4
+ .TH "COLORLS" "1" "July 2024" "colorls 1.5.0" "colorls Manual"
5
5
  .
6
6
  .SH "NAME"
7
7
  \fBcolorls\fR \- list directory contents with colors and icons
@@ -79,6 +79,10 @@ list entries by lines instead of by columns
79
79
  list entries by columns instead of by lines
80
80
  .
81
81
  .TP
82
+ \fB\-\-without\-icons\fR
83
+ list entries without icons
84
+ .
85
+ .TP
82
86
  \fB\-l\fR, \fB\-\-long\fR
83
87
  use a long listing format
84
88
  .
@@ -103,6 +107,14 @@ use time display format
103
107
  show no hard links count in a long listing
104
108
  .
105
109
  .TP
110
+ \fB\-L\fR
111
+ show information on the destination of symbolic links
112
+ .
113
+ .TP
114
+ \fB\-\-non\-human\-readable\fR
115
+ show file sizes in bytes only
116
+ .
117
+ .TP
106
118
  \fB\-\-sd\fR, \fB\-\-sort\-dirs\fR, \fB\-\-group\-directories\-first\fR
107
119
  sort directories first
108
120
  .
data/zsh/_colorls CHANGED
@@ -24,6 +24,7 @@ _arguments -s -S \
24
24
  "--tree[shows tree view of the directory]" \
25
25
  "-x[list entries by lines instead of by columns]" \
26
26
  "-C[list entries by columns instead of by lines]" \
27
+ "--without-icons[list entries without icons]" \
27
28
  "-l[use a long listing format]" \
28
29
  "--long[use a long listing format]" \
29
30
  "-o[use a long listing format without group information]" \
@@ -32,6 +33,8 @@ _arguments -s -S \
32
33
  "--no-group[show no group information in a long listing]" \
33
34
  "--time-style[use time display format]" \
34
35
  "--no-hardlinks[show no hard links count in a long listing]" \
36
+ "-L[show information on the destination of symbolic links]" \
37
+ "--non-human-readable[show file sizes in bytes only]" \
35
38
  "--sd[sort directories first]" \
36
39
  "--sort-dirs[sort directories first]" \
37
40
  "--group-directories-first[sort directories first]" \
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.7.pre.124
4
+ version: 1.5.1.pre.274
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-30 00:00:00.000000000 Z
11
+ date: 2024-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -138,16 +138,16 @@ dependencies:
138
138
  name: diffy
139
139
  requirement: !ruby/object:Gem::Requirement
140
140
  requirements:
141
- - - "~>"
141
+ - - '='
142
142
  - !ruby/object:Gem::Version
143
- version: '3'
143
+ version: 3.4.2
144
144
  type: :development
145
145
  prerelease: false
146
146
  version_requirements: !ruby/object:Gem::Requirement
147
147
  requirements:
148
- - - "~>"
148
+ - - '='
149
149
  - !ruby/object:Gem::Version
150
- version: '3'
150
+ version: 3.4.2
151
151
  - !ruby/object:Gem::Dependency
152
152
  name: rake
153
153
  requirement: !ruby/object:Gem::Requirement
@@ -224,28 +224,28 @@ dependencies:
224
224
  requirements:
225
225
  - - "~>"
226
226
  - !ruby/object:Gem::Version
227
- version: 1.22.0
227
+ version: 1.50.1
228
228
  type: :development
229
229
  prerelease: false
230
230
  version_requirements: !ruby/object:Gem::Requirement
231
231
  requirements:
232
232
  - - "~>"
233
233
  - !ruby/object:Gem::Version
234
- version: 1.22.0
234
+ version: 1.50.1
235
235
  - !ruby/object:Gem::Dependency
236
236
  name: rubocop-performance
237
237
  requirement: !ruby/object:Gem::Requirement
238
238
  requirements:
239
239
  - - "~>"
240
240
  - !ruby/object:Gem::Version
241
- version: 1.13.0
241
+ version: 1.17.1
242
242
  type: :development
243
243
  prerelease: false
244
244
  version_requirements: !ruby/object:Gem::Requirement
245
245
  requirements:
246
246
  - - "~>"
247
247
  - !ruby/object:Gem::Version
248
- version: 1.13.0
248
+ version: 1.17.1
249
249
  - !ruby/object:Gem::Dependency
250
250
  name: rubocop-rake
251
251
  requirement: !ruby/object:Gem::Requirement
@@ -266,14 +266,14 @@ dependencies:
266
266
  requirements:
267
267
  - - "~>"
268
268
  - !ruby/object:Gem::Version
269
- version: 2.10.0
269
+ version: 2.20.0
270
270
  type: :development
271
271
  prerelease: false
272
272
  version_requirements: !ruby/object:Gem::Requirement
273
273
  requirements:
274
274
  - - "~>"
275
275
  - !ruby/object:Gem::Version
276
- version: 2.10.0
276
+ version: 2.20.0
277
277
  - !ruby/object:Gem::Dependency
278
278
  name: rubygems-tasks
279
279
  requirement: !ruby/object:Gem::Requirement
@@ -294,14 +294,14 @@ dependencies:
294
294
  requirements:
295
295
  - - "~>"
296
296
  - !ruby/object:Gem::Version
297
- version: 0.21.2
297
+ version: 0.22.0
298
298
  type: :development
299
299
  prerelease: false
300
300
  version_requirements: !ruby/object:Gem::Requirement
301
301
  requirements:
302
302
  - - "~>"
303
303
  - !ruby/object:Gem::Version
304
- version: 0.21.2
304
+ version: 0.22.0
305
305
  description:
306
306
  email:
307
307
  - athityakumar@gmail.com
@@ -382,7 +382,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
382
382
  - !ruby/object:Gem::Version
383
383
  version: 1.3.1
384
384
  requirements: []
385
- rubygems_version: 3.3.7
385
+ rubygems_version: 3.3.27
386
386
  signing_key:
387
387
  specification_version: 4
388
388
  summary: A Ruby CLI gem that beautifies the terminal's ls command, with color and