my_help 0.5.1 → 0.5.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 36eb49702ae0f7f1b7c4fac469300c6dc4990654
4
- data.tar.gz: 3a0e037c6d79f730760f7c0e6d39f6f34ac1e842
3
+ metadata.gz: 88d61f06babc7a337d682b36c7a5247574376af2
4
+ data.tar.gz: 81166728a653450f8af97f33141ccacf8fa0f13b
5
5
  SHA512:
6
- metadata.gz: 28cf29db7674f449b9ba73469a2b92396bd4bb0694b46e7f05608b9fdd34c822547d0bd1d82e2397200f293b6d14c22f91f6044df4fa143684329e06dce1a686
7
- data.tar.gz: d4cc6f3716f5dda735d76b81dab4cf4bfad065155b9f5441f3d812fa7d80d73361a3582acc84d7b7686522f836fd69c3a9a70df226c4cf7c65088436acb0126a
6
+ metadata.gz: 4c68fc3a49c482cff6f780e831a5e0539ea88c3feaca6133a6a60490a094dadd752d91cbd21ddf2cb6e68213d3238802a6e0c3fb5fc14791afb0e8925983a9aa
7
+ data.tar.gz: 0ea1fc9af2aff6a01e9f7ae4abad906057df950cefc897cc77da248ece179947b99cebea3f4d90e984e7f5b647eae19745ab4a2d226b2b0091c99f6bdb912520
@@ -1,8 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'specific_help'
3
- if ENV['LANG'] == "C" then
4
- help_file = File.join(ENV['HOME'],'.my_help','emacs_help_e.org')
5
- else
6
- help_file = File.join(ENV['HOME'],'.my_help','emacs_help.org')
7
- end
3
+ help_file = File.join(ENV['HOME'],'.my_help','emacs_help.org')
8
4
  SpecificHelp::Command.run(help_file, ARGV)
@@ -40,15 +40,9 @@ module MyHelp
40
40
  opt.version = MyHelp::VERSION
41
41
  puts opt.ver
42
42
  }
43
- if ENV['LANG'] == "C" then
44
- opt.on('-l', '--list', 'list specific helps'){list_helps}
45
- opt.on('-e NAME', '--edit NAME', 'edit NAME help(eg test_help)'){|file| edit_help(file)}
46
- opt.on('-i NAME', '--init NAME', 'initialize NAME help(eq test_help)'){|file| init_help(file)}
47
- else
48
- opt.on('-l', '--list', '個別(specific)ヘルプのList表示.'){list_helps}
49
- opt.on('-e NAME', '--edit NAME', 'NAME(例:test_help)をEdit編集.'){|file| edit_help(file)}
50
- opt.on('-i NAME', '--init NAME', 'NAME(例:test_help)のtemplateを作成.'){|file| init_help(file)}
51
- end
43
+ opt.on('-l', '--list', 'list specific helps'){list_helps}
44
+ opt.on('-e NAME', '--edit NAME', 'edit NAME help(eg test_help)'){|file| edit_help(file)}
45
+ opt.on('-i NAME', '--init NAME', 'initialize NAME help(eq test_help)'){|file| init_help(file)}
52
46
  opt.on('-m', '--make', 'make executables for all helps'){make_help}
53
47
  opt.on('-c', '--clean', 'clean up exe dir.'){clean_exe_dir}
54
48
  opt.on('-y', '--yml2org [FILE]', 'convert FILE from yaml to org format'){|file| yml2org(file)}
@@ -128,11 +122,7 @@ module MyHelp
128
122
  exe_cont=<<"EOS"
129
123
  #!/usr/bin/env ruby
130
124
  require 'specific_help'
131
- if ENV['LANG'] == "C" then
132
- help_file = File.join(ENV['HOME'],'.my_help','#{title}_e.org')
133
- else
134
- help_file = File.join(ENV['HOME'],'.my_help','#{file}')
135
- end
125
+ help_file = File.join(ENV['HOME'],'.my_help','#{file}')
136
126
  SpecificHelp::Command.run(help_file, ARGV)
137
127
  EOS
138
128
  [title, short_name(title)].each{|name|
@@ -1,3 +1,3 @@
1
1
  module MyHelp
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
@@ -59,25 +59,13 @@ module SpecificHelp
59
59
  opts = val[:opts]
60
60
  opt.on(opts[:short],opts[:long],opts[:desc]) {disp_help(key)}
61
61
  }
