-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspecs.norg
242 lines (147 loc) · 5.26 KB
/
specs.norg
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
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
* Your Quick Neorg Guide
This is a cheatsheet that quickly lets you get a grip on the Norg syntax.
It is by no means exhaustive, but quickly gets you up to speed.
*Press `gO` for a Table of Contents*.
* Structure
** Headings
You've already seen them in action in this guide.
@code norg
* Heading 1
** Heading 2
*** Heading 3
**** And so on...
@end
Norg supports infinite heading levels, but you'll find that Neorg caps out at six.
You can still go higher, but the parser will treat it as if it were a level six heading.
** Reverse Headings
Need to go back a level? `---` takes you back a single level, while `===` closes all headings.
@code norg
* Heading 1
** Heading 2
Part of heading 2.
---
Part of heading 1.
*** Heading 3
**** Heading 4
Part of heading 4.
===
Not part of any heading.
@end
** Lists
*** Unordered Lists
@code norg
- List item.
-- Nested list item
-- Also nested.
- Next list item.
@end
*** Ordered Lists
@code norg
~ List item.
~~ Nested list item.
~~ Also nested.
~ Next list item.
@end
** Code Blocks
Run `:Neorg toggle-concealer` to see the raw syntax.
@code
This is literally an empty code block.
@end
@code lua
print("If you have the lua treesitter parser installed, this will be highlighted as lua.")
print("If not, run `:TSInstall lua`.")
@end
* Inline Markup
** Styling
To see the syntax raw, run `:setlocal conceallevel=0`.
Set it back to `2` later for a more concise reading experience :)
@code norg
This is *bold*.
This is /italic/.
This is _underline_.
This is -strikethrough-.
This is a spoiler: !org-mode is a bozo!, to see the content you either enter insert mode on this line (good luck) or toggle the concealer off.
This is a `verbatim object, you can't put *markup* in here!`.
%This is a comment, and you never see it in your exported output.%
This is _underline, /italic/ and *-strikethrough bold-*_. Mix and match how you see fit, just make sure
you're not trying to put markup inside of a verbatim object!
@end
For the mathematical nerds:
@code norg
This is ^superscript^ (it won't render properly in Neovim).
This is ,subscript, (same as above).
This is inline maths: $f(x) = supports \\LaTeX$, but beware! You have to escape backslashes like in the example.
Because of this, you should always use the above syntax for very simple things, and the "rigid"
syntax for more complicated expressions: $|\int_0^t d(\ln{S}) = ...|$ (notice the `\|` and the use of single backslashes).
@end
*** Styling with a Pipe
As shown in the maths example above, you can use the pipe `\|` to allow arbitrary whitespace within the
markup. You also don't have to escape backslashes!
@code norg
/ this is not allowed /
/| but this is fine!! |/
@end
** Links
*NOTE: attempting to hit enter on the links will not work.*
*** Links to URLs
@code norg
{https://github.com/nvim-neorg/neorg}
{file:///home/vhyrro/top-secret.txt} - as long as your OS supports your URI (`file://`) it'll work in Neorg
@end
*** Links to Objects
To link to an object, you use its prefix and its name. The name part is
*only word and punctuation sensistive*. Case and whitespace are ignored.
@code norg
{*** styling, but extended} - valid
{*** styling,butextended} - valid
{*** styling but extended} - invalid, no `,` punctuation
@end
*** Links to non-norg Files
@code norg
{/ myfile.txt}
{/ myfile.txt:43} - line 43 of `myfile.txt`
@end
*** Links with Descriptions
@code norg
{* some heading}[my custom description]
@end
*** Links to Anything
Don't care about what object type you're linking to?
Just use the `#` character.
@code norg
{# anything with this title}
@end
*** Links across Files
Take your link but prefix it with `:filename:` (without the `.norg` extension).
@code norg
{:dir/file:* Heading in that file}
{:$/index.norg:* Heading in that file} - `$` signifies the path of the current workspace
{:$notes/index.norg:* Heading in that file} - you can also link to other workspaces
@end
** Anchors
It's like links, but the syntax is reversed. Anchors can save you from writing the same thing countless times.
@code norg
This is a link to [my site]{https://very.long.link.to.my.boring.site}. `<- Works just like a normal link with a description`
Be sure to reference [my site] if you're interested! `<- Takes you to the correct site`
@end
As long as the name inbetween the square brackets is the same you'll be linked to the correct place.
* Tasks
You can assign a task status to anything by adding a `|( )|`.
@code norg
- ( ) Here's a classical TODO item.
* (x) Here's a heading with a done TODO state. Curious.
@end
All supported states:
@code norg
( ) Undone -> not done yet
(x) Done -> done with that
(?) Needs further input
(!) Urgent -> high priority task
(+) Recurring task with children
(-) Pending -> currently in progress
(=) Task put on hold
(_) Task cancelled (put down)
@end
===
#comment
vim:tw=100:ft=norg:norl:conceallevel=2:concealcursor=nv: