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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -1
  3. data/bin/idl_erep +10 -0
  4. data/idl_erep.gemspec +1 -1
  5. metadata +2 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e1e1bfbc20802f8a27546d8f818a21d1a8898de6
4
- data.tar.gz: 03f132d9907d6ccfeaddcbe9d565c152a38e6787
3
+ metadata.gz: 09b89110b61aebae25523e6043d4ce31dc0036b4
4
+ data.tar.gz: ff0245e783fd069b4b5745c197aba9c981045b50
5
5
  SHA512:
6
- metadata.gz: 71d2ac3c4f3b44f785f3b88fe5dfa17f4b28746b45d4565101518a4ac4192470d78b2b18ad0649b600fa6274fd5e85d8e84212869cb28571ba76f10983369a89
7
- data.tar.gz: 0929d8acf0e20847658e80a78c90aed221d995f920c524da72ef8ca27fa07a769d3c13455c805516d49e2ecb56623c579c82d297c63edcdc1c0098e0770d467a
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
- $ idl\_erep
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.1"
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.1
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-22 00:00:00.000000000 Z
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: