rtfm-filemanager 1.3.4 → 1.3.5
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/bin/rtfm +33 -19
 - metadata +4 -4
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 2fdfba59295e424a39605d0501e0df29a7a37d9ad36429adb412d8d13c54c752
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 2a5523150436439dbbcabf66a7e9c8505c7ad30c82fd827e2b198ab5f73361e9
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 5e1cf39a6d5e205a7ea226bc8c70d885037077d1ed918450634a8fc9feb179dee05a03f58bcc174609c7419231b2d4df3b1f1b3bd7cb4cc89bd4a01d658124c6
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 5a152abd6d7c54de6c116f6ecac690e939cd2d07b28a1e7b9d4261337f72e6b23a833162567ccd6fb6674d5e92882551d9f27e3d7167ac4d61c00d6eb894b492
         
     | 
    
        data/bin/rtfm
    CHANGED
    
    | 
         @@ -276,6 +276,7 @@ def main_getkey # GET KEY FROM USER 
     | 
|
| 
       276 
276 
     | 
    
         
             
              case chr
         
     | 
| 
       277 
277 
     | 
    
         
             
              # BASIC KEYS
         
     | 
| 
       278 
278 
     | 
    
         
             
              when '?' # Show helptext in right window 
         
     | 
| 
      
 279 
     | 
    
         
            +
                @w_r.fg = 249
         
     | 
| 
       279 
280 
     | 
    
         
             
                w_r_info(@help)
         
     | 
| 
       280 
281 
     | 
    
         
             
                @w_b.update = true
         
     | 
| 
       281 
282 
     | 
    
         
             
              when 'r' # Refresh all windows 
         
     | 
| 
         @@ -367,6 +368,7 @@ def main_getkey # GET KEY FROM USER 
     | 
|
| 
       367 
368 
     | 
    
         
             
                @w_b.update = true
         
     | 
| 
       368 
369 
     | 
    
         
             
              when 'M' # Show marks 
         
     | 
| 
       369 
370 
     | 
    
         
             
                @marks = @marks.sort.to_h
         
     | 
| 
      
 371 
     | 
    
         
            +
                @w_r.fg = 147
         
     | 
| 
       370 
372 
     | 
    
         
             
                marks_info
         
     | 
| 
       371 
373 
     | 
    
         
             
                @w_r.update = false
         
     | 
| 
       372 
374 
     | 
    
         
             
                @w_b.update = true
         
     | 
| 
         @@ -440,6 +442,7 @@ def main_getkey # GET KEY FROM USER 
     | 
|
| 
       440 
442 
     | 
    
         
             
                @w_r.update = true
         
     | 
| 
       441 
443 
     | 
    
         
             
                @w_b.update = true
         
     | 
| 
       442 
444 
     | 
    
         
             
              when 'T' # Show tagged list 
         
     | 
| 
      
 445 
     | 
    
         
            +
                @w_r.fg = 196
         
     | 
| 
       443 
446 
     | 
    
         
             
                tagged_info
         
     | 
| 
       444 
447 
     | 
    
         
             
                @w_r.update = false
         
     | 
| 
       445 
448 
     | 
    
         
             
                @w_b.update = true
         
     | 
| 
         @@ -524,6 +527,7 @@ def main_getkey # GET KEY FROM USER 
     | 
|
| 
       524 
527 
     | 
    
         
             
              when 'O' # Show the Ordering in the bottom window (the full ls command)
         
     | 
| 
       525 
528 
     | 
    
         
             
                w_b_info(" Full 'ls' command: ls <@s> #{@lsbase} #{@lsall} #{@lsorder} #{@lsinvert} #{@lsuser}")
         
     | 
| 
       526 
529 
     | 
    
         
             
              when 'G' # Git status for selected item or current dir
         
     | 
| 
      
 530 
     | 
    
         
            +
                @w_r.fg = 214
         
     | 
| 
       527 
531 
     | 
    
         
             
                if File.exist?(".git")
         
     | 
| 
       528 
532 
     | 
    
         
             
                  w_r_info(`git status 2>/dev/null`)
         
     | 
| 
       529 
533 
     | 
    
         
             
                else
         
     | 
| 
         @@ -532,6 +536,7 @@ def main_getkey # GET KEY FROM USER 
     | 
|
| 
       532 
536 
     | 
    
         
             
                @w_r.update = false
         
     | 
| 
       533 
537 
     | 
    
         
             
                @w_b.update = true
         
     | 
| 
       534 
538 
     | 
    
         
             
              when 'H' # Compare with previous hash status or write hash status if no existing hash
         
     | 
| 
      
 539 
     | 
    
         
            +
                @w_r.fg = 213
         
     | 
| 
       535 
540 
     | 
    
         
             
                hashcmd = "\(find #{Dir.pwd} -type f -print0  | sort -z | xargs -0 sha1sum; find #{Dir.pwd}"\
         
     | 
| 
       536 