62
-
63
- if ENV['LANG']=='C'
64
- opt.on('--edit','edit help contents'){edit_help}
65
- opt.on('--to_hiki','convert to hikidoc format'){to_hiki}
66
- opt.on('--all','display all helps'){all_help}
67
- opt.on('--store [item]','store [item] in backfile'){|item| store(item)}
68
- opt.on('--remove [item]','remove [item] and store in backfile'){|item| remove(item) }
69
- opt.on('--add [item]','add new [item]'){|item| add(item) }
70
- opt.on('--backup_list [val]','show last [val] backup list'){|val| backup_list(val)}
71
- else
72
- opt.on('--edit','edit help contentsを開く'){edit_help}
73
- opt.on('--to_hiki','hikiのformatに変更する'){to_hiki}
74
- opt.on('--all','すべてのhelp画面を表示させる'){all_help}
75
- opt.on('--store [item]','store [item] でback upをとる'){|item| store(item)}
76
- opt.on('--remove [item]','remove [item] back upしてるlistを消去する'){|item| remove(item) }
77
- opt.on('--add [item]','add new [item]で新しいhelpを作る'){|item| add(item) }
78
- opt.on('--backup_list [val]','back upしているlistを表示させる'){|val| backup_list(val)}
79
- end
80
-
62
+ opt.on('--edit','edit help contents'){edit_help}
63
+ opt.on('--to_hiki','convert to hikidoc format'){to_hiki}
64
+ opt.on('--all','display all helps'){all_help}
65
+ opt.on('--store [item]','store [item] in backfile'){|item| store(item)}
66
+ opt.on('--remove [item]','remove [item] and store in backfile'){|item| remove(item) }
67
+ opt.on('--add [item]','add new [item]'){|item| add(item) }
68
+ opt.on('--backup_list [val]','show last [val] backup list'){|val| backup_list(val)}
81
69
  end
82
70
  begin
83
71
  command_parser.parse!(@argv)
@@ -1,47 +1,50 @@
1
1
  #+STARTUP: indent nolineimages
2
2
  * head
3
- - emacsのキーバインド
3
+ - Emacs key bind
4
4
  -
5
- 特殊キー操作
6
- - c-f, controlキーを押しながら 'f'
7
- - M-f, escキーを押した後一度離して'f'
8
- - 操作の中断c-g, 操作の取り消し(Undo) c-x u
5
+ special key command
6
+ - c-f, While pressing the control key, press 'f'
7
+ - M-f, After pressing Esc key, press 'f'
8
+ - c-g, Operation interruption
9
+ - c-x u, Undo operation(Undo)
9
10
  * license
10
- - cc by Shigeto R. Nishitani, 2016
11
- * カーソル移動cursor
12
- - c-f, move Forwrard, 前or右へ
13
- - c-b, move Backwrard,or左へ
14
- - c-a, go Ahead of line, 行頭へ
15
- - c-e, go End of line, 行末へ
16
- - c-n, move Next line, 次行へ
17
- - c-p, move Previous line, 前行へ
18
- * ページ移動page
19
- - c-v, move Vertical, 次のページへ
20
- - M-v, move reversive Vertical,前のページへ
21
- - c-l, centerise Line, 現在行を中心に
22
- - M-<, move Top of file, ファイルの先頭へ
23
- - M->, move Bottom of file, ファイルの最後尾へ
24
- * ファイル操作file
25
- - c-x c-f, Find file, ファイルを開く
26
- - c-x c-s, Save file, ファイルを保存
27
- - c-x c-w, Write file NAME, ファイルを別名で書き込む
28
- * 編集操作edit
29
- - c-d, Delete char, 一字削除
30
- - c-k, Kill line, 一行抹消,カット
31
- - c-y, Yank, ペースト
32
- - c-w, Kill region, 領域抹消,カット
33
- - 領域選択は,先頭or最後尾でc-spaceした後,最後尾or先頭へカーソル移動
34
- - c-s, forward incremental Search WORD, 前へWORDを検索
35
- - c-r, Reverse incremental search WORD, 後へWORDを検索
36
- - M-x query-replace WORD1 <ret> WORD2:対話的置換(y or nで可否選択)
37
- * ウィンドウ操作window
38
- - c-x 2, 2 windows, 二つに分割
39
- - c-x 1, 1 windows, 一つに戻す
40
- - c-x 3, 3rd window sep,縦線分割
41
- - c-x o, Other windows, 次の画面へ移動
42
- * バッファー操作buffer(すでにopenしてemacsにバッファーされたfile)
43
- - c-x b, show Buffer, バッファのリスト
44
- - c-x c-b, next Buffer, 次のバッファへ移動
45
- * 終了操作quit
46
- - c-x c-c, Quit emacs, ファイルを保存して終了
47
- - c-z, suspend emacs, 一時停止,fgで復活
11
+ - cc by Natsuko Kawabata, 2017
12
+
13
+ * move cursor
14
+ - c-f, move Forward, Move to forward or right
15
+ - c-b, move Backward, Move to back or left
16
+ - c-a, go Ahead of line, Move to the beginning of the line
17
+ - c-e, go End of line, Move to the end of the line
18
+ - c-n, move Next line, Move to next line
19
+ - c-p, move Previous line, Move to previous line
20
+ * move page
21
+ - c-v, move Vertical, Move to next page
22
+ - M-v, move reversive Vertical,Move to previous page
23
+ - c-l, centerise Line, Move to center on current line
24
+ - M-<, move Top of file, Move to the top of the file
25
+ - M->, move Bottom of file, Move to the end of the file
26
+ * file operation file
27
+ - c-x c-f, Find file, Find file
28
+ - c-x c-s, Save file, Save file
29
+ - c-x c-w, Write file NAME, Write a file with another name
30
+ * edit operation
31
+ - c-d, Delete char, Delete a letter
32
+ - c-k, Kill line, Delete a line,cut
33
+ - c-y, Yank, Paste
34
+ - c-w, Kill region, Delete an area ,cut
35
+ - 領域選択は,先頭 or 最後尾で c-space した後,最後尾 or 先頭へカーソル移動
36
+ - c-s, forward incremental Search WORD, 前へ WORD を検索
37
+ - c-r, Reverse incremental search WORD, 後へ WORD を検索
38
+ - M-x query-replace WORD1 <ret> WORD2:対話的置換(y or n で可否選択)
39
+ * window operation
40
+ - c-x 2, 2 windows, Split into two windows 二つに分割
41
+ - c-x 1, 1 windows, Integrate in a window
42
+ - c-x 3, 3rd window sep, Split vertically
43
+ - c-x o, Other windows, Move to the next window
44
+ * buffer operation
45
+ - すでに open して Emacs にバッファーされた file
46
+ - c-x b, show Buffer, Buffer list
47
+ - c-x c-b, next Buffer, Move to next buffer
48
+ * quit operation
49
+ - c-x c-c, Quit Emacs, Save file and quit
50
+ - c-z, suspend Emacs, Pause,restart with fg
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: my_help
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shigeto R. Nishitani
@@ -574,7 +574,6 @@ files:
574
574
  - lib/specific_help_opt.rb
