rtfm-filemanager 3.14.15 → 3.14.159

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -2
  3. data/bin/rtfm +11 -6
  4. data/rtfm-kb.png +0 -0
  5. metadata +4 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7fdeb889dbc290d6574a57c96dbe663242ac13ec5ae9e9443e35d51f322f6bef
4
- data.tar.gz: 63a386a2fc3f762c7e2d54985844123b589334706d7e3aac426af7983b689865
3
+ metadata.gz: e855728341fc36cac457175402892a96bf01531e7c078c97aca18b3d2ab1487b
4
+ data.tar.gz: 5afa14779f3f74d3e7c47be256a5a4e640792515d650699625a81c047b11994c
5
5
  SHA512:
6
- metadata.gz: 3e74bc138330f2b0009ad376e14c516727a0a428fc975d36aaaea3fb6b4c1d87430340099e23d71a16b505b86df1acb4ad02a0db25058288ca032675125f5c00
7
- data.tar.gz: 4987c8c4559a1e974661abe7c2b83ec1c745022454fd7029a55d9fa39de97aa5cbc399fe5c4119b9b9decaddf810c0b7f6ca2a2f58297f274c16d66da3dcbd18
6
+ metadata.gz: 5534f8c70ab1ce40519ef68411c8c93ee3dc0264abb9b6ad109a6ad3628d9add63b47c7c2f1e6f12435fd336dcfc26fcc54a535ce99adefdbea018707fda4bb5
7
+ data.tar.gz: 7ec0837be6947b7cc30a0824088589f878b2ef98e9cfcb58194ff5d0bcba8e81f6a37e6157ebbd2a64f1c93bfe4bc1137094d915560e41dd9d6214e1f91055db
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # RTFM - Ruby Terminal File Manager
2
-
2
+
3
3
  ![Ruby](https://img.shields.io/badge/language-Ruby-red) [![Gem Version](https://badge.fury.io/rb/rtfm-filemanager.svg)](https://badge.fury.io/rb/rtfm-filemanager) ![Unlicense](https://img.shields.io/badge/license-Unlicense-green) ![Stay Amazing](https://img.shields.io/badge/Stay-Amazing-important)
4
4
 
5
5
  What other features can I cram into this file manager?
@@ -263,8 +263,9 @@ B | Toggle border
263
263
  y | Copy path of selected item to primary selection (for pasting with middle mouse button)
264
264
  Y | Copy path of selected item to clipboard
265
265
  Ctrl-y | Copy content of right pane to clipboard
266
- S | Show comprehensive system info (system, CPU, filesystem, latest dmesg messages)
266
+ Ctrl-d | Create a new directory (a shortcut for ":mkdir ")
267
267
  Ctrl-n | Invoke navi (see https://github.com/denisidoro/navi) with any output in right pane
268
+ S | Show comprehensive system info (system, CPU, filesystem, latest dmesg messages)
268
269
 
269
270
  ## Keyboard cheat sheet
270
271
  ![RTFM keyboard cheat sheet](img/rtfm-kb.png)
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.14.15"
17
+ @version = "3.14.159"
18
18
 
19
19
  # PRELIMINARIES
20
20
  @help = <<HELPTEXT
@@ -111,10 +111,11 @@ ADDITIONAL COMMANDS
111
111
  y = Copy path of selected item to primary selection (for pasting with middle mouse button)
112
112
  Y = Copy path of selected item to clipboard
113
113
  Ctrl-y = Copy content of right pane to clipboard
114
- S = Show comprehensive System info (system, CPU, filesystem, latest dmesg messages)
114
+ Ctrl-d = Create a new directory (a shortcut for ":mkdir ")
115
115
  Ctrl-n = Invoke navi (see https://github.com/denisidoro/navi) with any output in right window
116
+ S = Show comprehensive System info (system, CPU, filesystem, latest dmesg messages)
116
117
 
117
- COPYRIGHT: Geir Isene, 2020-3. No rights reserved. See http://isene.com for more.
118
+ COPYRIGHT: Geir Isene, 2020-4. No rights reserved. See http://isene.com for more.
118
119
  HELPTEXT
119
120
  def firstrun
120
121
  @firstrun = <<~FIRSTRUN
@@ -347,6 +348,7 @@ def getchr # PROCESS KEY PRESSES
347
348
  when "" then chr = "WBACK"
348
349
  when "" then chr = "LDEL"
349
350
  when "" then chr = "C-C"
351
+ when "" then chr = "C-D"
350
352
  when "" then chr = "C-G"
351
353
  when " " then chr = "C-L"
352
354
  when "" then chr = "C-N"
@@ -868,6 +870,9 @@ def main_getkey # GET KEY FROM USER
868
870
  system("echo -n '#{@cont}' | #{clip}")
869
871
  when 'S' # Show comprehensive system info
870
872
  sysinfo
873
+ when 'C-D' # Create new directory (shortcut for ":mkdir ")
874
+ cmd = w_b_getstr(": ", "mkdir ")
875
+ w_b_exec(cmd)
871
876
  when 'C-N' # navi integration (https://github.com/denisidoro/navi)
872
877
  begin
873
878
  @navi = `navi`
@@ -1073,7 +1078,7 @@ def list_dir(active) # LIST CONTENT OF A DIRECTORY (BOTH active AND RIGHT WINDOW
1073
1078
  win.attron(file_marker) { win << str } # Implement color/bold to the item
1074
1079
  win.clrtoeol
1075
1080
  win << "\n"
1076
- ix += 1; t += 1
1081
+ ix += 1; t += 1
1077
1082
  end
1078
1083
  (win.maxy - win.cury).times {win.deleteln()} # Clear to bottom of window
1079
1084
  if active
@@ -1623,8 +1628,8 @@ loop do # OUTER LOOP - CATCHING REFRESHES VIA 'r'
1623
1628
  maxx = Curses.cols
1624
1629
  maxy = Curses.lines
1625
1630
  # Curses::Window.new(h,w,y,x)
1626
- @w_t = Curses::Window.new(1, 0, 0, 0)
1627
- @w_b = Curses::Window.new(1, 0, maxy - 1, 0)
1631
+ @w_t = Curses::Window.new(1, maxx, 0, 0)
1632
+ @w_b = Curses::Window.new(1, maxx, maxy - 1, 0)
1628
1633
  @w_l = Curses::Window.new(maxy - 3, (maxx * @width / 10) - 1, 2, 0)
1629
1634
  @w_r = Curses::Window.new(maxy - 4, maxx - (maxx * @width / 10), 2, maxx * @width / 10)
1630
1635
  @w_p = Curses::Window.new(1, maxx - (maxx * @width / 10), maxy - 2, maxx * @width / 10)
data/rtfm-kb.png CHANGED
Binary file
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.14.15
4
+ version: 3.14.159
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geir Isene
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-07 00:00:00.000000000 Z
11
+ date: 2024-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: curses
@@ -48,7 +48,8 @@ description: 'A full featured terminal browser with syntax highlighted files, im
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
50
  other features. New in 3.14: Better error handling. 3.14.1: Fixed bug in launching
51
- rtfm without the launcher ''r''. 3.14.15: Code clean-up.'
51
+ rtfm without the launcher ''r''. 3.14.159: Added Ctrl-d as a shortcut for :mkdir
52
+ .'
52
53
  email: g@isene.com
53
54
  executables:
54
55
  - rtfm