cetus 0.1.14 → 0.1.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +9 -0
- data/bin/cetus +24 -5
- data/cetus.gemspec +6 -3
- metadata +14 -26
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 7c67bf2e52e31ab6eee328763cfd9cbbc7cc6b9f5e14fee8d92a9cdda280d091
|
4
|
+
data.tar.gz: 43aee50baabead83405203c6569a05123fda19cbdc3303a59c9cc0ebaffe93d6
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 1884fdb03bb4324d98a55d8c6d64b76ee1ecca7a007625ba03d81064c9f97a4dadd9cb848c53daa8d967eaed02cde3ecb3b0df800435c1d7796771e1d757e1da
|
7
|
+
data.tar.gz: a850b7b59629af248f4923ce939462687cb2d6649b7103c7cdfc1bdabf6f911e25fa9cc2f2dc94a7036b44b2c21791fc96c82ad859d8b7c51f6cf45e65ac62c3
|
data/README.md
CHANGED
@@ -3,6 +3,15 @@ cetus
|
|
3
3
|
|
4
4
|
lightning-fast file navigator
|
5
5
|
|
6
|
+
Tested with ruby 2.5
|
7
|
+
|
8
|
+
Latest changes:
|
9
|
+
2018-03-12 - now using LEFT and RIGHT arrow keys to go down into a directory, or up to higher directory.
|
10
|
+
Also, pressing RIGHT ARROW on a file with open the file.
|
11
|
+
Previously RIGHT and LEFT arrows would move to next or previous columns, i have put this on left and right square bracket.
|
12
|
+
|
13
|
+
2018-03-13 - unable to push new gem 0.1.16 to rubygems.
|
14
|
+
|
6
15
|
fork of lyra with a different hotkey idea. Use this for quickly navigating your file system using hotkeys
|
7
16
|
and bookmarks, and executing commands on single or multiple files easily.
|
8
17
|
|
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:
|
9
|
+
# Last update: 2018-03-12 22:58
|
10
10
|
# ----------------------------------------------------------------------------- #
|
11
11
|
# cetus.rb Copyright (C) 2012-2013 rahul kumar
|
12
12
|
# == TODO
|
@@ -60,8 +60,11 @@ $bindings = {
|
|
60
60
|
"D" => "delete_file",
|
61
61
|
"M" => "file_actions most",
|
62
62
|
"Q" => "quit_command",
|
63
|
-
"RIGHT" => "column_next",
|
64
|
-
"
|
63
|
+
#"RIGHT" => "column_next",
|
64
|
+
"RIGHT" => "select_current", # changed 2018-03-12 - for faster navigation
|
65
|
+
"LEFT" => "goto_parent_dir", # changed on 2018-03-12 - earlier column_next 1
|
66
|
+
"]" => "column_next",
|
67
|
+
"[" => "column_next 1",
|
65
68
|
"C-x" => "file_actions",
|
66
69
|
"M--" => "columns_incdec -1",
|
67
70
|
"M-+" => "columns_incdec 1",
|
@@ -77,7 +80,9 @@ $bindings = {
|
|
77
80
|
"F1" => "print_help",
|
78
81
|
"F2" => "child_dirs",
|
79
82
|
"F3" => "dirtree",
|
80
|
-
"F4" => "tree"
|
83
|
+
"F4" => "tree",
|
84
|
+
"S-F1" => "dirtree",
|
85
|
+
"S-F2" => "tree"
|
81
86
|
|
82
87
|
}
|
83
88
|
|
@@ -117,12 +122,16 @@ KEY_F7='[18~'
|
|
117
122
|
KEY_F8='[19~'
|
118
123
|
KEY_F9='[20~'
|
119
124
|
KEY_F10='[21~'
|
125
|
+
KEY_S_F1='[1;2P'
|
120
126
|
$kh[KEY_F5]="F5"
|
121
127
|
$kh[KEY_F6]="F6"
|
122
128
|
$kh[KEY_F7]="F7"
|
123
129
|
$kh[KEY_F8]="F8"
|
124
130
|
$kh[KEY_F9]="F9"
|
125
131
|
$kh[KEY_F10]="F10"
|
132
|
+
# testing out shift+Function. these are the codes my kb generates
|
133
|
+
$kh[KEY_S_F1]="S-F1"
|
134
|
+
$kh['[1;2Q']="S-F2"
|
126
135
|
|
127
136
|
## get a character from user and return as a string
|
128
137
|
# Adapted from:
|
@@ -192,7 +201,8 @@ $pagesize = 60
|
|
192
201
|
$gviscols = 3
|
193
202
|
$pagesize = $grows * $gviscols
|
194
203
|
$stact = 0
|
195
|
-
|
204
|
+
#$editor_mode = true
|
205
|
+
$editor_mode = false # changed 2018-03-12 - so we start in pager mode
|
196
206
|
$enhanced_mode = true
|
197
207
|
$visual_block_start = nil
|
198
208
|
$pager_command = {
|
@@ -218,6 +228,7 @@ BLUE = "\e[1;34m"
|
|
218
228
|
|
219
229
|
ON_BLUE = "\e[44m"
|
220
230
|
REVERSE = "\e[7m"
|
231
|
+
UNDERLINE = "\e[4m"
|
221
232
|
CURSOR_COLOR = ON_BLUE
|
222
233
|
$patt=nil
|
223
234
|
$ignorecase = true
|
@@ -245,6 +256,9 @@ def run()
|
|
245
256
|
config_read
|
246
257
|
$files = `zsh -c 'print -rl -- *(#{$sorto}#{$hidden}M)'`.split("\n")
|
247
258
|
enhance_file_list
|
259
|
+
## added by RK 2014-03-31 - 00:29 since too many duplicates
|
260
|
+
$files = $files.uniq if $enhanced_mode
|
261
|
+
|
248
262
|
fl=$files.size
|
249
263
|
|
250
264
|
selectedix = nil
|
@@ -997,6 +1011,9 @@ def post_cd
|
|
997
1011
|
screen_settings
|
998
1012
|
# i think this will screw with the dir_pos since it is not filename based.
|
999
1013
|
enhance_file_list
|
1014
|
+
## added by RK 2014-03-31 - 00:29 since too many duplicates
|
1015
|
+
$files = $files.uniq if $enhanced_mode
|
1016
|
+
|
1000
1017
|
revert_dir_pos
|
1001
1018
|
end
|
1002
1019
|
#
|
@@ -1138,6 +1155,8 @@ def tree
|
|
1138
1155
|
$title = "Full Tree"
|
1139
1156
|
$files = `zsh -c 'print -rl -- **/*(#{$sorto}#{$hidden}M)'`.split("\n")
|
1140
1157
|
end
|
1158
|
+
# lists recent files in current dir
|
1159
|
+
# TODO in some cases it shows mostly .git files, we need to prune those
|
1141
1160
|
def recent_files
|
1142
1161
|
# print -rl -- **/*(Dom[1,10])
|
1143
1162
|
$title = "Recent files"
|
data/cetus.gemspec
CHANGED
@@ -5,15 +5,18 @@ $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.16"
|
9
9
|
spec.authors = ["Rahul Kumar"]
|
10
|
-
spec.email = ["
|
10
|
+
spec.email = ["oneness.univ@gmail.com"]
|
11
11
|
spec.description = %q{lightning fast file navigator}
|
12
|
-
spec.summary = %q{lightning fast file navigator - ruby 1.9.3}
|
12
|
+
spec.summary = %q{lightning fast file navigator - ruby 1.9.3 .. ruby 2.5}
|
13
13
|
spec.homepage = "http://github.com/rkumar/cetus"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
16
|
spec.files = `git ls-files`.split($/)
|
17
|
+
# http://bundler.io/blog/2015/03/20/moving-bins-to-exe.html
|
18
|
+
# TODO change to exe as per above
|
19
|
+
|
17
20
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
21
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
22
|
spec.require_paths = ["lib"]
|
metadata
CHANGED
@@ -1,57 +1,52 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cetus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.16
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Rahul Kumar
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2018-05-05 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: bundler
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- - ~>
|
17
|
+
- - "~>"
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '1.3'
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- - ~>
|
24
|
+
- - "~>"
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '1.3'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: rake
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - ">="
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '0'
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - ">="
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '0'
|
46
41
|
description: lightning fast file navigator
|
47
42
|
email:
|
48
|
-
-
|
43
|
+
- oneness.univ@gmail.com
|
49
44
|
executables:
|
50
45
|
- cetus
|
51
46
|
extensions: []
|
52
47
|
extra_rdoc_files: []
|
53
48
|
files:
|
54
|
-
- .gitignore
|
49
|
+
- ".gitignore"
|
55
50
|
- Gemfile
|
56
51
|
- LICENSE.txt
|
57
52
|
- README.md
|
@@ -61,32 +56,25 @@ files:
|
|
61
56
|
homepage: http://github.com/rkumar/cetus
|
62
57
|
licenses:
|
63
58
|
- MIT
|
59
|
+
metadata: {}
|
64
60
|
post_install_message:
|
65
61
|
rdoc_options: []
|
66
62
|
require_paths:
|
67
63
|
- lib
|
68
64
|
required_ruby_version: !ruby/object:Gem::Requirement
|
69
|
-
none: false
|
70
65
|
requirements:
|
71
|
-
- -
|
66
|
+
- - ">="
|
72
67
|
- !ruby/object:Gem::Version
|
73
68
|
version: '0'
|
74
|
-
segments:
|
75
|
-
- 0
|
76
|
-
hash: -134599356446017971
|
77
69
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
|
-
none: false
|
79
70
|
requirements:
|
80
|
-
- -
|
71
|
+
- - ">="
|
81
72
|
- !ruby/object:Gem::Version
|
82
73
|
version: '0'
|
83
|
-
segments:
|
84
|
-
- 0
|
85
|
-
hash: -134599356446017971
|
86
74
|
requirements: []
|
87
75
|
rubyforge_project:
|
88
|
-
rubygems_version:
|
76
|
+
rubygems_version: 2.7.6
|
89
77
|
signing_key:
|
90
|
-
specification_version:
|
91
|
-
summary: lightning fast file navigator - ruby 1.9.3
|
78
|
+
specification_version: 4
|
79
|
+
summary: lightning fast file navigator - ruby 1.9.3 .. ruby 2.5
|
92
80
|
test_files: []
|