my_help 0.8.6 → 1.1a
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/'../test'/.my_help/.my_help_conf.yml +2 -0
- data/'../test'/.my_help/emacs.org +50 -0
- data/{lib/templates → '../test'/.my_help}/org.org +0 -0
- data/{lib/templates → '../test'/.my_help}/todo.org +0 -0
- data/.gitignore +8 -0
- data/.my_help/example2.org +9 -0
- data/.rspec +1 -2
- data/.rspec_status +13 -0
- data/.yardoc/checksums +3 -3
- data/.yardoc/object_types +0 -0
- data/.yardoc/objects/root.dat +0 -0
- data/Gemfile +10 -5
- data/Gemfile.lock +61 -88
- data/README.org +35 -47
- data/Rakefile +25 -14
- data/doc/MyHelp/Control.html +443 -221
- data/doc/MyHelp.html +7 -7
- data/doc/OrgToYaml.html +12 -10
- data/doc/_index.html +7 -7
- data/doc/class_list.html +2 -2
- data/doc/css/style.css +3 -2
- data/doc/file.README.html +29 -29
- data/doc/file_list.html +2 -2
- data/doc/frames.html +2 -2
- data/doc/index.html +29 -29
- data/doc/js/app.js +14 -3
- data/doc/method_list.html +24 -8
- data/doc/top-level-namespace.html +6 -6
- data/docs/README.html +218 -0
- data/docs/README.org +202 -0
- data/docs/old_docs/16b_nasu.pdf +0 -0
- data/docs/old_docs/17b_oyagi.pdf +0 -0
- data/docs/old_docs/19b_okabata.pdf +0 -0
- data/docs/old_docs/19b_yamaguchi.pdf +0 -0
- data/docs/old_docs/features/delete.feature +7 -0
- data/docs/old_docs/features/edit.feature +7 -0
- data/docs/old_docs/features/list.feature +6 -0
- data/docs/old_docs/features/new.feature +7 -0
- data/docs/old_docs/features/step_definitions/delete_spec.rb +12 -0
- data/docs/old_docs/features/step_definitions/edit_spec.rb +14 -0
- data/docs/old_docs/features/step_definitions/list_spec.rb +10 -0
- data/docs/old_docs/features/step_definitions/new_spec.rb +12 -0
- data/docs/old_docs/features/support/env.rb +3 -0
- data/docs/old_docs/fukumori_symp/18_human_interface_fukumori_workshop.pdf +0 -0
- data/docs/old_docs/fukumori_symp/memo_perp_magician.pdf +0 -0
- data/docs/old_docs/fukumori_symp//347/237/245/350/255/230/343/201/256/347/233/264/344/272/244/350/243/234/347/251/272/351/226/223.png +0 -0
- data/exe/my_help +1 -142
- data/lib/my_help/cli.rb +106 -0
- data/lib/my_help/config.rb +70 -0
- data/lib/my_help/git_cli.rb +40 -0
- data/lib/my_help/init.rb +28 -0
- data/lib/my_help/list.rb +76 -0
- data/lib/my_help/md2hash.rb +54 -0
- data/lib/my_help/modify.rb +33 -0
- data/lib/my_help/org2hash.rb +45 -0
- data/lib/my_help/org2yml.rb +14 -14
- data/lib/my_help/version.rb +3 -1
- data/lib/my_help.rb +23 -7
- data/lib/templates/emacs.org +13 -14
- data/lib/templates/example.md +17 -0
- data/lib/templates/example.org +9 -0
- data/my_help.gemspec +27 -22
- data/tmp.txt +14 -0
- metadata +52 -26
- data/README.html +0 -443
- data/README.rdoc +0 -6
- data/bin/my_help_thor +0 -66
- data/exe/my_help_gli +0 -82
- data/lib/my_help/my_help_controll.rb +0 -222
- data/lib/my_help/tomo_help_controll.rb +0 -0
- data/lib/templates/help_template.org +0 -8
data/lib/my_help.rb
CHANGED
@@ -1,7 +1,23 @@
|
|
1
|
-
|
2
|
-
require
|
3
|
-
require
|
4
|
-
require
|
5
|
-
require
|
6
|
-
|
7
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
require "thor"
|
3
|
+
require "fileutils"
|
4
|
+
require "pp"
|
5
|
+
require "yaml"
|
6
|
+
require "command_line/global"
|
7
|
+
|
8
|
+
require_relative "my_help/version"
|
9
|
+
require_relative "my_help/list"
|
10
|
+
require_relative "my_help/config"
|
11
|
+
require_relative "my_help/modify"
|
12
|
+
require_relative "my_help/init"
|
13
|
+
require_relative "my_help/git_cli"
|
14
|
+
require_relative "my_help/cli"
|
15
|
+
require_relative "my_help/org2hash"
|
16
|
+
require_relative "my_help/md2hash"
|
17
|
+
|
18
|
+
module MyHelp
|
19
|
+
class Error < StandardError; end
|
20
|
+
|
21
|
+
# Your code goes here...
|
22
|
+
|
23
|
+
end
|
data/lib/templates/emacs.org
CHANGED
@@ -1,33 +1,32 @@
|
|
1
|
-
#+STARTUP: indent nolineimages
|
1
|
+
#+STARTUP: indent nolineimages overview
|
2
2
|
* head
|
3
3
|
- Emacs key bind
|
4
|
-
-
|
5
|
-
|
6
|
-
-
|
7
|
-
-
|
8
|
-
- c-
|
9
|
-
- c-x u, Undo operation(Undo)
|
4
|
+
- special key command
|
5
|
+
- c-f, While pressing the control key, press 'f'
|
6
|
+
- M-f, After pressing Esc key, press 'f'
|
7
|
+
- c-g, Operation interruption
|
8
|
+
- c-x u, Undo operation(Undo)
|
10
9
|
* license
|
11
10
|
- cc by Natsuko Kawabata, 2017
|
12
11
|
|
13
|
-
*
|
12
|
+
* cursor_move
|
14
13
|
- c-f, move Forward, Move to forward or right
|
15
14
|
- c-b, move Backward, Move to back or left
|
16
15
|
- c-a, go Ahead of line, Move to the beginning of the line
|
17
16
|
- c-e, go End of line, Move to the end of the line
|
18
17
|
- c-n, move Next line, Move to next line
|
19
18
|
- c-p, move Previous line, Move to previous line
|
20
|
-
*
|
19
|
+
* page_move
|
21
20
|
- c-v, move Vertical, Move to next page
|
22
21
|
- M-v, move reversive Vertical,Move to previous page
|
23
22
|
- c-l, centerise Line, Move to center on current line
|
24
23
|
- M-<, move Top of file, Move to the top of the file
|
25
24
|
- M->, move Bottom of file, Move to the end of the file
|
26
|
-
*
|
25
|
+
* file_operation
|
27
26
|
- c-x c-f, Find file, Find file
|
28
27
|
- c-x c-s, Save file, Save file
|
29
28
|
- c-x c-w, Write file NAME, Write a file with another name
|
30
|
-
*
|
29
|
+
* edit_operation
|
31
30
|
- c-d, Delete char, Delete a letter
|
32
31
|
- c-k, Kill line, Delete a line,cut
|
33
32
|
- c-y, Yank, Paste
|
@@ -36,15 +35,15 @@ special key command
|
|
36
35
|
- c-s, forward incremental Search WORD, 前へ WORD を検索
|
37
36
|
- c-r, Reverse incremental search WORD, 後へ WORD を検索
|
38
37
|
- M-x query-replace WORD1 <ret> WORD2:対話的置換(y or n で可否選択)
|
39
|
-
*
|
38
|
+
* window_operation
|
40
39
|
- c-x 2, 2 windows, Split into two windows 二つに分割
|
41
40
|
- c-x 1, 1 windows, Integrate in a window
|
42
41
|
- c-x 3, 3rd window sep, Split vertically
|
43
42
|
- c-x o, Other windows, Move to the next window
|
44
|
-
*
|
43
|
+
* buffer_operation
|
45
44
|
- すでに open して Emacs にバッファーされた file
|
46
45
|
- c-x b, show Buffer, Buffer list
|
47
46
|
- c-x c-b, next Buffer, Move to next buffer
|
48
|
-
*
|
47
|
+
* quit_operation
|
49
48
|
- c-x c-c, Quit Emacs, Save file and quit
|
50
49
|
- c-z, suspend Emacs, Pause,restart with fg
|
data/my_help.gemspec
CHANGED
@@ -1,24 +1,29 @@
|
|
1
|
-
#
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "lib/my_help/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = "my_help"
|
7
|
+
spec.version = MyHelp::VERSION
|
8
|
+
spec.authors = ["Shigeto R. Nishiani"]
|
9
|
+
spec.email = ["daddygongon@users.noreply.github.com"]
|
10
|
+
spec.license = "MIT"
|
11
|
+
spec.summary = %q{user building help}
|
12
|
+
spec.description = %q{user building help}
|
13
|
+
spec.homepage = 'https://github.com/daddygongon/my_help'
|
14
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
15
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
|
15
16
|
end
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
17
|
+
spec.bindir = "exe"
|
18
|
+
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
# Uncomment to register a new dependency of your gem
|
22
|
+
spec.add_development_dependency "rspec"
|
23
|
+
spec.add_runtime_dependency "thor"
|
24
|
+
spec.add_runtime_dependency "command_line"
|
25
|
+
spec.add_runtime_dependency "colorize"
|
26
|
+
spec.add_development_dependency "aruba"
|
27
|
+
# For more information and examples about making a new gem, checkout our
|
28
|
+
# guide at: https://bundler.io/guides/creating_gem.html
|
24
29
|
end
|
data/tmp.txt
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
Commands:
|
2
|
+
my_help delete HELP # delete HELP
|
3
|
+
my_help edit HELP # edit HELP
|
4
|
+
my_help git [push|pull] # git push or pull
|
5
|
+
my_help help [COMMAND] # Describe available commands or one specific command
|
6
|
+
my_help list [HELP] [ITEM] # list all helps, specific HELP, or ITEM
|
7
|
+
my_help new HELP # make new HELP
|
8
|
+
my_help set_editor EDITOR_NAME # set editor to EDITOR_NAME
|
9
|
+
my_help setup # set up the test database
|
10
|
+
my_help version # show version
|
11
|
+
|
12
|
+
Options:
|
13
|
+
d, [--dir=DIR]
|
14
|
+
|
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: my_help
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.1a
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
8
|
-
autorequire:
|
7
|
+
- Shigeto R. Nishiani
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: rspec
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
@@ -25,13 +25,13 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: thor
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
|
-
type: :
|
34
|
+
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
@@ -39,7 +39,7 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: command_line
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
@@ -67,13 +67,13 @@ dependencies:
|
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: aruba
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
|
-
type: :
|
76
|
+
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
@@ -81,16 +81,22 @@ dependencies:
|
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
description: user building help
|
84
|
-
email:
|
84
|
+
email:
|
85
|
+
- daddygongon@users.noreply.github.com
|
85
86
|
executables:
|
86
87
|
- my_help
|
87
|
-
- my_help_gli
|
88
88
|
extensions: []
|
89
89
|
extra_rdoc_files: []
|
90
90
|
files:
|
91
|
+
- "'../test'/.my_help/.my_help_conf.yml"
|
92
|
+
- "'../test'/.my_help/emacs.org"
|
93
|
+
- "'../test'/.my_help/org.org"
|
94
|
+
- "'../test'/.my_help/todo.org"
|
91
95
|
- ".dockerignore"
|
92
96
|
- ".gitignore"
|
97
|
+
- ".my_help/example2.org"
|
93
98
|
- ".rspec"
|
99
|
+
- ".rspec_status"
|
94
100
|
- ".travis.yml"
|
95
101
|
- ".yardoc/checksums"
|
96
102
|
- ".yardoc/complete"
|
@@ -100,12 +106,9 @@ files:
|
|
100
106
|
- Gemfile
|
101
107
|
- Gemfile.lock
|
102
108
|
- LICENSE.txt
|
103
|
-
- README.html
|
104
109
|
- README.org
|
105
|
-
- README.rdoc
|
106
110
|
- README_en.org
|
107
111
|
- Rakefile
|
108
|
-
- bin/my_help_thor
|
109
112
|
- doc/MyHelp.html
|
110
113
|
- doc/MyHelp/Control.html
|
111
114
|
- doc/OrgToYaml.html
|
@@ -123,23 +126,46 @@ files:
|
|
123
126
|
- doc/js/jquery.js
|
124
127
|
- doc/method_list.html
|
125
128
|
- doc/top-level-namespace.html
|
129
|
+
- docs/README.html
|
130
|
+
- docs/README.org
|
131
|
+
- docs/old_docs/16b_nasu.pdf
|
132
|
+
- docs/old_docs/17b_oyagi.pdf
|
133
|
+
- docs/old_docs/19b_okabata.pdf
|
134
|
+
- docs/old_docs/19b_yamaguchi.pdf
|
135
|
+
- docs/old_docs/features/delete.feature
|
136
|
+
- docs/old_docs/features/edit.feature
|
137
|
+
- docs/old_docs/features/list.feature
|
138
|
+
- docs/old_docs/features/new.feature
|
139
|
+
- docs/old_docs/features/step_definitions/delete_spec.rb
|
140
|
+
- docs/old_docs/features/step_definitions/edit_spec.rb
|
141
|
+
- docs/old_docs/features/step_definitions/list_spec.rb
|
142
|
+
- docs/old_docs/features/step_definitions/new_spec.rb
|
143
|
+
- docs/old_docs/features/support/env.rb
|
144
|
+
- docs/old_docs/fukumori_symp/18_human_interface_fukumori_workshop.pdf
|
145
|
+
- docs/old_docs/fukumori_symp/memo_perp_magician.pdf
|
146
|
+
- docs/old_docs/fukumori_symp/知識の直交補空間.png
|
126
147
|
- exe/my_help
|
127
|
-
- exe/my_help_gli
|
128
148
|
- lib/my_help.rb
|
129
|
-
- lib/my_help/
|
149
|
+
- lib/my_help/cli.rb
|
150
|
+
- lib/my_help/config.rb
|
151
|
+
- lib/my_help/git_cli.rb
|
152
|
+
- lib/my_help/init.rb
|
153
|
+
- lib/my_help/list.rb
|
154
|
+
- lib/my_help/md2hash.rb
|
155
|
+
- lib/my_help/modify.rb
|
156
|
+
- lib/my_help/org2hash.rb
|
130
157
|
- lib/my_help/org2yml.rb
|
131
|
-
- lib/my_help/tomo_help_controll.rb
|
132
158
|
- lib/my_help/version.rb
|
133
159
|
- lib/templates/emacs.org
|
134
|
-
- lib/templates/
|
135
|
-
- lib/templates/
|
136
|
-
- lib/templates/todo.org
|
160
|
+
- lib/templates/example.md
|
161
|
+
- lib/templates/example.org
|
137
162
|
- my_help.gemspec
|
163
|
+
- tmp.txt
|
138
164
|
homepage: https://github.com/daddygongon/my_help
|
139
165
|
licenses:
|
140
166
|
- MIT
|
141
167
|
metadata: {}
|
142
|
-
post_install_message:
|
168
|
+
post_install_message:
|
143
169
|
rdoc_options: []
|
144
170
|
require_paths:
|
145
171
|
- lib
|
@@ -150,12 +176,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
150
176
|
version: '0'
|
151
177
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
152
178
|
requirements:
|
153
|
-
- - "
|
179
|
+
- - ">"
|
154
180
|
- !ruby/object:Gem::Version
|
155
|
-
version:
|
181
|
+
version: 1.3.1
|
156
182
|
requirements: []
|
157
|
-
rubygems_version: 3.
|
158
|
-
signing_key:
|
183
|
+
rubygems_version: 3.2.22
|
184
|
+
signing_key:
|
159
185
|
specification_version: 4
|
160
186
|
summary: user building help
|
161
187
|
test_files: []
|