idl_erep 0.0.1 → 0.0.2
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.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/bin/idl_erep +10 -0
- data/idl_erep.gemspec +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 09b89110b61aebae25523e6043d4ce31dc0036b4
|
4
|
+
data.tar.gz: ff0245e783fd069b4b5745c197aba9c981045b50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7172a41b11ebdc64f3b74b5c555c1336ecb4067190a84718e1b62293e2260e27e062cb39d98026e9bf25e2aef5da1959df57a947ca1e599fe12360029ca38c2b
|
7
|
+
data.tar.gz: 8502058d4b7859e38328b7c5d056c519613069d178df63e49742663f1aa4990525d785d71c0f8007edf5b1bb4c9127c7424731553414692e464592d3f99b5249
|
data/README.md
CHANGED
@@ -24,7 +24,7 @@ Usage
|
|
24
24
|
|
25
25
|
Just execute `idl_erep` like following:
|
26
26
|
|
27
|
-
$
|
27
|
+
$ idl_erep
|
28
28
|
|
29
29
|
|
30
30
|
Key mappings
|
@@ -70,5 +70,6 @@ In `~/.idl_profile`, you can set some configurations of this environment.
|
|
70
70
|
| `homehist` | '~/.idl\_history' | PATH of IDL-EREP history file in home directory |
|
71
71
|
| `currhist` | './.idl\_history' | PATH of IDL-EREP history file in current directory |
|
72
72
|
| `histlim` | 10000 | limit number of IDL-EREP history file elements |
|
73
|
+
| `defcomp` | ['help,', 'plot,', etc..] | default completion list |
|
73
74
|
|
74
75
|
|
data/bin/idl_erep
CHANGED
@@ -14,6 +14,7 @@ idlhist = '~/.idl/idl/rbuf/history'
|
|
14
14
|
homehist = '~/.idl_history'
|
15
15
|
currhist = './.idl_history'
|
16
16
|
histlim = 10000
|
17
|
+
defcomplist = ['help,', 'plot,', 'print,', 'window,']
|
17
18
|
|
18
19
|
def extract_idl_command(line)
|
19
20
|
line.gsub(/ <!--.*-->$/, '')
|
@@ -41,6 +42,15 @@ def readline_hist_management(prompt)
|
|
41
42
|
line
|
42
43
|
end
|
43
44
|
|
45
|
+
comp = proc do |s|
|
46
|
+
complist = defcomplist
|
47
|
+
complist += Dir::entries(Dir::pwd)
|
48
|
+
complist.grep(/^#{Regexp.escape(s)}/)
|
49
|
+
end
|
50
|
+
|
51
|
+
Readline.completion_append_character = " "
|
52
|
+
Readline.completion_proc = comp
|
53
|
+
|
44
54
|
# main routine
|
45
55
|
|
46
56
|
# initialize
|
data/idl_erep.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "idl_erep"
|
7
|
-
spec.version = "0.0.
|
7
|
+
spec.version = "0.0.2"
|
8
8
|
spec.authors = ["Rintaro Okamura"]
|
9
9
|
spec.email = ["rintaro.okamura+github@gmail.com"]
|
10
10
|
spec.summary = %q{An enhanced interactive environment for IDL}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: idl_erep
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rintaro Okamura
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -91,4 +91,3 @@ signing_key:
|
|
91
91
|
specification_version: 4
|
92
92
|
summary: An enhanced interactive environment for IDL
|
93
93
|
test_files: []
|
94
|
-
has_rdoc:
|