cetus 0.1.6 → 0.1.7
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.
- data/bin/cetus +9 -2
- data/cetus.gemspec +1 -1
- metadata +4 -4
data/bin/cetus
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
# Author: rkumar http://github.com/rkumar/cetus/
|
7
7
|
# Date: 2013-02-17 - 17:48
|
8
8
|
# License: GPL
|
9
|
-
# Last update: 2013-03-
|
9
|
+
# Last update: 2013-03-10 19:08
|
10
10
|
# ----------------------------------------------------------------------------- #
|
11
11
|
# cetus.rb Copyright (C) 2012-2013 rahul kumar
|
12
12
|
require 'readline'
|
@@ -51,7 +51,7 @@ $bindings = {
|
|
51
51
|
"ESCAPE" => "escape",
|
52
52
|
"TAB" => "views",
|
53
53
|
"C-i" => "views",
|
54
|
-
"?" => "
|
54
|
+
"?" => "dirtree",
|
55
55
|
"ENTER" => "select_current",
|
56
56
|
"D" => "delete_file",
|
57
57
|
"M" => "file_actions most",
|
@@ -753,6 +753,7 @@ def main_menu
|
|
753
753
|
:v => :viminfo,
|
754
754
|
:z => :z_interface,
|
755
755
|
:d => :child_dirs,
|
756
|
+
:t => :dirtree,
|
756
757
|
:s => :sort_menu,
|
757
758
|
:F => :filter_menu,
|
758
759
|
:c => :command_menu ,
|
@@ -1089,6 +1090,10 @@ def child_dirs
|
|
1089
1090
|
$title = "Child directories"
|
1090
1091
|
$files = `zsh -c 'print -rl -- *(/#{$sorto}#{$hidden}M)'`.split("\n")
|
1091
1092
|
end
|
1093
|
+
def dirtree
|
1094
|
+
$title = "Child directories"
|
1095
|
+
$files = `zsh -c 'print -rl -- **/*(/#{$sorto}#{$hidden}M)'`.split("\n")
|
1096
|
+
end
|
1092
1097
|
def select_current
|
1093
1098
|
## vp is local there, so i can do $vp[0]
|
1094
1099
|
#open_file $view[$sta] if $view[$sta]
|
@@ -1254,6 +1259,7 @@ def file_actions action=nil
|
|
1254
1259
|
print "move #{text} to : "
|
1255
1260
|
#target = gets().chomp
|
1256
1261
|
target = Readline::readline('>', true)
|
1262
|
+
text=File.expand_path(text)
|
1257
1263
|
return if target == ""
|
1258
1264
|
if File.directory? target
|
1259
1265
|
FileUtils.mv text, target
|
@@ -1265,6 +1271,7 @@ def file_actions action=nil
|
|
1265
1271
|
print "copy #{text} to : "
|
1266
1272
|
target = Readline::readline('>', true)
|
1267
1273
|
return if target == ""
|
1274
|
+
text=File.expand_path(text)
|
1268
1275
|
target = File.basename(text) if target == "."
|
1269
1276
|
if File.exists? target
|
1270
1277
|
perror "Target (#{target}) exists"
|
data/cetus.gemspec
CHANGED
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "cetus"
|
8
|
-
spec.version = "0.1.
|
8
|
+
spec.version = "0.1.7"
|
9
9
|
spec.authors = ["Rahul Kumar"]
|
10
10
|
spec.email = ["sentinel1879@gmail.com"]
|
11
11
|
spec.description = %q{lightning fast file navigator}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cetus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-03-
|
12
|
+
date: 2013-03-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -73,7 +73,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
73
73
|
version: '0'
|
74
74
|
segments:
|
75
75
|
- 0
|
76
|
-
hash:
|
76
|
+
hash: 282646954278492921
|
77
77
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
78
|
none: false
|
79
79
|
requirements:
|
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
82
|
version: '0'
|
83
83
|
segments:
|
84
84
|
- 0
|
85
|
-
hash:
|
85
|
+
hash: 282646954278492921
|
86
86
|
requirements: []
|
87
87
|
rubyforge_project:
|
88
88
|
rubygems_version: 1.8.25
|