rtfm-filemanager 1.5.2 → 1.5.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/rtfm +15 -5
  3. metadata +3 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9066e032e441b73cfe80a04cf57a420a29d9788a08bf7afe435cee93541bc3a2
4
- data.tar.gz: 63f612bdc9ac79c3d454062fd6cf62cc84fef17a1c4696c07822649ce4585ac5
3
+ metadata.gz: b6f194c1fffc6901d52041ffe687b4880cbd948a150a6917dc2c181c65aaf674
4
+ data.tar.gz: fe7bc722683be3375c84897c3128e09149f839859a3ae3246dcac8611c6f5643
5
5
  SHA512:
6
- metadata.gz: d42ffd34be3aa710e1ba33d2b753541fd5df1f03d67e3bf91e05113137cf51164381592a0d5a9621146809d8ab1fc3c87d0126d7f35785632aa645b667b13500
7
- data.tar.gz: d7670c8267def044cb1a5cc4c92e127513cf07aa77dda0d61c9622022ca154e5c0ec4fe3f23ddc1ca6ce8c7d071ac91a2d6b1b391c0cb9e47d8bff7b5f461959
6
+ metadata.gz: d5a6d8051cb8d64e426db0b35a7b88aeba64b493e1b99a0ba6659d214cd2510d79dc5b62786eb1b57d8d8c6980465e8f150441d8e265f1ed71a5ea9c59d04e32
7
+ data.tar.gz: 56f1089b663786fe0d5aaefc73db51a446500c5f2807ba76baadc014f143c6b6a88bd3e3a6610326c171ee1f84abd945d684935804e950d8786070e6acbfc4fd
data/bin/rtfm CHANGED
@@ -672,14 +672,17 @@ def main_getkey # GET KEY FROM USER
672
672
  when '@' # Enter "Ruby debug"
673
673
  @w_b.nohistory = true
674
674
  cmd = w_b_getstr("◆ ", "")
675
+ @w_b.clr
676
+ @w_b.refresh
677
+ @w_b.update = true
675
678
  @w_r.clr
676
- @w_r << "Command: #{cmd}\n\n"
677
- @w_r.refresh
679
+ info = "Command: #{cmd}\n\n"
678
680
  begin
679
- eval(cmd)
681
+ info += eval(cmd).to_s
680
682
  rescue StandardError => e
681
- w_r_info("Error: #{e.inspect}")
683
+ info += "Error: #{e.inspect}"
682
684
  end
685
+ w_r_info(info)
683
686
  @w_r.update = false
684
687
  end
685
688
  if @w_r.update == true
@@ -993,12 +996,19 @@ def w_r_doc # GET FULL CONTENT TO PAGE
993
996
  @w_r << @w_r.text
994
997
  end
995
998
  def w_r_info(info) # SHOW INFO IN THE RIGHT WINDOW
999
+ image_show("clear") if @image; @image = false
1000
+ @w_r.clr
1001
+ @w_r. refresh
1002
+ w_r_width = Curses.cols - (Curses.cols/@width) - 1
1003
+ info = info.split("\n")
1004
+ l = []
1005
+ info.each{ |e| l << e.scan(/.{,#{w_r_width}}/)[0..-2] }
1006
+ info = l.join("\n")
996
1007
  @w_r.text = info
997
1008
  @w_r.pager_cmd = ""
998
1009
  pager_start
999
1010
  pager_show
1000
1011
  @w_r.update = false
1001
- image_show("clear") if @image; @image = false
1002
1012
  end
1003
1013
  def marks_info # SHOW MARKS IN RIGHT WINDOW
1004
1014
  info = "MARKS:\n"
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: 1.5.2
4
+ version: 1.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geir Isene
@@ -34,9 +34,8 @@ description: 'A full featured terminal browser with syntax highlighted files, im
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
36
  other features. New in 1.5.0: Expanded ''/'' to jump to the first match and ''n''
37
- to jump to the next matched item (''j'' and ''J'' are now gone). New in 1.5.1: Added
38
- ''N'' to jump to the previous matched item by ''/''. New in 1.5.2: Added wrap-around
39
- for ''n'' and ''N'''
37
+ to jump to the next matched item (''j'' and ''J'' are now gone). New in 1.5.3: Fixed
38
+ output of Ruby commands (via the ''@'' key)'
40
39
  email: g@isene.com
41
40
  executables:
42
41
  - rtfm