rtfm-filemanager 3.27 → 3.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +12 -10
- data/bin/rtfm +10 -7
- metadata +4 -4
- /data/{rtfm-kb.png → img/rtfm-kb.png} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e993983d6be7d6b0356d33ebce27d69fb5c1c631d5fa44da8037c69d6b30cbdd
|
4
|
+
data.tar.gz: 9cb4e04034f71a64ec2cbc12e0b441316f22211eef2b312bca8da7c6f1fa956d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad63a0f9c1758410a9a878ab4e8814b17d0556507448b1f83228121580a5bd704110d0480f4cbd7927689257bb1456fa90262951ac9f8f3b246a7d20c2262859
|
7
|
+
data.tar.gz: 2ec5a0f594b9bd8d174d875ca7bc489b64a87fe6a62718410bdaac7fe3c4f630af4ea21b0510f4f01ca2e24dae07534cfc972dac8c4ad65e2cadf9712a626e9d
|
data/README.md
CHANGED
@@ -4,16 +4,18 @@
|
|
4
4
|
|
5
5
|
What other features can I cram into this file manager?
|
6
6
|
|
7
|
-
## What?
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
7
|
+
## What?
|
8
|
+
|
9
|
+
<img src="img/logo.jpg" align="left" width="150" height="150"> RTFM is a
|
10
|
+
terminal file manager jam packed with features.
|
11
|
+
|
12
|
+
Apart from viewing and manipulating directories, you get syntax highlighting
|
13
|
+
of file content, image and video thumbnailing in the terminal, OpenAI
|
14
|
+
integration, system info panel, git status, fzf and navi integration and much,
|
15
|
+
much more.
|
16
|
+
|
17
|
+
Note: RTFM (Ruby Terminal File Manager) works best with the (u)rxvt, xterm and
|
18
|
+
Eterm terminal emulators.
|
17
19
|
|
18
20
|
## Features
|
19
21
|
|
data/bin/rtfm
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
# for any damages resulting from its use. Further, I am under no
|
15
15
|
# obligation to maintain or extend this software. It is provided
|
16
16
|
# on an 'as is' basis without any expressed or implied warranty.
|
17
|
-
@version = "3.
|
17
|
+
@version = "3.32" # Fixed forking upon opening external apps
|
18
18
|
|
19
19
|
# PRELIMINARIES
|
20
20
|
@help = <<HELPTEXT
|
@@ -254,6 +254,7 @@ begin # BASIC SETUP
|
|
254
254
|
@preview = true
|
255
255
|
@runmailcap = false # Set to 'true' in .rtfm.conf if you want to use run-mailcap instead of xdg-open
|
256
256
|
@batuse = true # Use batcat for syntax highlighting
|
257
|
+
@aimodel = "gpt-3.5-turbo-instruct" # The default OpenAI model, set another in .rtfm.conf if you like
|
257
258
|
## These are automatically written on exit
|
258
259
|
@marks = {} # Initialize (book)marks hash
|
259
260
|
@hash = {} # Initialize the sha directory hashing
|
@@ -1151,10 +1152,10 @@ def open_selected(html = nil) # OPEN SELECTED ITEM (when pressing RIGHT)
|
|
1151
1152
|
else
|
1152
1153
|
if @runmailcap
|
1153
1154
|
#Thread.new { system("run-mailcap #{@selected_safe} 2>/dev/null") }
|
1154
|
-
system("run-mailcap #{@selected_safe} 2>/dev/null")
|
1155
|
+
system("run-mailcap #{@selected_safe} & 2>/dev/null")
|
1155
1156
|
else
|
1156
1157
|
#Thread.new { system("xdg-open #{@selected_safe} 2>/dev/null") }
|
1157
|
-
system("xdg-open #{@selected_safe} 2>/dev/null")
|
1158
|
+
system("xdg-open #{@selected_safe} & 2>/dev/null")
|
1158
1159
|
end
|
1159
1160
|
end
|
1160
1161
|
@break = true
|
@@ -1414,11 +1415,13 @@ def openai # INTERFACE TO OPENAI
|
|
1414
1415
|
p += "#{f}? "
|
1415
1416
|
p += "Give a brief summary of its content: " + c unless File.directory?(@selected) and c == ""
|
1416
1417
|
|
1417
|
-
|
1418
|
-
|
1418
|
+
begin
|
1419
|
+
response = client.completions( parameters: { model: @aimodel, prompt: p, max_tokens: 200 })
|
1419
1420
|
text = "OpenAI description:\n" + response["choices"][0]["text"]
|
1420
|
-
|
1421
|
-
text
|
1421
|
+
rescue
|
1422
|
+
text = "Error retrieving OpenAI request.\n\n"
|
1423
|
+
text += "Check your connection and @ai secret key (in .rtfm.conf).\n\n"
|
1424
|
+
text += response.to_s
|
1422
1425
|
end
|
1423
1426
|
|
1424
1427
|
@w_r.fg = 229
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rtfm-filemanager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '3.
|
4
|
+
version: '3.32'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Geir Isene
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: curses
|
@@ -47,7 +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 3.
|
50
|
+
other features. New in 3.32: Fixed forking upon opening external apps.'
|
51
51
|
email: g@isene.com
|
52
52
|
executables:
|
53
53
|
- rtfm
|
@@ -56,7 +56,7 @@ extra_rdoc_files: []
|
|
56
56
|
files:
|
57
57
|
- README.md
|
58
58
|
- bin/rtfm
|
59
|
-
- rtfm-kb.png
|
59
|
+
- img/rtfm-kb.png
|
60
60
|
homepage: https://isene.com/
|
61
61
|
licenses:
|
62
62
|
- Unlicense
|
File without changes
|