rtfm-filemanager 3.15 → 3.17

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 +7 -6
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 262ffa40c282512971254207ef6a81132d547e3bf709f84cb5ea53a3643ae5b6
4
- data.tar.gz: 930ba4d15a5bd5880b27d035ee885c61577050d4a5f842a21e1b681e895516b3
3
+ metadata.gz: ad84a78780b960bd4b85e38d8139daba9b9ac049e00980c760c789052837b947
4
+ data.tar.gz: 33cf4921acdd4082470647fd347f8d7cb8f4d3a15adc321c393c9ba7dc58c065
5
5
  SHA512:
6
- metadata.gz: 05f5ccadcf288aeb60ebc4a50e5ccec49c6d081e8a6a1489e17e54b6a05258b5baa0d832345fd72eafaa4b7b81acb81fb8b820c1e8ec5f15e01ed015bb59f7d2
7
- data.tar.gz: c064e8f83e4594e671d6baa8a06ec4d9fb3cc7e711e34b23799ea60a1d35717cf8c89ad70d92a1cbdbc6b92f3e717b4bcfd98f509eab5f86b35b9e3433590206
6
+ metadata.gz: 99f4824e6b886f711ba3d26fa2bf7b2e6701d5b0634dd38f35d81ee78b983629ba54ac64793eba16d77a7fba2f9b288c039b9439301e77b62562e2f11df3abe6
7
+ data.tar.gz: 8252e376be2e90e11286f8e283c30322164cef7cbb1b29eb72b56f01db28da9102a62c632a199989349dfd4cd51bb2c556fb71f8085b8edf702846ad47f69f30
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.15"
17
+ @version = "3.17"
18
18
 
19
19
  # PRELIMINARIES
20
20
  @help = <<HELPTEXT
@@ -872,7 +872,7 @@ def main_getkey # GET KEY FROM USER
872
872
  sysinfo
873
873
  when 'C-D' # Create new directory (shortcut for ":mkdir ")
874
874
  cmd = w_b_getstr(": ", "mkdir ")
875
- w_b_exec(cmd)
875
+ w_b_exec(cmd + " -p")
876
876
  when 'C-N' # navi integration (https://github.com/denisidoro/navi)
877
877
  begin
878
878
  @navi = `navi`
@@ -905,6 +905,7 @@ def main_getkey # GET KEY FROM USER
905
905
  @w_r.update = true if dir != Dir.pwd
906
906
  rescue
907
907
  end
908
+ $STDIN = ""
908
909
  end
909
910
  def conf_write
910
911
  if File.exist?(Dir.home+'/.rtfm.conf')
@@ -1595,11 +1596,11 @@ def w_b_exec(cmd) # EXECUTE COMMAND FROM @W_B
1595
1596
  status = Timeout::timeout(15) {
1596
1597
  @w_r.clr
1597
1598
  begin
1598
- @w_r.pager_cmd = "#{cmd} | #{@bat} -n --color=always 2>/dev/null"
1599
- @w_r.text = `#{@w_r.pager_cmd}`
1599
+ @w_r.pager_cmd = "#{cmd} 2>&1 | #{@bat} -n --color=always"
1600
+ @w_r.text = %x(#{@w_r.pager_cmd})
1600
1601
  rescue
1601
- @w_r.pager_cmd = "#{cmd} 2>/dev/null"
1602
- @w_r.text = `#{@w_r.pager_cmd}`
1602
+ @w_r.pager_cmd = "#{cmd} 2>&1"
1603
+ @w_r.text = %x(#{@w_r.pager_cmd})
1603
1604
  end
1604
1605
  unless @w_r.text == "" or @w_r.text == nil
1605
1606
  pager_start
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.15'
4
+ version: '3.17'
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-07-04 00:00:00.000000000 Z
11
+ date: 2024-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: curses
@@ -48,7 +48,7 @@ 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.15: Fixed System Info panel (key = ''S'')'
51
+ rtfm without the launcher ''r''. 3.17: Fixed an insideous bug by flushing STDIN.'
52
52
  email: g@isene.com
53
53
  executables:
54
54
  - rtfm