541 
     | 
    
         
             
                          " \\( -type f -o -type d \\) -print0 | sort -z | xargs -0 stat -c '%n %a'\) | sha1sum | cut -c -40"
         
     | 
| 
       537 
542 
     | 
    
         
             
                begin
         
     | 
| 
         @@ -556,22 +561,22 @@ def main_getkey # GET KEY FROM USER 
     | 
|
| 
       556 
561 
     | 
    
         
             
                @w_b.update = false
         
     | 
| 
       557 
562 
     | 
    
         
             
              when 'S' # Show comprehensive system info
         
     | 
| 
       558 
563 
     | 
    
         
             
                @w_r.pager_cmd = ""
         
     | 
| 
       559 
     | 
    
         
            -
                 
     | 
| 
       560 
     | 
    
         
            -
                 
     | 
| 
       561 
     | 
    
         
            -
                 
     | 
| 
       562 
     | 
    
         
            -
                 
     | 
| 
       563 
     | 
    
         
            -
                 
     | 
| 
       564 
     | 
    
         
            -
                 
     | 
| 
      
 564 
     | 
    
         
            +
                systext  = `uname -o`.chop + "  "
         
     | 
| 
      
 565 
     | 
    
         
            +
                systext += `uname -r`.chop + "  "
         
     | 
| 
      
 566 
     | 
    
         
            +
                systext += `uname -v`.chop + "  "
         
     | 
| 
      
 567 
     | 
    
         
            +
                systext += `uname -p` + "\n"
         
     | 
| 
      
 568 
     | 
    
         
            +
                systext += `free -h`  + "\n"
         
     | 
| 
      
 569 
     | 
    
         
            +
                systext += "CPUs = " + `nproc`.chop + "  "
         
     | 
| 
       565 
570 
     | 
    
         
             
                cpuinfo    = `lscpu`
         
     | 
| 
       566 
     | 
    
         
            -
                 
     | 
| 
       567 
     | 
    
         
            -
                 
     | 
| 
       568 
     | 
    
         
            -
                 
     | 
| 
       569 
     | 
    
         
            -
                 
     | 
| 
       570 
     | 
    
         
            -
                 
     | 
| 
       571 
     | 
    
         
            -
                 
     | 
| 
       572 
     | 
    
         
            -
                 
     | 
| 
       573 
     | 
    
         
            -
                 
     | 
| 
       574 
     | 
    
         
            -
                 
     | 
| 
      
 571 
     | 
    
         
            +
                systext += cpuinfo[/^.*Model name:\s*(.*)/, 1] + "  "
         
     | 
| 
      
 572 
     | 
    
         
            +
                systext += "Max: " + cpuinfo[/^.*CPU max MHz:\s*(.*)/, 1][/(.*),.*/, 1] + "MHz  "
         
     | 
| 
      
 573 
     | 
    
         
            +
                systext += "Min: " + cpuinfo[/^.*CPU min MHz:\s*(.*)/, 1][/(.*),.*/, 1] + "MHz  "
         
     | 
| 
      
 574 
     | 
    
         
            +
                systext += "\n\n"
         
     | 
| 
      
 575 
     | 
    
         
            +
                systext += `df -H`
         
     | 
| 
      
 576 
     | 
    
         
            +
                systext += "\nDMESG:\n"
         
     | 
| 
      
 577 
     | 
    
         
            +
                systext += `dmesg | tail -10`
         
     | 
| 
      
 578 
     | 
    
         
            +
                @w_r.fg    = 155
         
     | 
| 
      
 579 
     | 
    
         
            +
                w_r_info(systext)
         
     | 
| 
       575 
580 
     | 
    
         
             
                @w_r.update = false
         
     | 
| 
       576 
581 
     | 
    
         
             
              # RIGHT PANE
         
     | 
| 
       577 
582 
     | 
    
         
             
              when 'ENTER' # Refresh right pane
         
     | 
| 
         @@ -951,7 +956,7 @@ def w_r_info(info) # SHOW INFO IN THE RIGHT WINDOW 
     | 
|
| 
       951 
956 
     | 
    
         
             
              image_show("clear") if @image; @image = false
         
     | 
| 
       952 
957 
     | 
    
         
             
            end
         
     | 
| 
       953 
958 
     | 
    
         
             
            def marks_info # SHOW MARKS IN RIGHT WINDOW
         
     | 
| 
       954 
     | 
    
         
            -
              info = " 
     | 
| 
      
 959 
     | 
    
         
            +
              info = "MARKS:\n"
         
     | 
| 
       955 
960 
     | 
    
         
             
              unless @marks.empty?
         
     | 
| 
       956 
961 
     | 
    
         
             
                @marks.each do |mark, dir|
         
     | 
| 
       957 
962 
     | 
    
         
             
                  info += "#{mark} = #{dir}\n"
         
     | 
| 
         @@ -962,7 +967,7 @@ def marks_info # SHOW MARKS IN RIGHT WINDOW 
     | 
|
| 
       962 
