-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathorg-linenote.info
202 lines (148 loc) · 5.82 KB
/
org-linenote.info
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
This is org-linenote.info, produced by makeinfo version 7.1.1 from
org-linenote.texi.
INFO-DIR-SECTION Emacs
START-INFO-DIR-ENTRY
* org-linenote: (org-linenote). A note package inspired by VSCode's Linenote.
END-INFO-DIR-ENTRY
File: org-linenote.info, Node: Top, Next: Org-linenote User Manual, Up: (dir)
A note package inspired by VSCode's Linenote.
*********************************************
* Menu:
* Org-linenote User Manual::
* What is this package?::
* Usage::
* Customization::
* Credits::
-- The Detailed Node Listing --
Usage
* Creating notes::
* Removing notes::
* Adding tags::
* Removing tags::
File: org-linenote.info, Node: Org-linenote User Manual, Next: What is this package?, Prev: Top, Up: Top
1 Org-linenote User Manual
**************************
org-linenote is the package inspired by Visual Studio Code extension,
Linenote
(<https://marketplace.visualstudio.com/items?itemName=tkrkt.linenote>),
providing functions to notes on source code.
This manual is for org-linenote version 1.1.3.
File: org-linenote.info, Node: What is this package?, Next: Usage, Prev: Org-linenote User Manual, Up: Top
2 What is this package?
***********************
org-linenote has several key features:
• Creating a note and tags per line
• Saving notes by preserving the directory structure
• Compatibility with VS Code Linenote extension
• No org properties required
• Based on a Git repository
org-linenote is useful when you need a detailed note on a specific
line of code or document, unlike other note-taking packages that create
a note per file. Additionally, the package does not require Org
properties but only utilizes the line number from the filename.
Also, the package provides compatibility with the VS Code Linenote
extension. If you manage the notes within the markdown (.md) format,
the same notes can also be utilized in Visual Studio Code.
These features make org-linenote useful when you need ‘line-by-line’
notes to analyze the code and share notes with others. I use this
package for analyzing Linux kernel and sharing insights with people
(most of them are vscode users).
File: org-linenote.info, Node: Usage, Next: Customization, Prev: What is this package?, Up: Top
3 Usage
*******
org-linenote provides key features.
• A note per line (multi-line note is also possible)
• Tags per line
• Browsing notes by line number or tags
• Fringe indicator
• Eldoc integration
Note that the minor mode of ‘org-linenote-mode’ must be enabled in
the current buffer.
* Menu:
* Creating notes::
* Removing notes::
* Adding tags::
* Removing tags::
File: org-linenote.info, Node: Creating notes, Next: Removing notes, Up: Usage
3.1 Creating notes
==================
The command ‘org-linenote-add-annodate’ and ‘org-linenote-edit-annotate’
creates a note for the current line. If you select multiple lines, then
the note for the selected lines will be created. The created note is
located at ‘$PROJECT/.linenote/$RELATIVE_PATH’ directory. For instance,
if the relative path of the current buffer is
‘arch/arm64/kernel/head.S’, then a note for the line #256 will be saved
as ‘.linenote/arch/arm64/kernel/head.S#L256.md’ or
‘.linenote/arch/arm64/kernel/head.S#L256.org’.
1. Open a file and move cursor to where you want to add a note.
2. ‘M-x org-linenote-add-annotate’.
3. A new note will be created.
File: org-linenote.info, Node: Removing notes, Next: Adding tags, Prev: Creating notes, Up: Usage
3.2 Removing notes
==================
To remove notes, move the cursor on the target line and do ‘M-x
org-linenote-remove-annotate’. You can also remove the note directly
from the path ‘$PROJECT/.linenote’.
File: org-linenote.info, Node: Adding tags, Next: Removing tags, Prev: Removing notes, Up: Usage
3.3 Adding tags
===============
The command ‘org-linenote-add-tags’ inserts tags for the current line.
Note that it won't be allowed if the corresponding note does not exist
for the current line. You can add multiple tags separated by ',', for
example, ‘tag_1,tag_2’. The tags will be shown when you are browsing
notes with ‘org-linenote-browse’.
File: org-linenote.info, Node: Removing tags, Prev: Adding tags, Up: Usage
3.4 Removing tags
=================
To remove tags on the current line, use ‘org-linenote-remove-tags’.
File: org-linenote.info, Node: Customization, Next: Credits, Prev: Usage, Up: Top
4 Customization
***************
The following variables are customizable via M-x customize.
• ‘org-linenote-use-eldoc’: enable or disable eldoc support.
• ‘org-linenote-use-relative’: use relative paths in
org-linenote-browse.
• ‘org-linenote-use-highlight’: enable or disable line highlighting.
• ‘org-linenote-use-fringe’: enable or disable fringe support.
To customize fringe face, look into the following variables:
• ‘org-linenote-fringe-side’: choose between 'left-fringe or
'right-fringe.
• ‘org-linenote-fringe-face’: configure the face (i.e. color) of the
fringes.
• ‘org-linenote-fringe-bitmap’: set the style for the fringe bitmap.
For highlighting style, see the variable:
• ‘org-linenote-highlight-style’: customize the style of
highlighting.
File: org-linenote.info, Node: Credits, Prev: Customization, Up: Top
5 Credits
*********
• Thanks to Adam Porter (<https://github.com/alphapapa>) and Chris
Rayner (<https://github.com/riscy>) for the feedback.
Tag Table:
Node: Top221
Node: Org-linenote User Manual617
Node: What is this package?1032
Node: Usage2172
Node: Creating notes2680
Node: Removing notes3476
Node: Adding tags3799
Node: Removing tags4266
Node: Customization4457
Node: Credits5408
End Tag Table
Local Variables:
coding: utf-8
End: