cetus 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/cetus +8 -7
- data/cetus.gemspec +1 -1
- metadata +3 -3
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-06 01:15
|
10
10
|
# ----------------------------------------------------------------------------- #
|
11
11
|
# cetus.rb Copyright (C) 2012-2013 rahul kumar
|
12
12
|
require 'readline'
|
@@ -21,7 +21,7 @@ require 'fileutils'
|
|
21
21
|
# copy into PATH
|
22
22
|
# alias c=~/bin/cetus.rb
|
23
23
|
# c
|
24
|
-
VERSION="0.1.
|
24
|
+
VERSION="0.1.4"
|
25
25
|
O_CONFIG=true
|
26
26
|
CONFIG_FILE="~/.lyrainfo"
|
27
27
|
|
@@ -602,6 +602,7 @@ end
|
|
602
602
|
## unselect all files
|
603
603
|
def unselect_all
|
604
604
|
$selected_files = []
|
605
|
+
$visual_mode = nil
|
605
606
|
end
|
606
607
|
|
607
608
|
## select all files
|
@@ -683,7 +684,7 @@ def goto_bookmark ch=nil
|
|
683
684
|
print "Enter bookmark char: "
|
684
685
|
ch = get_char
|
685
686
|
end
|
686
|
-
if ch =~ /^[
|
687
|
+
if ch =~ /^[0-9A-Z]$/
|
687
688
|
d = $bookmarks[ch]
|
688
689
|
# this is if we use zfm's bookmarks which have a position
|
689
690
|
# this way we leave the position as is, so it gets written back
|
@@ -741,7 +742,7 @@ def show_marks
|
|
741
742
|
puts
|
742
743
|
print "Enter bookmark to goto: "
|
743
744
|
ch = get_char
|
744
|
-
goto_bookmark(ch) if ch =~ /^[
|
745
|
+
goto_bookmark(ch) if ch =~ /^[0-9A-Z]$/
|
745
746
|
end
|
746
747
|
# MENU MAIN -- keep consistent with zfm
|
747
748
|
def main_menu
|
@@ -1015,13 +1016,13 @@ end
|
|
1015
1016
|
|
1016
1017
|
## accept a character to save this dir as a bookmark
|
1017
1018
|
def create_bookmark
|
1018
|
-
print "Enter
|
1019
|
+
print "Enter A to Z or 0-9 for bookmark: "
|
1019
1020
|
ch = get_char
|
1020
|
-
if ch =~ /^[
|
1021
|
+
if ch =~ /^[0-9A-Z]$/
|
1021
1022
|
$bookmarks[ch] = "#{Dir.pwd}:#{$cursor}"
|
1022
1023
|
$modified = true
|
1023
1024
|
else
|
1024
|
-
perror "Bookmark must be upper-case character"
|
1025
|
+
perror "Bookmark must be upper-case character or number."
|
1025
1026
|
end
|
1026
1027
|
end
|
1027
1028
|
def subcommand
|
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.4"
|
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.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -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: -2326245614290809258
|
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: -2326245614290809258
|
86
86
|
requirements: []
|
87
87
|
rubyforge_project:
|
88
88
|
rubygems_version: 1.8.25
|