rtfm-filemanager 2.6.2 → 2.6.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +14 -9
  3. data/bin/rtfm +6 -2
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6e3ff4bab2b2b6c467f5427c74b000c93ff09a6f395c28aabeafc157c9466b4d
4
- data.tar.gz: 3d8d2ceb06e663bc524b4105155b8afd88b4cc4c5c44d77e29b9019e3bf5b601
3
+ metadata.gz: 1978345412619a9471e21b9275902e07ba7004e7bf5ac645e6bac27b8b45e34f
4
+ data.tar.gz: 93be24dbd2abe1dbb03141546e14b76349d7ff1f21db1b76c8049fd3019b18a9
5
5
  SHA512:
6
- metadata.gz: 55e3d5e254de06c2b9c71f5c1ad0b684d0f5a28a1cf19d57869c3a2c6f4adeeb96373b64f58f1f3110c1388af6c2fb5878fee0722ee46e93c40d132ad266caa0
7
- data.tar.gz: f08f9ca02809a328f61da211a14b592df98b950241ae1f3f1671906c797b06e31230cf508d5c76d52b4b4f419b2f33d454cd2a2439cc15b25c59eb0bca471741
6
+ metadata.gz: 91a44a9087023cf1a04b39474c5932d89f56cb3f32303fbf14d734d5136f776c65d90ad8a6a9da4c81586c28910cefc999f4e942390d412082a4caf1340c7791
7
+ data.tar.gz: 65ba8713eec6df59df5dba08ff4e03f9b4c879dcadb2972e25fcc4445b615a11fbb26ab83ec83658b792b6cd815f133164381d55f875cebc213a8ab249f9bb92
data/README.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # RTFM - Ruby Terminal File Manager
2
2
 
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
+
5
+ What other features can I cram into this file manager?
6
+
3
7
  ## What?
4
8
  RTFM is a file manager for the terminal written in Ruby. It lets you browse
5
9
  directories and view the content of directories and files. Files are syntax
@@ -21,13 +25,13 @@ features:
21
25
  * Item's meta data is shown at the top
22
26
  * Easily browse file content (even pdf, MS/OpenOffice, etc.)
23
27
  * Move around the file systems using arrow keys of VI keys
24
- * Copy, move or rename files
28
+ * Copy, move, rename or delete files easily
25
29
  * Create symlinks with just one key stroke
26
30
  * Easily copy an item's path to clipboard or primary selection
27
31
  * Order items the way you want
28
32
  * See only files of a certain type
29
33
  * Filter out all files not matching a [regex](https://www.rubyguides.com/2015/06/ruby-regex/) pattern
30
- * Mark files and directories an do group actions on them
34
+ * Mark files and directories and do group actions on them
31
35
  * Bookmark directories for easy jumping
32
36
  * Follow a symlink to where it points with one key stroke
33
37
  * Highlight files and directories matching a given pattern
@@ -46,13 +50,13 @@ features:
46
50
  ## Why?
47
51
  RTFM parses your LS_COLORS to ensure color consistency with the terminal experience.
48
52
 
49
- The idea came to mind as I was working on [a complete
50
- LS_COLORS setup](https://github.com/isene/LS_COLORS) with a corresponding
51
- ranger theme. But making a separate theme for ranger to mimic a massive
52
- LS_COLOR setup is rather stupid. File managers should parse LS_COLORS as
53
- default rather than implement their own themes. This became an itch that
54
- I kept scratching until I could happily replace ranger two weeks later.
55
-
53
+ The idea came to mind as I was working on [a complete LS_COLORS
54
+ setup](https://github.com/isene/LS_COLORS) with a corresponding
55
+ [ranger](https://ranger.github.io/) theme. But making a separate theme for
56
+ ranger to mimic a massive LS_COLOR setup is rather stupid. File managers
57
+ should parse LS_COLORS as default rather than implement their own themes. This
58
+ became an itch that I kept scratching until I could happily replace ranger two
59
+ weeks later.
56
60
 
57
61
  ## How?
58
62
  RTFM is a two-pane file manager. You navigate in the left pane and the content
@@ -236,6 +240,7 @@ Key | Description
236
240
  f | Show only files in the left pane matching extension(s) (e.g. "txt" or "pdf,png,jpg")
237
241
  F | Show only files matching a pattern (Ruby Regex) (e.g. "abc" or "ab.+12(\w3)*")
238
242
  g | Run 'grep' to show files that contains the MATCH in current directory
243
+ B | Toggle border
239
244
  : | Enter "command mode" in bottom window (press ENTER to execute, press Ctrl-G to escape)
240
245
  ; | Show command history in right pane
241
246
  y | Copy path of selected item to primary selection (for pasting with middle mouse button)
data/bin/rtfm CHANGED
@@ -98,6 +98,7 @@ ADDITINAL COMMANDS
98
98
  f = Show only files in the left pane matching extension(s) (e.g. "txt" or "pdf,png,jpg")
99
99
  F = Show only files matching a pattern (Ruby Regex) (e.g. "abc" or "ab.+12(\w3)*")
100
100
  g = Run 'grep' to show files that contains the MATCH in current directory
101
+ B = Toggle border
101
102
  : = Enter "command mode" in bottom window (press ENTER to execute, press Ctrl-G to escape)
102
103
  ; = Show command history in right pane
103
104
  y = Copy path of selected item to primary selection (for pasting with middle mouse button)
@@ -700,6 +701,9 @@ def main_getkey # GET KEY FROM USER
700
701
  @width = 2 if @width == 7
701
702
  @break = true
702
703
  @w_b.update = true
704
+ when 'B'
705
+ @border = !@border
706
+ @break = true
703
707
  when '-'
704
708
  @preview = !@preview
705
709
  @preview ? p = "On" : p = "Off"
@@ -978,11 +982,11 @@ def list_dir(active) # LIST CONTENT OF A DIRECTORY (BOTH active AND RIGHT WINDOW
978
982
  file_marker = color_pair(fg)
979
983
  file_marker = file_marker | Curses::A_BOLD if bold == 1
980
984
  if ix == @index and active
981
- str = "" + str
985
+ @w_l << ""
982
986
  file_marker = file_marker | Curses::A_UNDERLINE
983
987
  wixy = win.cury
984
988
  else
985
- str = " " + str
989
+ active ? @w_l << " " : @w_r << " "
986
990
  end
987
991
  file_marker = file_marker | Curses::A_REVERSE if @tagged.include?("\"#{Dir.pwd}/#{str_path}\"")
988
992
  file_marker = file_marker | Curses::A_BLINK if str.match(/#{@searched}/) and @searched != ""
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: 2.6.2
4
+ version: 2.6.4
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-04-18 00:00:00.000000000 Z
11
+ date: 2023-04-24 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 2.6.2: Fixed an annoyance in ''mv'' (key ''c'')'
50
+ other features. New in 2.6.4: Cosmetics + added ''B'' for toggle border'
51
51
  email: g@isene.com
52
52
  executables:
53
53
  - rtfm