helpline 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b0104ffa24a5e308f511265b3d573e071fa62f8a20f47395d860ccaad49c61b8
4
- data.tar.gz: 327ed27a2cdb89ff7e3dfc1d493a30b5fdaab9ff14532217c9c2180453646d12
3
+ metadata.gz: 3e2b93dc79e46d3eeb5f2867f20f42d1e188aecf6e81128b9819d01f97e65132
4
+ data.tar.gz: 18d0062e75b35b3dc88ca362818928e2ba456996fd1dd48a3383a5ba1c0a8ac4
5
5
  SHA512:
6
- metadata.gz: c62a6cebf987469aa8851ad2bf2a61bfe84727488275f1ee249b914ea57291d65c401e9bb5793b151f29c58f0206a18b7e0f8f168a1d4d345740582c44f2b4b2
7
- data.tar.gz: de05a2efb87c6cb738b672124082097f7a49e176868575be736733cbe661c15e99d9f6ff38aba1dab21eabe54848485dfef4bdc8d74dd174ad3ff94fd21b78b3
6
+ metadata.gz: 6610decc65beb0c5bbfd1a05075ed6e77f4f0ab18a96ae6f6c9c7584d145ce27499f1c318679a083ca1105a52d8ebac855c04398dc8f9e62722cbb940e6510d4
7
+ data.tar.gz: ae28a2b29a2aa21a06e758ecd38fa280411f3f62ea38bb070c9cc63bb3f6b3e5fbfe015fc180264666b0557978c932c210c45a34731dd50457ee6c64c88a5f8b
@@ -149,7 +149,7 @@ class HelpLine
149
149
 
150
150
  if res[0].length == 0
151
151
  puts "ヘルプがみつかりません"
152
- File.open("/tmp/helpline","w"){ |f|
152
+ File.open("/tmp/helpline.cmd","w"){ |f|
153
153
  f.puts ARGV.join(' ')
154
154
  }
155
155
  exit
data/keydef.zsh CHANGED
@@ -1,8 +1,9 @@
1
1
  #
2
- # Ctrl-Hでhelplineを呼ぶようにする
2
+ # Ctrl-Jでhelplineを呼ぶようにする
3
3
  #
4
4
  function run-help() {
5
- BUFFER=$(/Applications/HelpLine.app/Contents/MacOS/helpline "${BUFFER}")
5
+ /usr/local/bin/helpline "${BUFFER}" < $TTY
6
+ BUFFER=$(cat /tmp/helpline.cmd)
6
7
  CURSOR=${#BUFFER}
7
8
  zle redisplay
8
9
  }
@@ -1,4 +1,7 @@
1
-
1
+ #
2
+ # カーソル移動ライブラリ
3
+ # cursesを使うほどではないので
4
+ #
2
5
 
3
6
  # ESC [ Pl A
4
7
  # カーソルをPl行上へ移動
@@ -1,3 +1,3 @@
1
1
  module Helpline
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: helpline
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toshiyuki Masui