575
575
  - lib/specific_help_thor.rb
576
576
  - lib/templates/emacs_help.org
577
- - lib/templates/emacs_help_e.org
578
577
  - lib/templates/my_todo.org
579
578
  - lib/templates/template_help.org
580
579
  - lib/todo.rb
@@ -1,49 +0,0 @@
1
- #+STARTUP: indent nolineimages
2
- * head
3
- - Emacs key bind
4
- -
5
- special key command
6
- - c-f, While pressing the control key, press 'f'
7
- - M-f, After pressing Esc key, press 'f'
8
- - c-g, Operation interruption
9
- - c-x u, Undo operation(Undo)
10
- * license
11
- - cc by Natsuko Kawabata, 2017
12
-
13
- * move cursor
14
- - c-f, move Forward, Move to forward or right
15
- - c-b, move Backward, Move to back or left
16
- - c-a, go Ahead of line, Move to the beginning of the line
17
- - c-e, go End of line, Move to the end of the line
18
- - c-n, move Next line, Move to next line
19
- - c-p, move Previous line, Move to previous line
20
- * move page
21
- - c-v, move Vertical, Move to next page
22
- - M-v, move reversive Vertical,Move to previous page
23
- - c-l, centerise Line, Move to center on current line
24
- - M-<, move Top of file, Move to the top of the file
25
- - M->, move Bottom of file, Move to the end of the file
26
- * file operation file
27
- - c-x c-f, Find file, Find file
28
- - c-x c-s, Save file, Save file
29
- - c-x c-w, Write file NAME, Write a file with another name
30
- * edit operation
31
- - c-d, Delete char, Delete a letter
32
- - c-k, Kill line, Delete a line,cut
33
- - c-y, Yank, Paste
34
- - c-w, Kill region, Delete an area ,cut
35
- - 領域選択は,先頭 or 最後尾で c-space した後,最後尾 or 先頭へカーソル移動
36
- - c-s, forward incremental Search WORD, 前へ WORD を検索
37
- - c-r, Reverse incremental search WORD, 後へ WORD を検索
38
- - M-x query-replace WORD1 <ret> WORD2:対話的置換(y or n で可否選択)
39
- * window operation
40
- - c-x 2, 2 windows, Split into two windows 二つに分割
41
- - c-x 1, 1 windows, Integrate in a window
42
- - c-x 3, 3rd window sep, Split vertically
43
- - c-x o, Other windows, Move to the next window
44
- * buffer operation(すでに open して Emacs にバッファーされた file)
45
- - c-x b, show Buffer, Buffer list
46
- - c-x c-b, next Buffer, Move to next buffer
47
- * quit operation
48
- - c-x c-c, Quit Emacs, Save file and quit
49
- - c-z, suspend Emacs, Pause,restart with fg