You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add org id support and org store link (#654)
* feat: Add org id module
* feat: Add set/get property to api
* feat: Add org_store_link
* chore: Fix some types
* feat: Support id: hyperlink format
* feat: Expose setting headline id in api
* docs: Add docs for org id
Copy file name to clipboardExpand all lines: DOCS.md
+36-1Lines changed: 36 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -344,6 +344,34 @@ Determine if blank line should be prepended when:
344
344
* Adding heading via `org_meta_return` and `org_insert_*` mappings
345
345
* Adding a list item via `org_meta_return`
346
346
347
+
#### **org_id_uuid_program**
348
+
*type*: `string`<br />
349
+
*default value*: `uuidgen`<br />
350
+
External program used to generate uuid's for id module
351
+
352
+
#### **org_id_ts_format**
353
+
*type*: `string`<br />
354
+
*default value*: `%Y%m%d%H%M%S`<br />
355
+
Format of the id generated when [org_id_method](#org_id_method) is set to `ts`.
356
+
357
+
#### **org_id_method**
358
+
*type*: `'uuid' | 'ts' | 'org'`<br />
359
+
*default value*: `uuid`<br />
360
+
What method to use to generate ids via org id module.
361
+
*`uuid` - Use [org_id_uuid_program](#org_id_uuid_program) to generate the id
362
+
*`ts` - Generate id from current timestamp using format [org_id_ts_format](#org_id_ts_format)
363
+
*`org` - Generate a random 12 digit number and prepend [org_id_prefix](#org_id_prefix)
364
+
365
+
#### **org_id_prefix**
366
+
*type*: `string | nil`<br />
367
+
*default value*: `nil`<br />
368
+
Prefix added to the generated id when [org_id_method](#org_id_method) is set to `org`.
369
+
370
+
#### **org_id_link_to_org_use_id**
371
+
*type*: `boolean`<br />
372
+
*default value*: `false`<br />
373
+
If `true`, generate ID with the Org ID module and append it to the headline as property. More info on [org_store_link](#org_store_link)
374
+
347
375
#### **calendar_week_start_day**
348
376
*type*: `number`<br />
349
377
*default value*: `1`<br />
@@ -896,8 +924,15 @@ Toggle current line checkbox state
896
924
*mapped to*: `<Leader>o*`<br />
897
925
Toggle current line to headline and vice versa. Checkboxes will turn into TODO headlines.
898
926
#### **org_insert_link**
899
-
*mapped to*: `<Leader>oil`<br />
927
+
*mapped to*: `<Leader>oli`<br />
900
928
Insert a hyperlink at cursor position. When the cursor is on a hyperlink, edit that hyperlink.<br />
929
+
If there are any links stored with [org_store_link](#org_store_link), pressing `<TAB>` to autocomplete the input
930
+
will show list of all stored links to select. Links generated with ID are properly expanded to valid links after selection.
931
+
#### **org_store_link**
932
+
*mapped to*: `<Leader>ols`<br />
933
+
Generate a link to the closest headline. If [org_id_link_to_org_use_id](#org_id_link_to_org_use_id) is `true`,
934
+
it appends the `ID` property to the headline, and generates link with that id to be inserted via [org_insert_link](#org_insert_link).
935
+
When [org_id_link_to_org_use_id](#org_id_link_to_org_use_id) is `false`, it generates the standard file::*headline link (example: `file:/path/to/my/todos.org::*My headline`)
901
936
#### **org_open_at_point**
902
937
*mapped to*: `<Leader>oo`<br />
903
938
Open hyperlink or date under cursor. When date is under the cursor, open the agenda for that day.<br />
0 commit comments