967 
     | 
    
         
             
              w_r_info(info)
         
     | 
| 
       963 
968 
     | 
    
         
             
            end
         
     | 
| 
       964 
969 
     | 
    
         
             
            def tagged_info # SHOW THE LIST OF TAGGED ITEMS IN @w_r
         
     | 
| 
       965 
     | 
    
         
            -
              info = " 
     | 
| 
      
 970 
     | 
    
         
            +
              info = "TAGGED:\n"
         
     | 
| 
       966 
971 
     | 
    
         
             
              @tagged.empty? ? info += "(None)" : info += @tagged.join("\n")
         
     | 
| 
       967 
972 
     | 
    
         
             
              w_r_info(info)
         
     | 
| 
       968 
973 
     | 
    
         
             
            end
         
     | 
| 
         @@ -1031,7 +1036,13 @@ def pager_show # SHOW THE CURRENT PAGE CONTENT 
     | 
|
| 
       1031 
1036 
     | 
    
         
             
              if @w_r.pager_cmd.match(/batcat/)
         
     | 
| 
       1032 
1037 
     | 
    
         
             
                syntax_highlight(input)
         
     | 
| 
       1033 
1038 
     | 
    
         
             
              else
         
     | 
| 
       1034 
     | 
    
         
            -
                @w_r  
     | 
| 
      
 1039 
     | 
    
         
            +
                if @w_r.fg == nil
         
     | 
| 
      
 1040 
     | 
    
         
            +
                  init_pair(255, 255, 0)
         
     | 
| 
      
 1041 
     | 
    
         
            +
                  @w_r.fg = 255
         
     | 
| 
      
 1042 
     | 
    
         
            +
                else 
         
     | 
| 
      
 1043 
     | 
    
         
            +
                  init_pair(@w_r.fg, @w_r.fg, 0)
         
     | 
| 
      
 1044 
     | 
    
         
            +
                end
         
     | 
| 
      
 1045 
     | 
    
         
            +
                @w_r.attron(color_pair(@w_r.fg)) { @w_r << input }
         
     | 
| 
       1035 
1046 
     | 
    
         
             
              end
         
     | 
| 
       1036 
1047 
     | 
    
         
             
              (@w_r.maxy - @w_r.cury).times {@w_r.deleteln()} # Clear to bottom of window
         
     | 
| 
       1037 
1048 
     | 
    
         
             
              pager_add_markers
         
     | 
| 
         @@ -1294,7 +1305,10 @@ loop do # OUTER LOOP - CATCHING REFRESHES VIA 'r' 
     | 
|
| 
       1294 
1305 
     | 
    
         
             
                  @w_l.setpos(0,0)
         
     | 
| 
       1295 
1306 
     | 
    
         
             
                  list_dir(true)
         
     | 
| 
       1296 
1307 
     | 
    
         
             
                  @w_l.refresh
         
     | 
| 
       1297 
     | 
    
         
            -
                   
     | 
| 
      
 1308 
     | 
    
         
            +
                  if @w_r.update and @preview
         
     | 
| 
      
 1309 
     | 
    
         
            +
                    w_r_show
         
     | 
| 
      
 1310 
     | 
    
         
            +
                    @w_r.fg = 255
         
     | 
| 
      
 1311 
     | 
    
         
            +
                  end
         
     | 
| 
       1298 
1312 
     | 
    
         
             
                  Curses.curs_set(1) # Clear residual cursor
         
     | 
| 
       1299 
1313 
     | 
    
         
             
                  Curses.curs_set(0) # ...from editing files 
         
     | 
| 
       1300 
1314 
     | 
    
         
             
                  @tag = false       # Clear tag pattern
         
     | 
    
        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: 1.3. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 1.3.5
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Geir Isene
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2021-10- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2021-10-25 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: curses
         
     | 
| 
         @@ -33,8 +33,8 @@ dependencies: 
     | 
|
| 
       33 
33 
     | 
    
         
             
            description: 'A full featured terminal browser with syntax highlighted files, images
         
     | 
| 
       34 
34 
     | 
    
         
             
              shown in the terminal, videos thumbnailed, etc. You can bookmark and jump around
         
     | 
| 
       35 
35 
     | 
    
         
             
              easily, delete, rename, copy, symlink and move files. RTFM has a a wide range of
         
     | 
| 
       36 
     | 
    
         
            -
              other features. New in 1.3. 
     | 
| 
       37 
     | 
    
         
            -
              ( 
     | 
| 
      
 36 
     | 
    
         
            +
              other features. New in 1.3.5: Sexify by color some of the info shown in right pane
         
     | 
| 
      
 37 
     | 
    
         
            +
              (like Help, Tagged, Marks and System Info)'
         
     | 
| 
       38 
38 
     | 
    
         
             
            email: g@isene.com
         
     | 
| 
       39 
39 
     | 
    
         
             
            executables:
         
     | 
| 
       40 
40 
     | 
    
         
             
            - rtfm
         
     |