rtfm-filemanager 2.7 → 2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/rtfm +8 -5
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9212de239a0f6cbc4d8962878867141f58a34da9c6083e68d9ea3f004bd3bc1d
|
4
|
+
data.tar.gz: f2428f14e0f27a4c2469f8723cad43813efdcf0018aad67f6b2006ae6a9ccb80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ea3ca000322dedb9b3dc6779dac28384fbd3fcc05430f3c1f02ffeed76bb3717ae3c484164a922f3d44048cdb4f898cb6829a96e077b371c780ed5c5bbcd3b6
|
7
|
+
data.tar.gz: 687de104bc2e71a1f6de6896908ed5c23bb5ef9e67cafa2240a2047e36e90f13c68c07f9a02e0dc15e9bae07b8d4d422800b1711b9d93302d4d52068d1258dd1
|
data/bin/rtfm
CHANGED
@@ -156,7 +156,6 @@ begin # BASIC SETUP
|
|
156
156
|
@showimage = false unless (cmd?('xwininfo') and cmd?('xdotool'))
|
157
157
|
|
158
158
|
cmd?('bat') ? @bat = "bat" : @bat = "batcat"
|
159
|
-
@batuse = true
|
160
159
|
|
161
160
|
STDIN.set_encoding(Encoding::UTF_8) # Set encoding for STDIN
|
162
161
|
LScolors = `echo $LS_COLORS` # Import LS_COLORS
|
@@ -182,6 +181,7 @@ begin # BASIC SETUP
|
|
182
181
|
@border = false
|
183
182
|
@preview = true
|
184
183
|
@runmailcap = false # Set to 'true' in .rtfm.conf if you want to use run-mailcap instead of xdg-open
|
184
|
+
@batuse = true # Use batcat for syntax highlighting
|
185
185
|
## These are automatically written on exit
|
186
186
|
@marks = {} # Initialize (book)marks hash
|
187
187
|
@hash = {} # Initialize the sha directory hashing
|
@@ -193,6 +193,7 @@ begin # BASIC SETUP
|
|
193
193
|
@lsmatch = "" # Files to match (initially set to matching all files) - not saved on exit
|
194
194
|
@index = 0 # Set chosen item to first on startup
|
195
195
|
@cont = ""
|
196
|
+
@tagsize = 0
|
196
197
|
@navi = ""
|
197
198
|
@marks["'"] = Dir.pwd
|
198
199
|
## File type recognizers
|
@@ -484,8 +485,10 @@ def main_getkey # GET KEY FROM USER
|
|
484
485
|
item = "\"#{Dir.pwd}/#{@selected}\""
|
485
486
|
if @tagged.include?(item)
|
486
487
|
@tagged.delete(item)
|
488
|
+
@tagsize -= File.size(item[1...-1])
|
487
489
|
else
|
488
490
|
@tagged.push(item)
|
491
|
+
@tagsize += File.size(item[1...-1])
|
489
492
|
end
|
490
493
|
@index += 1
|
491
494
|
@w_r.update = true
|
@@ -1321,17 +1324,17 @@ def openai # INTERFACE TO OPENAI
|
|
1321
1324
|
@w_r.fg = 229
|
1322
1325
|
w_r_info(text)
|
1323
1326
|
end
|
1324
|
-
|
1325
1327
|
# BOTTOM WINDOW FUNCTIONS
|
1326
1328
|
def w_b_info(info) # SHOW INFO IN @W_B
|
1327
1329
|
@w_b.clr
|
1328
1330
|
@w_b.fg, @w_b.bg = 250, 238
|
1329
1331
|
if info == nil
|
1330
1332
|
info = ": for command (use @s for selected item, @t for tagged items) - press ? for help"
|
1331
|
-
info = "Showing only files matching '#{@lsmatch}'" if @lsmatch != ""
|
1332
|
-
info = "Showing only file type '#{@lsfiles}'" if @lsfiles != ""
|
1333
|
-
info = "Showing only file types '#{@lsfiles}'" if @lsfiles =~ /,/
|
1333
|
+
info = " Showing only files matching '#{@lsmatch}'" if @lsmatch != ""
|
1334
|
+
info = " Showing only file type '#{@lsfiles}'" if @lsfiles != ""
|
1335
|
+
info = " Showing only file types '#{@lsfiles}'" if @lsfiles =~ /,/
|
1334
1336
|
info += " and only files matching '#{@lsmatch}'" if @lsfiles != "" and @lsmatch != ""
|
1337
|
+
info = " Tagged #{@tagged.size} files (#{(@tagsize.to_f/1000000).round(2)}MB)" unless @tagged.empty?
|
1335
1338
|
@w_b.fg, @w_b.bg = 250, 88 if @lsfiles != ""
|
1336
1339
|
@w_b.fg, @w_b.bg = 250, 21 if @lsmatch != ""
|
1337
1340
|
@w_b.fg, @w_b.bg = 250, 55 if @lsfiles != "" and @lsmatch != ""
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rtfm-filemanager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '2.
|
4
|
+
version: '2.8'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Geir Isene
|
@@ -47,8 +47,7 @@ dependencies:
|
|
47
47
|
description: 'A full featured terminal browser with syntax highlighted files, images
|
48
48
|
shown in the terminal, videos thumbnailed, etc. You can bookmark and jump around
|
49
49
|
easily, delete, rename, copy, symlink and move files. RTFM has a a wide range of
|
50
|
-
other features. New in 2.
|
51
|
-
(b)'
|
50
|
+
other features. New in 2.8: Added info about tagged files in bottom status line'
|
52
51
|
email: g@isene.com
|
53
52
|
executables:
|
54
53
|
- rtfm
|