my_help 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/emacs_help +1 -5
- data/lib/my_help.rb +4 -14
- data/lib/my_help/version.rb +1 -1
- data/lib/specific_help.rb +7 -19
- data/lib/templates/emacs_help.org +46 -43
- metadata +1 -2
- data/lib/templates/emacs_help_e.org +0 -49
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88d61f06babc7a337d682b36c7a5247574376af2
|
4
|
+
data.tar.gz: 81166728a653450f8af97f33141ccacf8fa0f13b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c68fc3a49c482cff6f780e831a5e0539ea88c3feaca6133a6a60490a094dadd752d91cbd21ddf2cb6e68213d3238802a6e0c3fb5fc14791afb0e8925983a9aa
|
7
|
+
data.tar.gz: 0ea1fc9af2aff6a01e9f7ae4abad906057df950cefc897cc77da248ece179947b99cebea3f4d90e984e7f5b647eae19745ab4a2d226b2b0091c99f6bdb912520
|
data/exe/emacs_help
CHANGED
@@ -1,8 +1,4 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
require 'specific_help'
|
3
|
-
|
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)
|
data/lib/my_help.rb
CHANGED
@@ -40,15 +40,9 @@ module MyHelp
|
|
40
40
|
opt.version = MyHelp::VERSION
|
41
41
|
puts opt.ver
|
42
42
|
}
|
43
|
-
|
44
|
-
|
45
|
-
|
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
|
-
|
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|
|
data/lib/my_help/version.rb
CHANGED
data/lib/specific_help.rb
CHANGED
@@ -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
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
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
|
-
-
|
3
|
+
- Emacs key bind
|
4
4
|
-
|
5
|
-
|
6
|
-
- c-f, control
|
7
|
-
- M-f,
|
8
|
-
-
|
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
|
11
|
-
|
12
|
-
|
13
|
-
- c-
|
14
|
-
- c-
|
15
|
-
- c-
|
16
|
-
- c-
|
17
|
-
- c-
|
18
|
-
|
19
|
-
|
20
|
-
-
|
21
|
-
-
|
22
|
-
-
|
23
|
-
- M
|
24
|
-
|
25
|
-
|
26
|
-
- c-x c-
|
27
|
-
- c-x c-
|
28
|
-
|
29
|
-
|
30
|
-
- c-
|
31
|
-
- c-
|
32
|
-
- c-
|
33
|
-
-
|
34
|
-
- c-
|
35
|
-
- c-
|
36
|
-
-
|
37
|
-
|
38
|
-
|
39
|
-
- c-x
|
40
|
-
- c-x
|
41
|
-
- c-x
|
42
|
-
|
43
|
-
|
44
|
-
-
|
45
|
-
|
46
|
-
- c-x c-
|
47
|
-
|
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.
|
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
|